blockbench-types 4.11.1 → 4.12.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/.vscode/settings.json +4 -0
- package/package.json +3 -3
- package/scripts/generate_docs.js +20 -19
- package/tsconfig.json +2 -1
- package/types/action.d.ts +579 -467
- package/types/animation.d.ts +24 -0
- package/types/blockbench.d.ts +8 -1
- package/types/canvas.d.ts +4 -1
- package/types/codec.d.ts +6 -2
- package/types/collection.d.ts +76 -0
- package/types/cube.d.ts +16 -16
- package/types/dialog.d.ts +82 -5
- package/types/format.d.ts +156 -72
- package/types/global.d.ts +18 -20
- package/types/group.d.ts +18 -1
- package/types/interface.d.ts +13 -9
- package/types/menu.d.ts +1 -1
- package/types/mesh.d.ts +3 -1
- package/types/misc.d.ts +3 -0
- package/types/mode.d.ts +4 -0
- package/types/outliner.d.ts +32 -7
- package/types/panel.d.ts +1 -1
- package/types/plugin.d.ts +48 -4
- package/types/project.d.ts +0 -3
- package/types/shared_actions.d.ts +5 -3
- package/types/texture_group.d.ts +68 -0
- package/types/textures.d.ts +444 -382
- package/types/undo.d.ts +78 -19
- package/types/util.d.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockbench-types",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Blockbench typescript types",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/types": "^7.20.7",
|
|
27
27
|
"@types/dompurify": "^3.0.5",
|
|
28
|
-
"@types/jquery": "^3.5.
|
|
28
|
+
"@types/jquery": "^3.5.32",
|
|
29
29
|
"@types/prismjs": "^1.26.0",
|
|
30
30
|
"@types/three": "^0.129.2",
|
|
31
31
|
"@types/tinycolor2": "^1.4.6",
|
|
32
32
|
"dompurify": "^3.0.1",
|
|
33
|
-
"electron": "^
|
|
33
|
+
"electron": "^33.3.1",
|
|
34
34
|
"prismjs": "^1.29.0",
|
|
35
35
|
"tinycolor2": "^1.6.0",
|
|
36
36
|
"typescript": "^4.9.5",
|
package/scripts/generate_docs.js
CHANGED
|
@@ -3,14 +3,14 @@ const fs = require('fs')
|
|
|
3
3
|
const PathModule = require('path')
|
|
4
4
|
|
|
5
5
|
function getArg(key) {
|
|
6
|
-
let index = process.argv.indexOf('--'+key)
|
|
6
|
+
let index = process.argv.indexOf('--' + key)
|
|
7
7
|
console.log(index)
|
|
8
8
|
if (index > 1) {
|
|
9
|
-
return process.argv[index+1]
|
|
9
|
+
return process.argv[index + 1]
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
const out_path = getArg('out') || '../generated/'
|
|
13
|
+
const out_path = getArg('out') || '../generated/'
|
|
14
14
|
console.log(out_path)
|
|
15
15
|
|
|
16
16
|
async function main() {
|
|
@@ -25,6 +25,7 @@ async function main() {
|
|
|
25
25
|
'./types/blockbench.d.ts',
|
|
26
26
|
'./types/textures.d.ts',
|
|
27
27
|
'./types/texture_layers.d.ts',
|
|
28
|
+
'./types/texture_group.d.ts',
|
|
28
29
|
'./types/action.d.ts',
|
|
29
30
|
'./types/animation.d.ts',
|
|
30
31
|
'./types/animation_controller.d.ts',
|
|
@@ -39,6 +40,7 @@ async function main() {
|
|
|
39
40
|
'./types/legacy.d.ts',
|
|
40
41
|
'./types/menu.d.ts',
|
|
41
42
|
'./types/outliner.d.ts',
|
|
43
|
+
'./types/collection.d.ts',
|
|
42
44
|
'./types/group.d.ts',
|
|
43
45
|
'./types/cube.d.ts',
|
|
44
46
|
'./types/mesh.d.ts',
|
|
@@ -81,27 +83,26 @@ async function main() {
|
|
|
81
83
|
|
|
82
84
|
Vector3: '[THREE.Vector3](https://threejs.org/docs/index.html#api/en/math/Vector3)',
|
|
83
85
|
Euler: '[THREE.Euler](https://threejs.org/docs/index.html#api/en/math/Euler)',
|
|
84
|
-
Quaternion:
|
|
85
|
-
'[THREE.Quaternion](https://threejs.org/docs/index.html#api/en/math/Quaternion)',
|
|
86
|
+
Quaternion: '[THREE.Quaternion](https://threejs.org/docs/index.html#api/en/math/Quaternion)',
|
|
86
87
|
Object3D: '[THREE.Object3D](https://threejs.org/docs/index.html#api/en/core/Object3D)',
|
|
87
|
-
PerspectiveCamera:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
PerspectiveCamera: '[THREE.PerspectiveCamera](https://threejs.org/docs/index.html#api/en/cameras/PerspectiveCamera)',
|
|
89
|
+
OrthographicCamera: '[THREE.OrthographicCamera](https://threejs.org/docs/index.html#api/en/cameras/OrthographicCamera)',
|
|
90
|
+
WebGLRenderer: '[THREE.WebGLRenderer](https://threejs.org/docs/index.html#api/en/renderers/WebGLRenderer)',
|
|
91
|
+
Scene: '[THREE.Scene](https://threejs.org/docs/index.html?q=scene#api/en/scenes/Scene)',
|
|
92
|
+
LineBasicMaterial: '[THREE.LineBasicMaterial](https://threejs.org/docs/index.html?q=LineBasicMaterial#api/en/materials/LineBasicMaterial)',
|
|
93
|
+
MeshBasicMaterial: '[THREE.MeshBasicMaterial](https://threejs.org/docs/index.html?q=MeshBasicMaterial#api/en/materials/MeshBasicMaterial)',
|
|
94
|
+
MeshStandardMaterial: '[THREE.MeshStandardMaterial](https://threejs.org/docs/index.html?q=MeshStandardMaterial#api/en/materials/MeshStandardMaterial)',
|
|
95
|
+
ShaderMaterial: '[THREE.ShaderMaterial](https://threejs.org/docs/index.html?q=ShaderMaterial#api/en/materials/ShaderMaterial)',
|
|
96
|
+
PointsMaterial: '[THREE.PointsMaterial](https://threejs.org/docs/index.html?q=PointsMaterial#api/en/materials/PointsMaterial)',
|
|
97
|
+
Color: '[THREE.Color](https://threejs.org/docs/index.html?q=color#api/en/math/Color)',
|
|
93
98
|
|
|
94
99
|
HTMLElement: '[HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement)',
|
|
95
|
-
HTMLCanvasElement:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
'[HTMLAudioElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)',
|
|
99
|
-
CanvasRenderingContext2D:
|
|
100
|
-
'[CanvasRenderingContext2D](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)',
|
|
100
|
+
HTMLCanvasElement: '[HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement)',
|
|
101
|
+
HTMLAudioElement: '[HTMLAudioElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)',
|
|
102
|
+
CanvasRenderingContext2D: '[CanvasRenderingContext2D](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)',
|
|
101
103
|
Date: '[Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)',
|
|
102
104
|
Event: '[Event](https://developer.mozilla.org/en-US/docs/Web/API/Event)',
|
|
103
|
-
PointerEvent:
|
|
104
|
-
'[PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)',
|
|
105
|
+
PointerEvent: '[PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)',
|
|
105
106
|
}
|
|
106
107
|
let top_level_references = {}
|
|
107
108
|
let top_level_hidden_references = {}
|