@motion-script/core 0.1.0 → 0.2.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 (86) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +68 -69
  3. package/dist/assets/manager.test.js +1 -1
  4. package/dist/attributes/layout/padding.test.js +1 -1
  5. package/dist/attributes/layout/vector2.test.js +1 -1
  6. package/dist/attributes/properties/decorator.d.ts +0 -3
  7. package/dist/attributes/properties/decorator.d.ts.map +1 -1
  8. package/dist/attributes/properties/decorator.js +1 -2
  9. package/dist/attributes/properties/decorator.js.map +1 -1
  10. package/dist/attributes/properties/decorator.test.js +1 -1
  11. package/dist/attributes/shape/corners/border-radius.test.js +1 -1
  12. package/dist/attributes/shape/effects/chain.test.js +1 -1
  13. package/dist/attributes/shape/fill/blend.test.js +1 -1
  14. package/dist/attributes/shape/fill/chain.d.ts +0 -15
  15. package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
  16. package/dist/attributes/shape/fill/chain.js +0 -6
  17. package/dist/attributes/shape/fill/chain.js.map +1 -1
  18. package/dist/attributes/shape/fill/chain.test.js +1 -1
  19. package/dist/attributes/shape/fill/color/parser.test.js +1 -1
  20. package/dist/attributes/shape/fill/implementations/video.d.ts +0 -2
  21. package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -1
  22. package/dist/attributes/shape/fill/implementations/video.js +47 -50
  23. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  24. package/dist/attributes/shape/fill/lerp.test.js +1 -1
  25. package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
  26. package/dist/attributes/shape/fill/registry.js +0 -2
  27. package/dist/attributes/shape/fill/registry.js.map +1 -1
  28. package/dist/attributes/shape/fill/union.d.ts +2 -3
  29. package/dist/attributes/shape/fill/union.d.ts.map +1 -1
  30. package/dist/attributes/shape/filters/chain.test.js +1 -1
  31. package/dist/attributes/shape/filters/registry.test.d.ts +4 -4
  32. package/dist/attributes/shape/filters/registry.test.js +5 -5
  33. package/dist/attributes/shape/path/bezier.test.js +1 -1
  34. package/dist/attributes/shape/path/dash.test.js +1 -1
  35. package/dist/attributes/shape/path/length.test.js +1 -1
  36. package/dist/attributes/shape/path/subpath.test.js +1 -1
  37. package/dist/attributes/text/lerp.test.js +1 -1
  38. package/dist/jsx/jsx-dev-runtime.d.ts +2 -18
  39. package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -1
  40. package/dist/jsx/jsx-dev-runtime.js +2 -15
  41. package/dist/jsx/jsx-dev-runtime.js.map +1 -1
  42. package/dist/jsx/jsx-runtime.d.ts.map +1 -1
  43. package/dist/jsx/jsx-runtime.js +4 -4
  44. package/dist/jsx/jsx-runtime.js.map +1 -1
  45. package/dist/layout/flex.test.js +1 -1
  46. package/dist/layout/padding.test.js +1 -1
  47. package/dist/layout/size-resolver.test.js +1 -1
  48. package/dist/layout/tweens.test.js +1 -1
  49. package/dist/nodes/base/node.d.ts +0 -9
  50. package/dist/nodes/base/node.d.ts.map +1 -1
  51. package/dist/nodes/base/node.js +3 -30
  52. package/dist/nodes/base/node.js.map +1 -1
  53. package/dist/nodes/geometry/grid-node.d.ts.map +1 -1
  54. package/dist/nodes/geometry/grid-node.js +3 -8
  55. package/dist/nodes/geometry/grid-node.js.map +1 -1
  56. package/dist/nodes/geometry/rect-node.d.ts.map +1 -1
  57. package/dist/nodes/geometry/rect-node.js +2 -8
  58. package/dist/nodes/geometry/rect-node.js.map +1 -1
  59. package/dist/nodes/geometry/shape-node.js +1 -1
  60. package/dist/nodes/geometry/shape-node.js.map +1 -1
  61. package/dist/nodes/text/text-node.d.ts.map +1 -1
  62. package/dist/nodes/text/text-node.js +10 -10
  63. package/dist/nodes/text/text-node.js.map +1 -1
  64. package/dist/project/config.test.js +1 -1
  65. package/dist/render/descriptors/path.d.ts +14 -0
  66. package/dist/render/descriptors/path.d.ts.map +1 -1
  67. package/dist/render/descriptors/path.js +1 -0
  68. package/dist/render/descriptors/path.js.map +1 -1
  69. package/dist/render/descriptors/path.test.js +1 -1
  70. package/dist/runtime/playback-controller.test.js +1 -1
  71. package/dist/runtime/precompisition.test.js +1 -1
  72. package/dist/runtime/runtime.fixtures.d.ts +11 -11
  73. package/dist/runtime/runtime.fixtures.js +3 -3
  74. package/dist/runtime/state-evaluator.test.js +1 -1
  75. package/dist/signals/create.test.js +2 -2
  76. package/dist/signals/signal.test.js +3 -3
  77. package/dist/tween/eases.test.js +1 -1
  78. package/dist/tween/lerp.test.js +1 -1
  79. package/dist/tween/prepare.test.js +1 -1
  80. package/dist/tween/sequence.test.js +4 -4
  81. package/dist/tween/tween.test.js +1 -1
  82. package/dist/tween/wait.test.js +1 -1
  83. package/dist/util/clamp.test.js +1 -1
  84. package/dist/util/random.test.js +1 -1
  85. package/dist/util/reference.test.js +1 -1
  86. package/package.json +12 -12
