canvasengine 2.0.0-beta.1 → 2.0.1-beta.1
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/.github/workflows/ci.yml +29 -0
- package/README.md +8 -0
- package/index.d.ts +6 -0
- package/package.json +12 -16
- package/starter/components/hello.ce +2 -1
- package/starter/main.ts +3 -1
- package/starter/package.json +6 -2
- package/starter/tsconfig.json +32 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: CanvasEngine CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- '*'
|
|
7
|
+
paths-ignore:
|
|
8
|
+
- 'docs/**'
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- '*'
|
|
12
|
+
paths-ignore:
|
|
13
|
+
- 'docs/**'
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
tests:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
node-version: [20.x]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
24
|
+
uses: actions/setup-node@v3
|
|
25
|
+
with:
|
|
26
|
+
node-version: ${{ matrix.node-version }}
|
|
27
|
+
cache: 'npm'
|
|
28
|
+
- run: npm i
|
|
29
|
+
- run: npm test
|
package/README.md
CHANGED
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "canvasengine",
|
|
3
3
|
"description": "A reactive HTML5 Canvas management library built on top of PixiJS",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1-beta.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,12 +18,10 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "cd sample && vite",
|
|
20
20
|
"build": "tsup",
|
|
21
|
-
"
|
|
22
|
-
"preview": "vite preview",
|
|
21
|
+
"watch": "tsup --watch",
|
|
23
22
|
"test": "vitest",
|
|
24
|
-
"docs": "
|
|
25
|
-
"
|
|
26
|
-
"publish": "npm run build && npm publish"
|
|
23
|
+
"docs:build": "cd docs && npm run build",
|
|
24
|
+
"prepublish": "npm run build"
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
29
27
|
"@barvynkoa/particle-emitter": "^0.0.1",
|
|
@@ -32,21 +30,13 @@
|
|
|
32
30
|
"@pixi/tilemap": "^5.0.1",
|
|
33
31
|
"@rpgjs/tiled": "^4.3.0",
|
|
34
32
|
"@signe/reactive": "^1.0.1",
|
|
35
|
-
"animejs": "^3.2.2",
|
|
36
|
-
"d-path-parser": "^1.0.0",
|
|
37
|
-
"framer-motion": "^11.11.9",
|
|
38
33
|
"howler": "^2.2.4",
|
|
39
|
-
"peggy": "^3.0.2",
|
|
40
34
|
"pixi-filters": "^6.0.5",
|
|
41
35
|
"pixi-viewport": "^5.0.3",
|
|
42
36
|
"pixi.js": "^8.6.4",
|
|
43
37
|
"popmotion": "^11.0.5",
|
|
44
38
|
"revolt-fx": "^1.3.5",
|
|
45
39
|
"rxjs": "^7.8.1",
|
|
46
|
-
"stats.js": "^0.17.0",
|
|
47
|
-
"svg-arc-to-cubic-bezier": "^3.2.0",
|
|
48
|
-
"tinycolor2": "^1.6.0",
|
|
49
|
-
"tsup": "^8.2.4",
|
|
50
40
|
"yoga-layout": "^2.0.1"
|
|
51
41
|
},
|
|
52
42
|
"devDependencies": {
|
|
@@ -59,12 +49,13 @@
|
|
|
59
49
|
"eslint": "^8.57.0",
|
|
60
50
|
"jsdom": "^25.0.1",
|
|
61
51
|
"lightningcss": "^1.28.2",
|
|
52
|
+
"peggy": "^3.0.2",
|
|
62
53
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
63
54
|
"typescript": "^5.6.2",
|
|
64
55
|
"vite": "^5.4.4",
|
|
65
|
-
"vitepress": "^1.3.4",
|
|
66
56
|
"vitest": "^1.6.0",
|
|
67
|
-
"vitest-webgl-canvas-mock": "^1.1.0"
|
|
57
|
+
"vitest-webgl-canvas-mock": "^1.1.0",
|
|
58
|
+
"tsup": "^8.2.4"
|
|
68
59
|
},
|
|
69
60
|
"author": "Samuel Ronce",
|
|
70
61
|
"license": "MIT",
|
|
@@ -84,5 +75,10 @@
|
|
|
84
75
|
],
|
|
85
76
|
"publishConfig": {
|
|
86
77
|
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"overrides": {
|
|
80
|
+
"revolt-fx": {
|
|
81
|
+
"pixi.js": "^8.6.4"
|
|
82
|
+
}
|
|
87
83
|
}
|
|
88
84
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<Container flexDirection="column" width="500px">
|
|
2
2
|
<Sprite
|
|
3
|
-
image=
|
|
3
|
+
image={imgUrl}
|
|
4
4
|
anchor="0.5"
|
|
5
5
|
rotation
|
|
6
6
|
scale
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
</Container>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
|
+
import imgUrl from '../assets/logo.png'
|
|
14
15
|
import { signal, tick, animatedSignal, Easing } from "canvasengine";
|
|
15
16
|
|
|
16
17
|
const { text } = defineProps();
|
package/starter/main.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import App from './components/app.ce'
|
|
2
2
|
import { bootstrapCanvas } from 'canvasengine';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
bootstrapCanvas(document.getElementById("root"), App).then(() => {
|
|
5
|
+
console.log("CanvasEngine initialized");
|
|
6
|
+
});
|
package/starter/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "canvasengine-starter",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "vite"
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build"
|
|
8
9
|
},
|
|
9
10
|
"keywords": [],
|
|
10
11
|
"author": "",
|
|
11
12
|
"license": "ISC",
|
|
12
13
|
"type": "module",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"canvasengine": "2.0.1-beta.1"
|
|
16
|
+
},
|
|
13
17
|
"devDependencies": {
|
|
14
18
|
"vite": "^6.0.3"
|
|
15
19
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2020",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"outDir": "dist",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"strictNullChecks": true,
|
|
9
|
+
"strictPropertyInitialization": false,
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"removeComments": false,
|
|
13
|
+
"noUnusedParameters": false,
|
|
14
|
+
"noUnusedLocals": false,
|
|
15
|
+
"noImplicitThis": false,
|
|
16
|
+
"noImplicitAny": false,
|
|
17
|
+
"noImplicitReturns": false,
|
|
18
|
+
"declaration": false,
|
|
19
|
+
"experimentalDecorators": true,
|
|
20
|
+
"emitDecoratorMetadata": true,
|
|
21
|
+
"types": [
|
|
22
|
+
"node",
|
|
23
|
+
"vite/client"
|
|
24
|
+
],
|
|
25
|
+
"resolveJsonModule": true
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
".",
|
|
29
|
+
"index.d.ts",
|
|
30
|
+
"node_modules/canvasengine/index.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
package/tsconfig.json
CHANGED