@nmmty/lazycanvas 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -1
- package/dist/structures/LazyCanvas.d.ts +2 -10
- package/dist/structures/LazyCanvas.js +4 -15
- package/dist/structures/components/BezierLayer.d.ts +42 -0
- package/dist/structures/components/BezierLayer.js +119 -0
- package/dist/structures/components/Group.d.ts +1 -0
- package/dist/structures/components/Group.js +8 -0
- package/dist/structures/components/ImageLayer.d.ts +2 -1
- package/dist/structures/components/ImageLayer.js +8 -6
- package/dist/structures/components/MorphLayer.d.ts +2 -1
- package/dist/structures/components/MorphLayer.js +9 -14
- package/dist/structures/components/QuadraticLayer.d.ts +40 -0
- package/dist/structures/components/QuadraticLayer.js +116 -0
- package/dist/structures/components/TextLayer.d.ts +6 -1
- package/dist/structures/components/TextLayer.js +19 -6
- package/dist/structures/helpers/Font.js +2 -1
- package/dist/structures/managers/FontsManager.d.ts +10 -1
- package/dist/structures/managers/FontsManager.js +19 -2
- package/dist/structures/managers/LayersManager.d.ts +2 -1
- package/dist/structures/managers/LayersManager.js +9 -2
- package/dist/structures/managers/RenderManager.d.ts +2 -1
- package/dist/structures/managers/RenderManager.js +8 -3
- package/dist/types/components/BaseLayer.d.ts +6 -6
- package/dist/types/components/BezierLayer.d.ts +11 -0
- package/dist/types/components/MorphLayer.d.ts +1 -1
- package/dist/types/components/QuadraticLayer.d.ts +11 -0
- package/dist/types/components/TextLayer.d.ts +0 -1
- package/dist/types/enum.d.ts +9 -1
- package/dist/types/enum.js +8 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/managers/FontsManager.d.ts +1 -0
- package/dist/types/managers/LayersManager.d.ts +1 -0
- package/dist/types/managers/RenderManager.d.ts +1 -0
- package/dist/types/types.d.ts +14 -2
- package/dist/utils/LazyUtil.d.ts +1 -1
- package/dist/utils/LazyUtil.js +4 -4
- package/dist/utils/utils.d.ts +20 -3
- package/dist/utils/utils.js +130 -15
- package/package.json +49 -51
package/package.json
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nmmty/lazycanvas",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A simple way to interact with @napi-rs/canvas in an advanced way!",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "tsc ./test/test.ts && node ./test/test.js",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@
|
|
40
|
-
"@types/
|
|
41
|
-
"@types/
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nmmty/lazycanvas",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "A simple way to interact with @napi-rs/canvas in an advanced way!",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "tsc ./test/test.ts && node ./test/test.js",
|
|
9
|
+
"centring": "tsc ./test/centring.ts && node ./test/centring.js",
|
|
10
|
+
"logo": "tsc ./test/logo.ts && node ./test/logo.js",
|
|
11
|
+
"text": "tsc ./test/text.ts && node ./test/text.js",
|
|
12
|
+
"doc": "tsx docgen.ts",
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/NMMTY/LazyCanvas.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"canvas",
|
|
21
|
+
"@napi-rs/canvas",
|
|
22
|
+
"node-canvas",
|
|
23
|
+
"easy",
|
|
24
|
+
"simple"
|
|
25
|
+
],
|
|
26
|
+
"author": "NMMTY",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/NMMTY/LazyCanvas/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/NMMTY/LazyCanvas#readme",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@napi-rs/canvas": "^0.1.65",
|
|
34
|
+
"jimp": "0.22.12",
|
|
35
|
+
"path": "^0.12.7",
|
|
36
|
+
"svgson": "^5.3.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@hitomihiumi/micro-docgen": "^0.3.0",
|
|
40
|
+
"@types/jimp": "^0.2.28",
|
|
41
|
+
"@types/node": "^22.10.2",
|
|
42
|
+
"@types/react": "^19.0.2",
|
|
43
|
+
"ava": "^6.2.0",
|
|
44
|
+
"globals": "^15.14.0",
|
|
45
|
+
"tslib": "^2.8.1",
|
|
46
|
+
"tsx": "^4.19.2",
|
|
47
|
+
"typescript": "^5.4.5"
|
|
48
|
+
}
|
|
49
|
+
}
|