open/index.d.ts

30 lines
608 B
TypeScript
Raw Permalink Normal View History

2025-01-18 17:03:48 +08:00
declare module 'canvas-nest.js' {
interface configType {
/**
* 线, : '0,0,0' (R,G,B),
*/
color?: string;
/**
* 线, 默认: 150
*/
count?: number;
/**
* z-index属性css属性用于控制所在层的位置, : -1
*/
zIndex?: number;
/**
* 线0~1, 默认: 0.5
*/
opacity?: number;
}
class CanvasNest {
constructor(element: Element, config?: configType)
destroy(): void;
}
export default CanvasNest;
}