@splinetool/runtime 0.9.40 → 0.9.43
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/README.md +2 -1
- package/build/runtime.js +238 -254
- package/package.json +6 -3
- package/runtime.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splinetool/runtime",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.43",
|
|
4
4
|
"main": "build/runtime.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"build",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"lint": "eslint src/ --max-warnings=0 --cache",
|
|
14
14
|
"format": "prettier src/ --write",
|
|
15
15
|
"typecheck": "tsc",
|
|
16
|
-
"analyze": "cross-env GENERATE_SOURCEMAP=true yarn build && source-map-explorer 'build/*.js' --no-border-checks"
|
|
16
|
+
"analyze": "cross-env GENERATE_SOURCEMAP=true yarn build && source-map-explorer 'build/*.js' --no-border-checks",
|
|
17
|
+
"example": "vite"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"browserslist": "^4.16.7",
|
|
@@ -27,7 +28,8 @@
|
|
|
27
28
|
"source-map-explorer": "^2.5.2",
|
|
28
29
|
"spe": "0.0.0",
|
|
29
30
|
"three": "^0.140.0",
|
|
30
|
-
"typescript": "^4.1.3"
|
|
31
|
+
"typescript": "^4.1.3",
|
|
32
|
+
"vite": "^2.9.0"
|
|
31
33
|
},
|
|
32
34
|
"browserslist": {
|
|
33
35
|
"development": [
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
]
|
|
46
48
|
},
|
|
47
49
|
"dependencies": {
|
|
50
|
+
"common": "1.0.0",
|
|
48
51
|
"on-change": "^4.0.0"
|
|
49
52
|
}
|
|
50
53
|
}
|
package/runtime.d.ts
CHANGED
|
@@ -109,5 +109,14 @@ declare module '@splinetool/runtime' {
|
|
|
109
109
|
dispose(): void;
|
|
110
110
|
|
|
111
111
|
setZoom(zoomValue: number): void;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Manually sets the canvas size to a specific value.
|
|
115
|
+
* When this is called, the canvas will no longer be
|
|
116
|
+
* automatically resized on window resize for full-screen mode.
|
|
117
|
+
* @param {number} width
|
|
118
|
+
* @param {number} height
|
|
119
|
+
*/
|
|
120
|
+
setSize(width: number, height: number): void;
|
|
112
121
|
}
|
|
113
122
|
}
|