@flighthq/scene2d 0.3.1-next.975.01aea94 → 0.4.0-edge.1908.751021c
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/package.json +10 -10
- package/src/sceneKindUsage.test.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/scene2d",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-edge.1908.751021c",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/adjustments": "0.
|
|
42
|
-
"@flighthq/animation": "0.
|
|
43
|
-
"@flighthq/entity": "0.
|
|
44
|
-
"@flighthq/geometry": "0.
|
|
45
|
-
"@flighthq/materials": "0.
|
|
46
|
-
"@flighthq/node": "0.
|
|
47
|
-
"@flighthq/signals": "0.
|
|
48
|
-
"@flighthq/texture": "0.
|
|
49
|
-
"@flighthq/types": "0.
|
|
41
|
+
"@flighthq/adjustments": "0.4.0-edge.1908.751021c",
|
|
42
|
+
"@flighthq/animation": "0.4.0-edge.1908.751021c",
|
|
43
|
+
"@flighthq/entity": "0.4.0-edge.1908.751021c",
|
|
44
|
+
"@flighthq/geometry": "0.4.0-edge.1908.751021c",
|
|
45
|
+
"@flighthq/materials": "0.4.0-edge.1908.751021c",
|
|
46
|
+
"@flighthq/node": "0.4.0-edge.1908.751021c",
|
|
47
|
+
"@flighthq/signals": "0.4.0-edge.1908.751021c",
|
|
48
|
+
"@flighthq/texture": "0.4.0-edge.1908.751021c",
|
|
49
|
+
"@flighthq/types": "0.4.0-edge.1908.751021c"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.3.0"
|
|
@@ -58,7 +58,7 @@ describe('getScene2DKindUsage', () => {
|
|
|
58
58
|
|
|
59
59
|
it('reads the command keys out of a recorded stream', () => {
|
|
60
60
|
const usage = usageOf((root) => {
|
|
61
|
-
addNodeChild(root, shapeLikeNode('beginFill', 2,
|
|
61
|
+
addNodeChild(root, shapeLikeNode('beginFill', 2, 0xff0000ff, 1, 'drawRectangle', 4, 0, 0, 10, 10, 'endFill', 0));
|
|
62
62
|
});
|
|
63
63
|
expect(usage.shapeCommandKeys).toEqual(['beginFill', 'drawRectangle', 'endFill']);
|
|
64
64
|
});
|
|
@@ -75,7 +75,7 @@ describe('getScene2DKindUsage', () => {
|
|
|
75
75
|
// The stream is [key, argCount, ...args]. Misreading the stride would report an argument value —
|
|
76
76
|
// here the string 'round' — as if it were a command key. That is the failure this pins.
|
|
77
77
|
const usage = usageOf((root) => {
|
|
78
|
-
addNodeChild(root, shapeLikeNode('lineStyle', 3, 2,
|
|
78
|
+
addNodeChild(root, shapeLikeNode('lineStyle', 3, 2, 0x000000ff, 'round', 'moveTo', 2, 0, 0));
|
|
79
79
|
});
|
|
80
80
|
expect(usage.shapeCommandKeys).toEqual(['lineStyle', 'moveTo']);
|
|
81
81
|
});
|