ice-render 2.1.1 → 2.3.0

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 (53) hide show
  1. package/README.md +22 -9
  2. package/dist/index.cjs +3 -3
  3. package/dist/index.mjs +3 -3
  4. package/dist/index.umd.js +3 -3
  5. package/dist/types/FrameManager.d.mts +16 -1
  6. package/dist/types/FrameManager.d.ts +16 -1
  7. package/dist/types/ICE.d.mts +103 -0
  8. package/dist/types/ICE.d.ts +103 -0
  9. package/dist/types/animation/AnimationManager.d.mts +117 -16
  10. package/dist/types/animation/AnimationManager.d.ts +117 -16
  11. package/dist/types/animation/AnimationTimeline.d.mts +77 -0
  12. package/dist/types/animation/AnimationTimeline.d.ts +77 -0
  13. package/dist/types/animation/easing-registry.d.mts +37 -0
  14. package/dist/types/animation/easing-registry.d.ts +37 -0
  15. package/dist/types/animation/interpolators.d.mts +34 -0
  16. package/dist/types/animation/interpolators.d.ts +34 -0
  17. package/dist/types/animation/validate-animations.d.mts +55 -0
  18. package/dist/types/animation/validate-animations.d.ts +55 -0
  19. package/dist/types/event/DOMEventDispatcher.d.mts +8 -0
  20. package/dist/types/event/DOMEventDispatcher.d.ts +8 -0
  21. package/dist/types/export/SvgExporter.d.mts +9 -2
  22. package/dist/types/export/SvgExporter.d.ts +9 -2
  23. package/dist/types/export/compose-layers.d.mts +30 -0
  24. package/dist/types/export/compose-layers.d.ts +30 -0
  25. package/dist/types/graphic/ICEComponent.d.mts +37 -1
  26. package/dist/types/graphic/ICEComponent.d.ts +37 -1
  27. package/dist/types/graphic/container/ICEGroup.d.mts +3 -1
  28. package/dist/types/graphic/container/ICEGroup.d.ts +3 -1
  29. package/dist/types/graphic/link/ICEPolyLine.d.mts +9 -1
  30. package/dist/types/graphic/link/ICEPolyLine.d.ts +9 -1
  31. package/dist/types/graphic/shape/ICEEllipse.d.mts +3 -1
  32. package/dist/types/graphic/shape/ICEEllipse.d.ts +3 -1
  33. package/dist/types/graphic/shape/ICEIsogon.d.mts +3 -1
  34. package/dist/types/graphic/shape/ICEIsogon.d.ts +3 -1
  35. package/dist/types/graphic/shape/ICERose.d.mts +3 -1
  36. package/dist/types/graphic/shape/ICERose.d.ts +3 -1
  37. package/dist/types/graphic/shape/ICEStar.d.mts +3 -1
  38. package/dist/types/graphic/shape/ICEStar.d.ts +3 -1
  39. package/dist/types/graphic/text/ICEText.d.mts +154 -2
  40. package/dist/types/graphic/text/ICEText.d.ts +154 -2
  41. package/dist/types/graphic/text/text-direction.d.mts +28 -0
  42. package/dist/types/graphic/text/text-direction.d.ts +28 -0
  43. package/dist/types/graphic/text/text-style.d.mts +25 -0
  44. package/dist/types/graphic/text/text-style.d.ts +25 -0
  45. package/dist/types/graphic/text/text-wrap.d.mts +26 -0
  46. package/dist/types/graphic/text/text-wrap.d.ts +26 -0
  47. package/dist/types/index.d.mts +11 -0
  48. package/dist/types/index.d.ts +11 -0
  49. package/dist/types/util/data-util.d.mts +10 -0
  50. package/dist/types/util/data-util.d.ts +10 -0
  51. package/dist/types/util/errors.d.mts +72 -0
  52. package/dist/types/util/errors.d.ts +72 -0
  53. package/package.json +5 -3
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "author": "大漠穷秋",
3
3
  "name": "ice-render",
4
- "version": "2.1.1",
4
+ "version": "2.3.0",
5
5
  "description": "A canvas engine for interactive graphics.",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://gitee.com/ice-render/ice-render.git"
8
+ "url": "git+https://github.com/ice-render/ice-render.git"
9
9
  },
10
10
  "type": "commonjs",
11
11
  "module": "dist/index.mjs",
@@ -51,7 +51,9 @@
51
51
  "pkg:check": "npm run pkg:lint && npm run pkg:types",
52
52
  "test:visual:ci": "playwright test e2e/visual/examples-smoke.spec.ts e2e/visual/interaction.spec.ts e2e/visual/dirty-rect-pixel.spec.ts e2e/visual/viewport.spec.ts e2e/visual/alignment.spec.ts e2e/visual/hidpi.spec.ts e2e/visual/worker-perf.spec.ts e2e/visual/svg-parity.spec.ts",
53
53
  "verify": "npm run lint && npm run types:check && npm run build && npm test -- --runInBand && npm run bench 2000 && npm run pkg:check",
54
- "verify:full": "npm run verify && npm run test:visual"
54
+ "verify:full": "npm run verify && npm run test:visual && npm run bench:anim -- --check && npm run bench:layers -- --check",
55
+ "bench:anim": "node bench/anim/animation-bench.mjs",
56
+ "bench:layers": "node bench/layers/layering-bench.mjs"
55
57
  },
56
58
  "devDependencies": {
57
59
  "@arethetypeswrong/cli": "^0.18.5",