@@ -1,8 +1,8 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { sequence } from '@/tween/sequence';
3
- import { tween } from '@/tween/tween';
4
- import { wait } from '@/tween/wait';
5
- import { parallel } from '@/tween/parallel';
2
+ import { sequence } from '../tween/sequence';
3
+ import { tween } from '../tween/tween';
4
+ import { wait } from '../tween/wait';
5
+ import { parallel } from '../tween/parallel';
6
6
  function drive(gen, dt = 1 / 60) {
7
7
  let frames = 0;
8
8
  let result = gen.next();
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { tween } from '@/tween/tween';
2
+ import { tween } from '../tween/tween';
3
3
  /** Drive a tween generator with a fixed-size frame delta until it completes. */
4
4
  function drive(duration, dt) {
5
5
  const calls = [];
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { wait } from '@/tween/wait';
2
+ import { wait } from '../tween/wait';
3
3
  describe('wait', () => {
4
4
  it('completes immediately when duration is 0', () => {
5
5
  const gen = wait(0);
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { clamp, clamp01 } from '@/util/clamp';
2
+ import { clamp, clamp01 } from '../util/clamp';
3
3
  describe('clamp', () => {
4
4
  it('returns the value when within range', () => {
5
5
  expect(clamp(5, 0, 10)).toBe(5);
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { SeedGenerator } from '@/util/random';
2
+ import { SeedGenerator } from '../util/random';
3
3
  describe('SeedGenerator', () => {
4
4
  it('produces values in the [0,1) range', () => {
5
5
  const gen = new SeedGenerator(123);
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { createRef } from '@/util/reference';
2
+ import { createRef } from '../util/reference';
3
3
  describe('createRef', () => {
4
4
  it('throws when read before assignment', () => {
5
5
  const ref = createRef();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motion-script/core",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Engine-agnostic animation library for Motion Script: scenes, nodes, signals, tweens, layout, and the JSX runtime.",
6
6
  "keywords": [
@@ -32,6 +32,17 @@
32
32
  "default": "./dist/jsx/jsx-dev-runtime.js"
33
33
  }
34
34
  },
35
+ "devDependencies": {
36
+ "@types/node": "^25.6.2",
37
+ "concurrently": "^9.0.0",
38
+ "eslint": "^9.39.4",
39
+ "eslint-import-resolver-typescript": "^4.4.4",
40
+ "eslint-plugin-import-x": "^4.16.1",
41
+ "tsc-alias": "^1.8.16",
42
+ "typescript": "^6.0.3",
43
+ "typescript-eslint": "^8.48.0",
44
+ "vitest": "^4.1.5"
45
+ },
35
46
  "scripts": {
36
47
  "build": "eslint . && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
37
48
  "dev": "concurrently \"tsc -b tsconfig.build.json --watch\" \"tsc-alias -p tsconfig.build.json -w\"",
@@ -39,16 +50,5 @@
39
50
  "test": "vitest",
40
51
  "lint": "eslint .",
41
52
  "typecheck": "tsc -p tsconfig.json --noEmit"
42
- },
43
- "devDependencies": {
44
- "@types/node": "catalog:",
45
- "concurrently": "catalog:",
46
- "eslint": "^9.39.4",
47
- "eslint-import-resolver-typescript": "^4.4.4",
48
- "eslint-plugin-import-x": "^4.16.1",
49
- "tsc-alias": "catalog:",
50
- "typescript": "catalog:",
51
- "typescript-eslint": "^8.48.0",
52
- "vitest": "catalog:"
53
53
  }
54
54
  }