@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.
Files changed (40) hide show
  1. package/dist/index.d.ts +4 -2
  2. package/dist/index.js +5 -1
  3. package/dist/structures/LazyCanvas.d.ts +2 -10
  4. package/dist/structures/LazyCanvas.js +4 -15
  5. package/dist/structures/components/BezierLayer.d.ts +42 -0
  6. package/dist/structures/components/BezierLayer.js +119 -0
  7. package/dist/structures/components/Group.d.ts +1 -0
  8. package/dist/structures/components/Group.js +8 -0
  9. package/dist/structures/components/ImageLayer.d.ts +2 -1
  10. package/dist/structures/components/ImageLayer.js +8 -6
  11. package/dist/structures/components/MorphLayer.d.ts +2 -1
  12. package/dist/structures/components/MorphLayer.js +9 -14
  13. package/dist/structures/components/QuadraticLayer.d.ts +40 -0
  14. package/dist/structures/components/QuadraticLayer.js +116 -0
  15. package/dist/structures/components/TextLayer.d.ts +6 -1
  16. package/dist/structures/components/TextLayer.js +19 -6
  17. package/dist/structures/helpers/Font.js +2 -1
  18. package/dist/structures/managers/FontsManager.d.ts +10 -1
  19. package/dist/structures/managers/FontsManager.js +19 -2
  20. package/dist/structures/managers/LayersManager.d.ts +2 -1
  21. package/dist/structures/managers/LayersManager.js +9 -2
  22. package/dist/structures/managers/RenderManager.d.ts +2 -1
  23. package/dist/structures/managers/RenderManager.js +8 -3
  24. package/dist/types/components/BaseLayer.d.ts +6 -6
  25. package/dist/types/components/BezierLayer.d.ts +11 -0
  26. package/dist/types/components/MorphLayer.d.ts +1 -1
  27. package/dist/types/components/QuadraticLayer.d.ts +11 -0
  28. package/dist/types/components/TextLayer.d.ts +0 -1
  29. package/dist/types/enum.d.ts +9 -1
  30. package/dist/types/enum.js +8 -0
  31. package/dist/types/index.d.ts +2 -0
  32. package/dist/types/managers/FontsManager.d.ts +1 -0
  33. package/dist/types/managers/LayersManager.d.ts +1 -0
  34. package/dist/types/managers/RenderManager.d.ts +1 -0
  35. package/dist/types/types.d.ts +14 -2
  36. package/dist/utils/LazyUtil.d.ts +1 -1
  37. package/dist/utils/LazyUtil.js +4 -4
  38. package/dist/utils/utils.d.ts +20 -3
  39. package/dist/utils/utils.js +130 -15
  40. package/package.json +49 -51
package/package.json CHANGED
@@ -1,51 +1,49 @@
1
- {
2
- "name": "@nmmty/lazycanvas",
3
- "version": "0.2.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
- "logo": "tsc ./test/logo.ts && node ./test/logo.js",
10
- "text": "tsc ./test/text.ts && node ./test/text.js",
11
- "doc": "tsx docgen.ts",
12
- "build": "tsc"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/NMMTY/LazyCanvas.git"
17
- },
18
- "keywords": [
19
- "canvas",
20
- "@napi-rs/canvas",
21
- "node-canvas",
22
- "easy",
23
- "simple"
24
- ],
25
- "author": "NMMTY",
26
- "license": "MIT",
27
- "bugs": {
28
- "url": "https://github.com/NMMTY/LazyCanvas/issues"
29
- },
30
- "homepage": "https://github.com/NMMTY/LazyCanvas#readme",
31
- "dependencies": {
32
- "@napi-rs/canvas": "^0.1.65",
33
- "jimp": "0.22.12",
34
- "path": "^0.12.7",
35
- "svgson": "^5.3.1"
36
- },
37
- "devDependencies": {
38
- "@hitomihiumi/micro-docgen": "^0.3.0",
39
- "@types/jimp": "^0.2.28",
40
- "@types/node": "^22.10.2",
41
- "@types/react": "^19.0.2",
42
- "ava": "^6.2.0",
43
- "globals": "^15.14.0",
44
- "tslib": "^2.8.1",
45
- "tsx": "^4.19.2",
46
- "typescript": "^5.4.5"
47
- },
48
- "publishConfig": {
49
- "access": "public"
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
+ }