@xtctwins/tctwins-core 1.0.28 → 1.0.29
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/dist/tctwins-core.es.js +3093 -1454
- package/dist/tctwins-core.min.es.js +5 -5
- package/package.json +3 -2
- package/types/viewer/scene/scene/Scene.d.ts +46 -15
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xtctwins/tctwins-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Web Programming Toolkit for 3D/2D BIM and CAD",
|
|
6
6
|
"module": "./dist/tctwins-core.es.js",
|
|
7
7
|
"main": "./dist/tctwins-core.cjs.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "rollup --config rollup.config.js && rollup --config rollup.minified.config.js
|
|
10
|
+
"build": "rollup --config rollup.config.js && rollup --config rollup.minified.config.js",
|
|
11
11
|
"dev": "rollup --config rollup.dev.config.js; cp node_modules/web-ifc/web-ifc.wasm dist/.",
|
|
12
12
|
"test": "percy exec -- node ./snapshots.js",
|
|
13
13
|
"docs": "rm -Rf ./docs/*; ./node_modules/.bin/esdoc",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"eslint": "^8.13.0",
|
|
62
62
|
"parse5": "^7.0.0",
|
|
63
63
|
"rollup": "^2.70.2",
|
|
64
|
+
"rollup-plugin-livereload": "^2.0.5",
|
|
64
65
|
"rollup-plugin-terser": "^7.0.2",
|
|
65
66
|
"typedoc": "^0.22.15"
|
|
66
67
|
},
|
|
@@ -109,6 +109,34 @@ export declare class Scene extends Component {
|
|
|
109
109
|
*/
|
|
110
110
|
get dtxEnabled(): boolean;
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Sets whether physically-based rendering is enabled.
|
|
114
|
+
* Default is ````false````.
|
|
115
|
+
* @param {boolean} pbrEnabled
|
|
116
|
+
*/
|
|
117
|
+
set pbrEnabled(pbrEnabled: boolean);
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Gets whether physically-based rendering is enabled.
|
|
121
|
+
* Default is ````false````.
|
|
122
|
+
* @returns {Boolean} True if quality rendering is enabled.
|
|
123
|
+
*/
|
|
124
|
+
get pbrEnabled(): boolean;
|
|
125
|
+
|
|
126
|
+
/**+
|
|
127
|
+
* Sets whether environment light rendering is enabled.
|
|
128
|
+
* Default is ````false````.
|
|
129
|
+
* @param {boolean} saoEnabled
|
|
130
|
+
*/
|
|
131
|
+
set saoEnabled(saoEnabled: boolean);
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Gets whether environment light rendering is enabled.
|
|
135
|
+
* Default is ````false````.
|
|
136
|
+
* @returns {boolean}
|
|
137
|
+
*/
|
|
138
|
+
get saoEnabled(): boolean;
|
|
139
|
+
|
|
112
140
|
/**
|
|
113
141
|
* set showedges enable
|
|
114
142
|
* @param {boolean} edgesEnabled
|
|
@@ -120,6 +148,24 @@ export declare class Scene extends Component {
|
|
|
120
148
|
*/
|
|
121
149
|
get edgesEnabled(): boolean;
|
|
122
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Sets whether basic color texture rendering is enabled.
|
|
153
|
+
*
|
|
154
|
+
* Default is ````true````.
|
|
155
|
+
*
|
|
156
|
+
* @param {Boolean} colorTextureEnabled
|
|
157
|
+
*/
|
|
158
|
+
set colorTextureEnabled(colorTextureEnabled: boolean);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Gets whether basic color texture rendering is enabled.
|
|
162
|
+
*
|
|
163
|
+
* Default is ````true````.
|
|
164
|
+
*
|
|
165
|
+
* @returns {Boolean} True if basic color texture rendering is enabled.
|
|
166
|
+
*/
|
|
167
|
+
get colorTextureEnabled(): boolean;
|
|
168
|
+
|
|
123
169
|
/**
|
|
124
170
|
* set whether transparent of canvas background
|
|
125
171
|
* @param {boolean} trans
|
|
@@ -267,21 +313,6 @@ export declare class Scene extends Component {
|
|
|
267
313
|
*/
|
|
268
314
|
get logarithmicDepthBufferEnabled(): boolean;
|
|
269
315
|
|
|
270
|
-
/**
|
|
271
|
-
* Sets whether physically-based rendering is enabled.
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
set pbrEnabled(value: boolean);
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Gets whether quality rendering is enabled.
|
|
278
|
-
*
|
|
279
|
-
* Default is ````false````.
|
|
280
|
-
*
|
|
281
|
-
* @returns {Boolean} True if quality rendering is enabled.
|
|
282
|
-
*/
|
|
283
|
-
get pbrEnabled(): boolean;
|
|
284
|
-
|
|
285
316
|
/**
|
|
286
317
|
* Gets the IDs of the {@link Entity}s in {@link Scene.models}.
|
|
287
318
|
*
|