@flighthq/scene2d 0.3.0-next.1032.e2b99fc → 0.3.0-next.1162.e90e518
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/sprite.test.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/scene2d",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.1162.e90e518",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/flighthq/flight.git",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@flighthq/adjustments": "0.3.0-next.
|
|
40
|
-
"@flighthq/animation": "0.3.0-next.
|
|
41
|
-
"@flighthq/entity": "0.3.0-next.
|
|
42
|
-
"@flighthq/geometry": "0.3.0-next.
|
|
43
|
-
"@flighthq/materials": "0.3.0-next.
|
|
44
|
-
"@flighthq/node": "0.3.0-next.
|
|
45
|
-
"@flighthq/signals": "0.3.0-next.
|
|
46
|
-
"@flighthq/texture": "0.3.0-next.
|
|
47
|
-
"@flighthq/types": "0.3.0-next.
|
|
39
|
+
"@flighthq/adjustments": "0.3.0-next.1162.e90e518",
|
|
40
|
+
"@flighthq/animation": "0.3.0-next.1162.e90e518",
|
|
41
|
+
"@flighthq/entity": "0.3.0-next.1162.e90e518",
|
|
42
|
+
"@flighthq/geometry": "0.3.0-next.1162.e90e518",
|
|
43
|
+
"@flighthq/materials": "0.3.0-next.1162.e90e518",
|
|
44
|
+
"@flighthq/node": "0.3.0-next.1162.e90e518",
|
|
45
|
+
"@flighthq/signals": "0.3.0-next.1162.e90e518",
|
|
46
|
+
"@flighthq/texture": "0.3.0-next.1162.e90e518",
|
|
47
|
+
"@flighthq/types": "0.3.0-next.1162.e90e518"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.3.0"
|
package/src/sprite.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEntityRuntime } from '@flighthq/entity/contract';
|
|
2
2
|
import { createRectangle } from '@flighthq/geometry/contract';
|
|
3
3
|
import { createTexture, setTextureUvFromPixelRect } from '@flighthq/texture/contract';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Image, Node, Sprite, SpriteRuntime } from '@flighthq/types/contract';
|
|
5
5
|
import { SpriteKind } from '@flighthq/types/contract';
|
|
6
6
|
|
|
7
7
|
import {
|
|
@@ -128,5 +128,5 @@ describe('setSpriteTexture', () => {
|
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
function texture(width: number, height: number) {
|
|
131
|
-
return createTexture({
|
|
131
|
+
return createTexture({ dimension: '2d', source: { height, width } as Image });
|
|
132
132
|
}
|