@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.
- package/LICENSE +201 -0
- package/README.md +68 -69
- package/dist/assets/manager.test.js +1 -1
- package/dist/attributes/layout/padding.test.js +1 -1
- package/dist/attributes/layout/vector2.test.js +1 -1
- package/dist/attributes/properties/decorator.d.ts +0 -3
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js +1 -2
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/decorator.test.js +1 -1
- package/dist/attributes/shape/corners/border-radius.test.js +1 -1
- package/dist/attributes/shape/effects/chain.test.js +1 -1
- package/dist/attributes/shape/fill/blend.test.js +1 -1
- package/dist/attributes/shape/fill/chain.d.ts +0 -15
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +0 -6
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/chain.test.js +1 -1
- package/dist/attributes/shape/fill/color/parser.test.js +1 -1
- package/dist/attributes/shape/fill/implementations/video.d.ts +0 -2
- package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +47 -50
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.test.js +1 -1
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
- package/dist/attributes/shape/fill/registry.js +0 -2
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/fill/union.d.ts +2 -3
- package/dist/attributes/shape/fill/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.test.js +1 -1
- package/dist/attributes/shape/filters/registry.test.d.ts +4 -4
- package/dist/attributes/shape/filters/registry.test.js +5 -5
- package/dist/attributes/shape/path/bezier.test.js +1 -1
- package/dist/attributes/shape/path/dash.test.js +1 -1
- package/dist/attributes/shape/path/length.test.js +1 -1
- package/dist/attributes/shape/path/subpath.test.js +1 -1
- package/dist/attributes/text/lerp.test.js +1 -1
- package/dist/jsx/jsx-dev-runtime.d.ts +2 -18
- package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js +2 -15
- package/dist/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx/jsx-runtime.d.ts.map +1 -1
- package/dist/jsx/jsx-runtime.js +4 -4
- package/dist/jsx/jsx-runtime.js.map +1 -1
- package/dist/layout/flex.test.js +1 -1
- package/dist/layout/padding.test.js +1 -1
- package/dist/layout/size-resolver.test.js +1 -1
- package/dist/layout/tweens.test.js +1 -1
- package/dist/nodes/base/node.d.ts +0 -9
- package/dist/nodes/base/node.d.ts.map +1 -1
- package/dist/nodes/base/node.js +3 -30
- package/dist/nodes/base/node.js.map +1 -1
- package/dist/nodes/geometry/grid-node.d.ts.map +1 -1
- package/dist/nodes/geometry/grid-node.js +3 -8
- package/dist/nodes/geometry/grid-node.js.map +1 -1
- package/dist/nodes/geometry/rect-node.d.ts.map +1 -1
- package/dist/nodes/geometry/rect-node.js +2 -8
- package/dist/nodes/geometry/rect-node.js.map +1 -1
- package/dist/nodes/geometry/shape-node.js +1 -1
- package/dist/nodes/geometry/shape-node.js.map +1 -1
- package/dist/nodes/text/text-node.d.ts.map +1 -1
- package/dist/nodes/text/text-node.js +10 -10
- package/dist/nodes/text/text-node.js.map +1 -1
- package/dist/project/config.test.js +1 -1
- package/dist/render/descriptors/path.d.ts +14 -0
- package/dist/render/descriptors/path.d.ts.map +1 -1
- package/dist/render/descriptors/path.js +1 -0
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/path.test.js +1 -1
- package/dist/runtime/playback-controller.test.js +1 -1
- package/dist/runtime/precompisition.test.js +1 -1
- package/dist/runtime/runtime.fixtures.d.ts +11 -11
- package/dist/runtime/runtime.fixtures.js +3 -3
- package/dist/runtime/state-evaluator.test.js +1 -1
- package/dist/signals/create.test.js +2 -2
- package/dist/signals/signal.test.js +3 -3
- package/dist/tween/eases.test.js +1 -1
- package/dist/tween/lerp.test.js +1 -1
- package/dist/tween/prepare.test.js +1 -1
- package/dist/tween/sequence.test.js +4 -4
- package/dist/tween/tween.test.js +1 -1
- package/dist/tween/wait.test.js +1 -1
- package/dist/util/clamp.test.js +1 -1
- package/dist/util/random.test.js +1 -1
- package/dist/util/reference.test.js +1 -1
- package/package.json +12 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { sequence } from '
|
|
3
|
-
import { tween } from '
|
|
4
|
-
import { wait } from '
|
|
5
|
-
import { parallel } from '
|
|
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();
|
package/dist/tween/tween.test.js
CHANGED
package/dist/tween/wait.test.js
CHANGED
package/dist/util/clamp.test.js
CHANGED
package/dist/util/random.test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { SeedGenerator } from '
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motion-script/core",
|
|
3
|
-
"version": "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
|
}
|