-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from Sunday9787/types
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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; | ||
} |