@needle-tools/three 0.162.1 → 0.162.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/build/three.cjs +5 -3
- package/build/three.module.js +5 -3
- package/build/three.module.min.js +2 -1
- package/package.json +129 -129
- package/src/objects/BatchedMesh.js +3 -2
package/package.json
CHANGED
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@needle-tools/three",
|
|
3
|
-
"version": "0.162.
|
|
4
|
-
"description": "JavaScript 3D library",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./build/three.cjs",
|
|
7
|
-
"module": "./build/three.module.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./build/three.module.js",
|
|
11
|
-
"require": "./build/three.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./examples/fonts/*": "./examples/fonts/*",
|
|
14
|
-
"./examples/jsm/*": "./examples/jsm/*",
|
|
15
|
-
"./addons": "./examples/jsm/Addons.js",
|
|
16
|
-
"./addons/*": "./examples/jsm/*",
|
|
17
|
-
"./src/*": "./src/*",
|
|
18
|
-
"./nodes": "./examples/jsm/nodes/Nodes.js"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "https://github.com/mrdoob/three.js"
|
|
23
|
-
},
|
|
24
|
-
"sideEffects": ["./examples/jsm/nodes/**/*"],
|
|
25
|
-
"files": [
|
|
26
|
-
"build",
|
|
27
|
-
"examples/jsm",
|
|
28
|
-
"examples/fonts",
|
|
29
|
-
"LICENSE",
|
|
30
|
-
"package.json",
|
|
31
|
-
"README.md",
|
|
32
|
-
"src"
|
|
33
|
-
],
|
|
34
|
-
"directories": {
|
|
35
|
-
"doc": "docs",
|
|
36
|
-
"example": "examples",
|
|
37
|
-
"test": "test"
|
|
38
|
-
},
|
|
39
|
-
"browserslist": [
|
|
40
|
-
"> 1%, not dead, not ie 11, not op_mini all"
|
|
41
|
-
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"start": "npm run dev",
|
|
44
|
-
"test": "npm run lint && npm run test-unit",
|
|
45
|
-
"build": "rollup -c utils/build/rollup.config.js",
|
|
46
|
-
"build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
|
|
47
|
-
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
|
|
48
|
-
"dev-ssl": "concurrently --names \"ROLLUP,HTTPS\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
|
|
49
|
-
"lint-core": "eslint src",
|
|
50
|
-
"lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
|
|
51
|
-
"lint-examples": "eslint examples --ext .html",
|
|
52
|
-
"lint-docs": "eslint docs --ignore-pattern prettify.js",
|
|
53
|
-
"lint-editor": "eslint editor --ignore-pattern libs",
|
|
54
|
-
"lint-playground": "eslint playground --ignore-pattern libs",
|
|
55
|
-
"lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
|
|
56
|
-
"lint-test": "eslint test --ignore-pattern vendor",
|
|
57
|
-
"lint-utils": "eslint utils",
|
|
58
|
-
"lint": "npm run lint-core",
|
|
59
|
-
"lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-playground -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix",
|
|
60
|
-
"test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
|
|
61
|
-
"test-e2e": "node test/e2e/puppeteer.js",
|
|
62
|
-
"test-e2e-cov": "node test/e2e/check-coverage.js",
|
|
63
|
-
"test-treeshake": "rollup -c test/rollup.treeshake.config.js",
|
|
64
|
-
"test-circular-deps": "dpdm --no-warning --no-tree --exit-code circular:1 examples/jsm/nodes/Nodes.js",
|
|
65
|
-
"make-screenshot": "node test/e2e/puppeteer.js --make"
|
|
66
|
-
},
|
|
67
|
-
"keywords": [
|
|
68
|
-
"three",
|
|
69
|
-
"three.js",
|
|
70
|
-
"javascript",
|
|
71
|
-
"3d",
|
|
72
|
-
"virtual-reality",
|
|
73
|
-
"augmented-reality",
|
|
74
|
-
"webgl",
|
|
75
|
-
"webgl2",
|
|
76
|
-
"webaudio",
|
|
77
|
-
"webgpu",
|
|
78
|
-
"webxr",
|
|
79
|
-
"canvas",
|
|
80
|
-
"svg",
|
|
81
|
-
"html5"
|
|
82
|
-
],
|
|
83
|
-
"author": "mrdoob",
|
|
84
|
-
"license": "MIT",
|
|
85
|
-
"bugs": {
|
|
86
|
-
"url": "https://github.com/mrdoob/three.js/issues"
|
|
87
|
-
},
|
|
88
|
-
"homepage": "https://threejs.org/",
|
|
89
|
-
"devDependencies": {
|
|
90
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
91
|
-
"@rollup/plugin-terser": "^0.4.0",
|
|
92
|
-
"chalk": "^5.2.0",
|
|
93
|
-
"concurrently": "^8.0.1",
|
|
94
|
-
"dpdm": "^3.14.0",
|
|
95
|
-
"eslint": "^8.37.0",
|
|
96
|
-
"eslint-config-mdcs": "^5.0.0",
|
|
97
|
-
"eslint-plugin-compat": "^4.1.2",
|
|
98
|
-
"eslint-plugin-html": "^8.0.0",
|
|
99
|
-
"eslint-plugin-import": "^2.27.5",
|
|
100
|
-
"failonlyreporter": "^1.0.0",
|
|
101
|
-
"jimp": "^0.22.7",
|
|
102
|
-
"magic-string": "^0.30.0",
|
|
103
|
-
"pixelmatch": "^5.3.0",
|
|
104
|
-
"puppeteer": "^22.0.0",
|
|
105
|
-
"qunit": "^2.19.4",
|
|
106
|
-
"rollup": "^4.6.0",
|
|
107
|
-
"rollup-plugin-filesize": "^10.0.0",
|
|
108
|
-
"rollup-plugin-visualizer": "^5.9.0",
|
|
109
|
-
"servez": "^2.0.0"
|
|
110
|
-
},
|
|
111
|
-
"overrides": {
|
|
112
|
-
"jpeg-js": "^0.4.4"
|
|
113
|
-
},
|
|
114
|
-
"jspm": {
|
|
115
|
-
"files": [
|
|
116
|
-
"package.json",
|
|
117
|
-
"LICENSE",
|
|
118
|
-
"README.md",
|
|
119
|
-
"build/three.js",
|
|
120
|
-
"build/three.min.js",
|
|
121
|
-
"build/three.module.js"
|
|
122
|
-
],
|
|
123
|
-
"directories": {}
|
|
124
|
-
},
|
|
125
|
-
"publishConfig": {
|
|
126
|
-
"access": "public",
|
|
127
|
-
"registry": "https://registry.npmjs.org"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@needle-tools/three",
|
|
3
|
+
"version": "0.162.2",
|
|
4
|
+
"description": "JavaScript 3D library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./build/three.cjs",
|
|
7
|
+
"module": "./build/three.module.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./build/three.module.js",
|
|
11
|
+
"require": "./build/three.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./examples/fonts/*": "./examples/fonts/*",
|
|
14
|
+
"./examples/jsm/*": "./examples/jsm/*",
|
|
15
|
+
"./addons": "./examples/jsm/Addons.js",
|
|
16
|
+
"./addons/*": "./examples/jsm/*",
|
|
17
|
+
"./src/*": "./src/*",
|
|
18
|
+
"./nodes": "./examples/jsm/nodes/Nodes.js"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/mrdoob/three.js"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": ["./examples/jsm/nodes/**/*"],
|
|
25
|
+
"files": [
|
|
26
|
+
"build",
|
|
27
|
+
"examples/jsm",
|
|
28
|
+
"examples/fonts",
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"package.json",
|
|
31
|
+
"README.md",
|
|
32
|
+
"src"
|
|
33
|
+
],
|
|
34
|
+
"directories": {
|
|
35
|
+
"doc": "docs",
|
|
36
|
+
"example": "examples",
|
|
37
|
+
"test": "test"
|
|
38
|
+
},
|
|
39
|
+
"browserslist": [
|
|
40
|
+
"> 1%, not dead, not ie 11, not op_mini all"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"start": "npm run dev",
|
|
44
|
+
"test": "npm run lint && npm run test-unit",
|
|
45
|
+
"build": "rollup -c utils/build/rollup.config.js",
|
|
46
|
+
"build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
|
|
47
|
+
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
|
|
48
|
+
"dev-ssl": "concurrently --names \"ROLLUP,HTTPS\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
|
|
49
|
+
"lint-core": "eslint src",
|
|
50
|
+
"lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
|
|
51
|
+
"lint-examples": "eslint examples --ext .html",
|
|
52
|
+
"lint-docs": "eslint docs --ignore-pattern prettify.js",
|
|
53
|
+
"lint-editor": "eslint editor --ignore-pattern libs",
|
|
54
|
+
"lint-playground": "eslint playground --ignore-pattern libs",
|
|
55
|
+
"lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
|
|
56
|
+
"lint-test": "eslint test --ignore-pattern vendor",
|
|
57
|
+
"lint-utils": "eslint utils",
|
|
58
|
+
"lint": "npm run lint-core",
|
|
59
|
+
"lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-playground -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix",
|
|
60
|
+
"test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
|
|
61
|
+
"test-e2e": "node test/e2e/puppeteer.js",
|
|
62
|
+
"test-e2e-cov": "node test/e2e/check-coverage.js",
|
|
63
|
+
"test-treeshake": "rollup -c test/rollup.treeshake.config.js",
|
|
64
|
+
"test-circular-deps": "dpdm --no-warning --no-tree --exit-code circular:1 examples/jsm/nodes/Nodes.js",
|
|
65
|
+
"make-screenshot": "node test/e2e/puppeteer.js --make"
|
|
66
|
+
},
|
|
67
|
+
"keywords": [
|
|
68
|
+
"three",
|
|
69
|
+
"three.js",
|
|
70
|
+
"javascript",
|
|
71
|
+
"3d",
|
|
72
|
+
"virtual-reality",
|
|
73
|
+
"augmented-reality",
|
|
74
|
+
"webgl",
|
|
75
|
+
"webgl2",
|
|
76
|
+
"webaudio",
|
|
77
|
+
"webgpu",
|
|
78
|
+
"webxr",
|
|
79
|
+
"canvas",
|
|
80
|
+
"svg",
|
|
81
|
+
"html5"
|
|
82
|
+
],
|
|
83
|
+
"author": "mrdoob",
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"bugs": {
|
|
86
|
+
"url": "https://github.com/mrdoob/three.js/issues"
|
|
87
|
+
},
|
|
88
|
+
"homepage": "https://threejs.org/",
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
91
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
92
|
+
"chalk": "^5.2.0",
|
|
93
|
+
"concurrently": "^8.0.1",
|
|
94
|
+
"dpdm": "^3.14.0",
|
|
95
|
+
"eslint": "^8.37.0",
|
|
96
|
+
"eslint-config-mdcs": "^5.0.0",
|
|
97
|
+
"eslint-plugin-compat": "^4.1.2",
|
|
98
|
+
"eslint-plugin-html": "^8.0.0",
|
|
99
|
+
"eslint-plugin-import": "^2.27.5",
|
|
100
|
+
"failonlyreporter": "^1.0.0",
|
|
101
|
+
"jimp": "^0.22.7",
|
|
102
|
+
"magic-string": "^0.30.0",
|
|
103
|
+
"pixelmatch": "^5.3.0",
|
|
104
|
+
"puppeteer": "^22.0.0",
|
|
105
|
+
"qunit": "^2.19.4",
|
|
106
|
+
"rollup": "^4.6.0",
|
|
107
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
108
|
+
"rollup-plugin-visualizer": "^5.9.0",
|
|
109
|
+
"servez": "^2.0.0"
|
|
110
|
+
},
|
|
111
|
+
"overrides": {
|
|
112
|
+
"jpeg-js": "^0.4.4"
|
|
113
|
+
},
|
|
114
|
+
"jspm": {
|
|
115
|
+
"files": [
|
|
116
|
+
"package.json",
|
|
117
|
+
"LICENSE",
|
|
118
|
+
"README.md",
|
|
119
|
+
"build/three.js",
|
|
120
|
+
"build/three.min.js",
|
|
121
|
+
"build/three.module.js"
|
|
122
|
+
],
|
|
123
|
+
"directories": {}
|
|
124
|
+
},
|
|
125
|
+
"publishConfig": {
|
|
126
|
+
"access": "public",
|
|
127
|
+
"registry": "https://registry.npmjs.org"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -195,8 +195,7 @@ class BatchedMesh extends Mesh {
|
|
|
195
195
|
const { array, itemSize, normalized } = srcAttribute;
|
|
196
196
|
|
|
197
197
|
const dstArray = new array.constructor( maxVertexCount * itemSize );
|
|
198
|
-
const dstAttribute = new
|
|
199
|
-
dstAttribute.setUsage( srcAttribute.usage );
|
|
198
|
+
const dstAttribute = new BufferAttribute( dstArray, itemSize, normalized );
|
|
200
199
|
|
|
201
200
|
geometry.setAttribute( attributeName, dstAttribute );
|
|
202
201
|
|
|
@@ -514,6 +513,7 @@ class BatchedMesh extends Mesh {
|
|
|
514
513
|
}
|
|
515
514
|
|
|
516
515
|
dstAttribute.needsUpdate = true;
|
|
516
|
+
dstAttribute.addUpdateRange( vertexStart * itemSize, vertexCount * itemSize );
|
|
517
517
|
|
|
518
518
|
}
|
|
519
519
|
|
|
@@ -537,6 +537,7 @@ class BatchedMesh extends Mesh {
|
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
dstIndex.needsUpdate = true;
|
|
540
|
+
dstIndex.addUpdateRange( indexStart, reservedRange.indexCount );
|
|
540
541
|
|
|
541
542
|
}
|
|
542
543
|
|