blockbench-types 4.12.0 → 4.12.2
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 +2 -2
- package/scripts/generate_docs.js +18 -19
- package/tsconfig.json +2 -1
- package/types/action.d.ts +588 -558
- package/types/animation.d.ts +26 -0
- package/types/blockbench.d.ts +4 -1
- package/types/canvas.d.ts +5 -1
- package/types/collection.d.ts +23 -23
- package/types/cube.d.ts +16 -16
- package/types/dialog.d.ts +3 -2
- package/types/format.d.ts +1 -3
- package/types/global.d.ts +18 -20
- package/types/group.d.ts +9 -7
- package/types/interface.d.ts +13 -9
- package/types/misc.d.ts +6 -1
- package/types/mode.d.ts +4 -0
- package/types/outliner.d.ts +3 -2
- package/types/panel.d.ts +1 -0
- package/types/plugin.d.ts +6 -0
- package/types/shared_actions.d.ts +6 -4
- package/types/texture_group.d.ts +53 -58
- package/types/textures.d.ts +443 -425
- package/types/undo.d.ts +7 -2
- package/types/util.d.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockbench-types",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.2",
|
|
4
4
|
"description": "Blockbench typescript types",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
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",
|
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() {
|
|
@@ -83,27 +83,26 @@ async function main() {
|
|
|
83
83
|
|
|
84
84
|
Vector3: '[THREE.Vector3](https://threejs.org/docs/index.html#api/en/math/Vector3)',
|
|
85
85
|
Euler: '[THREE.Euler](https://threejs.org/docs/index.html#api/en/math/Euler)',
|
|
86
|
-
Quaternion:
|
|
87
|
-
'[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)',
|
|
88
87
|
Object3D: '[THREE.Object3D](https://threejs.org/docs/index.html#api/en/core/Object3D)',
|
|
89
|
-
PerspectiveCamera:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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)',
|
|
95
98
|
|
|
96
99
|
HTMLElement: '[HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement)',
|
|
97
|
-
HTMLCanvasElement:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
'[HTMLAudioElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)',
|
|
101
|
-
CanvasRenderingContext2D:
|
|
102
|
-
'[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)',
|
|
103
103
|
Date: '[Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)',
|
|
104
104
|
Event: '[Event](https://developer.mozilla.org/en-US/docs/Web/API/Event)',
|
|
105
|
-
PointerEvent:
|
|
106
|
-
'[PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)',
|
|
105
|
+
PointerEvent: '[PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)',
|
|
107
106
|
}
|
|
108
107
|
let top_level_references = {}
|
|
109
108
|
let top_level_hidden_references = {}
|