@nice2dev/ui-3d 1.3.15 → 1.3.17
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/CHANGELOG.md +13 -0
- package/dist/cjs/collaborative/collaborativeScene.js +160 -206
- package/dist/cjs/core/editorAsk.js +51 -41
- package/dist/cjs/core/i18n.js +13 -14
- package/dist/cjs/core/threeCompat.js +29 -42
- package/dist/cjs/dance/DanceBridge.js +148 -177
- package/dist/cjs/dance/DanceScoreEngine.js +209 -221
- package/dist/cjs/dance/PoseDetector.js +302 -275
- package/dist/cjs/index.js +110 -113
- package/dist/cjs/material/MaterialEditor.module.css.js +242 -5
- package/dist/cjs/material/NiceMaterialEditor.js +1213 -757
- package/dist/cjs/material/materialEditorTypes.js +35 -49
- package/dist/cjs/material/materialEditorUtils.js +684 -747
- package/dist/cjs/material/materialNodeDefinitions.js +1411 -1459
- package/dist/cjs/model/ModelEditor.js +90 -40
- package/dist/cjs/model/ModelEditor.module.css.js +257 -5
- package/dist/cjs/model/ModelEditorLeftPanel.js +126 -47
- package/dist/cjs/model/ModelEditorMenuBar.js +359 -32
- package/dist/cjs/model/ModelEditorRightPanel.js +647 -131
- package/dist/cjs/model/ModelEditorSubComponents.js +277 -112
- package/dist/cjs/model/ModelEditorTimeline.js +232 -34
- package/dist/cjs/model/ModelEditorToolbar.js +170 -14
- package/dist/cjs/model/ModelEditorViewport.js +231 -39
- package/dist/cjs/model/ModelViewer.js +388 -63
- package/dist/cjs/model/ModelViewer.module.css.js +77 -5
- package/dist/cjs/model/NiceArmatureEditor.js +473 -274
- package/dist/cjs/model/NiceMorphTargetEditor.js +333 -227
- package/dist/cjs/model/NiceOctree.js +372 -320
- package/dist/cjs/model/NicePhysicsSimulation.js +528 -298
- package/dist/cjs/model/NiceProceduralGeometry.js +673 -300
- package/dist/cjs/model/NiceTerrainEditor.js +595 -385
- package/dist/cjs/model/NiceWeightPainter.js +384 -261
- package/dist/cjs/model/NiceXRPreview.js +385 -308
- package/dist/cjs/model/cadModeUtils.js +103 -106
- package/dist/cjs/model/editorShortcuts.js +171 -194
- package/dist/cjs/model/modelEditorTypes.js +100 -118
- package/dist/cjs/model/modelEditorUtils.js +1061 -1146
- package/dist/cjs/model/simsModeUtils.js +1023 -1053
- package/dist/cjs/model/useModelEditor.js +1977 -1933
- package/dist/cjs/model/useModelViewer.js +633 -665
- package/dist/cjs/nice2dev-ui-3d.css +1 -1
- package/dist/cjs/particle/NiceParticleEditor.js +1186 -571
- package/dist/cjs/particle/ParticleEditor.module.css.js +122 -5
- package/dist/cjs/particle/particleEditorTypes.js +62 -70
- package/dist/cjs/particle/particleEditorUtils.js +998 -1013
- package/dist/cjs/rendering/NiceCascadedShadows.js +381 -259
- package/dist/cjs/rendering/NiceRenderExport.js +424 -337
- package/dist/cjs/rendering/NiceSSAO.js +454 -337
- package/dist/cjs/rendering/NiceSSR.js +387 -261
- package/dist/cjs/rendering/NiceWebGPURenderer.js +359 -230
- package/dist/cjs/uv/NiceUVEditor.js +787 -550
- package/dist/cjs/uv/UVEditor.module.css.js +53 -5
- package/dist/cjs/uv/uvEditorTypes.js +59 -76
- package/dist/cjs/uv/uvEditorUtils.js +501 -575
- package/dist/esm/collaborative/collaborativeScene.js +163 -205
- package/dist/esm/core/editorAsk.js +53 -40
- package/dist/esm/core/i18n.js +15 -13
- package/dist/esm/core/threeCompat.js +18 -26
- package/dist/esm/dance/DanceBridge.js +151 -176
- package/dist/esm/dance/DanceScoreEngine.js +211 -220
- package/dist/esm/dance/PoseDetector.js +304 -274
- package/dist/esm/index.js +258 -36
- package/dist/esm/material/MaterialEditor.module.css.js +242 -3
- package/dist/esm/material/NiceMaterialEditor.js +1215 -756
- package/dist/esm/material/materialEditorTypes.js +45 -48
- package/dist/esm/material/materialEditorUtils.js +713 -746
- package/dist/esm/material/materialNodeDefinitions.js +1415 -1458
- package/dist/esm/model/ModelEditor.js +91 -39
- package/dist/esm/model/ModelEditor.module.css.js +257 -3
- package/dist/esm/model/ModelEditorLeftPanel.js +126 -45
- package/dist/esm/model/ModelEditorMenuBar.js +359 -30
- package/dist/esm/model/ModelEditorRightPanel.js +634 -114
- package/dist/esm/model/ModelEditorSubComponents.js +265 -94
- package/dist/esm/model/ModelEditorTimeline.js +232 -32
- package/dist/esm/model/ModelEditorToolbar.js +170 -12
- package/dist/esm/model/ModelEditorViewport.js +231 -37
- package/dist/esm/model/ModelViewer.js +389 -62
- package/dist/esm/model/ModelViewer.module.css.js +77 -3
- package/dist/esm/model/NiceArmatureEditor.js +462 -258
- package/dist/esm/model/NiceMorphTargetEditor.js +322 -211
- package/dist/esm/model/NiceOctree.js +361 -304
- package/dist/esm/model/NicePhysicsSimulation.js +517 -282
- package/dist/esm/model/NiceProceduralGeometry.js +667 -284
- package/dist/esm/model/NiceTerrainEditor.js +584 -369
- package/dist/esm/model/NiceWeightPainter.js +373 -245
- package/dist/esm/model/NiceXRPreview.js +374 -292
- package/dist/esm/model/cadModeUtils.js +95 -88
- package/dist/esm/model/editorShortcuts.js +172 -193
- package/dist/esm/model/modelEditorTypes.js +90 -100
- package/dist/esm/model/modelEditorUtils.js +1056 -1128
- package/dist/esm/model/simsModeUtils.js +1021 -1035
- package/dist/esm/model/useModelEditor.js +1946 -1920
- package/dist/esm/model/useModelViewer.js +619 -647
- package/dist/esm/nice2dev-ui-3d.css +1 -1
- package/dist/esm/particle/NiceParticleEditor.js +1188 -570
- package/dist/esm/particle/ParticleEditor.module.css.js +122 -3
- package/dist/esm/particle/particleEditorTypes.js +69 -69
- package/dist/esm/particle/particleEditorUtils.js +1027 -1012
- package/dist/esm/rendering/NiceCascadedShadows.js +370 -243
- package/dist/esm/rendering/NiceRenderExport.js +413 -321
- package/dist/esm/rendering/NiceSSAO.js +450 -328
- package/dist/esm/rendering/NiceSSR.js +383 -252
- package/dist/esm/rendering/NiceWebGPURenderer.js +326 -214
- package/dist/esm/uv/NiceUVEditor.js +788 -549
- package/dist/esm/uv/UVEditor.module.css.js +53 -3
- package/dist/esm/uv/uvEditorTypes.js +68 -75
- package/dist/esm/uv/uvEditorUtils.js +515 -557
- package/package.json +7 -12
package/dist/cjs/index.js
CHANGED
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ModelEditor = require("./model/ModelEditor.js");
|
|
4
|
+
const ModelViewer = require("./model/ModelViewer.js");
|
|
5
|
+
const cadModeUtils = require("./model/cadModeUtils.js");
|
|
6
|
+
const simsModeUtils = require("./model/simsModeUtils.js");
|
|
7
|
+
const useModelEditor = require("./model/useModelEditor.js");
|
|
8
|
+
const useModelViewer = require("./model/useModelViewer.js");
|
|
9
|
+
const i18n = require("./core/i18n.js");
|
|
10
|
+
const modelEditorUtils = require("./model/modelEditorUtils.js");
|
|
11
|
+
const editorShortcuts = require("./model/editorShortcuts.js");
|
|
12
|
+
const PoseDetector = require("./dance/PoseDetector.js");
|
|
13
|
+
const DanceScoreEngine = require("./dance/DanceScoreEngine.js");
|
|
14
|
+
const DanceBridge = require("./dance/DanceBridge.js");
|
|
15
|
+
const NiceUVEditor = require("./uv/NiceUVEditor.js");
|
|
16
|
+
const uvEditorTypes = require("./uv/uvEditorTypes.js");
|
|
17
|
+
const uvEditorUtils = require("./uv/uvEditorUtils.js");
|
|
18
|
+
const collaborativeScene = require("./collaborative/collaborativeScene.js");
|
|
19
|
+
const NiceArmatureEditor = require("./model/NiceArmatureEditor.js");
|
|
20
|
+
const NiceWeightPainter = require("./model/NiceWeightPainter.js");
|
|
21
|
+
const NiceMorphTargetEditor = require("./model/NiceMorphTargetEditor.js");
|
|
22
|
+
const NiceTerrainEditor = require("./model/NiceTerrainEditor.js");
|
|
23
|
+
const NicePhysicsSimulation = require("./model/NicePhysicsSimulation.js");
|
|
24
|
+
const NiceProceduralGeometry = require("./model/NiceProceduralGeometry.js");
|
|
25
|
+
const NiceXRPreview = require("./model/NiceXRPreview.js");
|
|
26
|
+
const NiceOctree = require("./model/NiceOctree.js");
|
|
27
|
+
const NiceWebGPURenderer = require("./rendering/NiceWebGPURenderer.js");
|
|
28
|
+
const NiceCascadedShadows = require("./rendering/NiceCascadedShadows.js");
|
|
29
|
+
const NiceSSR = require("./rendering/NiceSSR.js");
|
|
30
|
+
const NiceSSAO = require("./rendering/NiceSSAO.js");
|
|
31
|
+
const NiceRenderExport = require("./rendering/NiceRenderExport.js");
|
|
32
|
+
const particleEditorTypes = require("./particle/particleEditorTypes.js");
|
|
33
|
+
const materialEditorTypes = require("./material/materialEditorTypes.js");
|
|
34
|
+
const materialNodeDefinitions = require("./material/materialNodeDefinitions.js");
|
|
35
|
+
const NiceMaterialEditor = require("./material/NiceMaterialEditor.js");
|
|
36
|
+
const NiceParticleEditor = require("./particle/NiceParticleEditor.js");
|
|
37
|
+
const particleEditorUtils = require("./particle/particleEditorUtils.js");
|
|
38
|
+
const materialEditorUtils = require("./material/materialEditorUtils.js");
|
|
42
39
|
exports.NiceModelEditor = ModelEditor.NiceModelEditor;
|
|
43
40
|
exports.NiceModelViewer = ModelViewer.NiceModelViewer;
|
|
44
41
|
exports.DEFAULT_CAD_SETTINGS = cadModeUtils.DEFAULT_CAD_SETTINGS;
|
|
@@ -142,8 +139,47 @@ exports.uvLerp = uvEditorUtils.uvLerp;
|
|
|
142
139
|
exports.uvRotate = uvEditorUtils.uvRotate;
|
|
143
140
|
exports.uvScale = uvEditorUtils.uvScale;
|
|
144
141
|
exports.uvSub = uvEditorUtils.uvSub;
|
|
145
|
-
exports.
|
|
146
|
-
exports.
|
|
142
|
+
exports.syncSceneToYjs = collaborativeScene.syncSceneToYjs;
|
|
143
|
+
exports.syncYjsToScene = collaborativeScene.syncYjsToScene;
|
|
144
|
+
exports.useCollaborativeScene = collaborativeScene.useCollaborativeScene;
|
|
145
|
+
exports.NiceArmatureEditor = NiceArmatureEditor.NiceArmatureEditor;
|
|
146
|
+
exports.useArmatureEditor = NiceArmatureEditor.useArmatureEditor;
|
|
147
|
+
exports.NiceWeightPainter = NiceWeightPainter.NiceWeightPainter;
|
|
148
|
+
exports.useWeightPainter = NiceWeightPainter.useWeightPainter;
|
|
149
|
+
exports.NiceMorphTargetEditor = NiceMorphTargetEditor.NiceMorphTargetEditor;
|
|
150
|
+
exports.useMorphTargetEditor = NiceMorphTargetEditor.useMorphTargetEditor;
|
|
151
|
+
exports.NiceTerrainEditor = NiceTerrainEditor.NiceTerrainEditor;
|
|
152
|
+
exports.useTerrainEditor = NiceTerrainEditor.useTerrainEditor;
|
|
153
|
+
exports.NicePhysicsSimulation = NicePhysicsSimulation.NicePhysicsSimulation;
|
|
154
|
+
exports.usePhysicsSimulation = NicePhysicsSimulation.usePhysicsSimulation;
|
|
155
|
+
exports.NiceProceduralGeometry = NiceProceduralGeometry.NiceProceduralGeometry;
|
|
156
|
+
exports.generateBuilding = NiceProceduralGeometry.generateBuilding;
|
|
157
|
+
exports.generateGear = NiceProceduralGeometry.generateGear;
|
|
158
|
+
exports.generatePipe = NiceProceduralGeometry.generatePipe;
|
|
159
|
+
exports.generateRock = NiceProceduralGeometry.generateRock;
|
|
160
|
+
exports.generateTree = NiceProceduralGeometry.generateTree;
|
|
161
|
+
exports.useProceduralGeometry = NiceProceduralGeometry.useProceduralGeometry;
|
|
162
|
+
exports.NiceXRPreview = NiceXRPreview.NiceXRPreview;
|
|
163
|
+
exports.useXRPreview = NiceXRPreview.useXRPreview;
|
|
164
|
+
exports.NiceOctree = NiceOctree.NiceOctree;
|
|
165
|
+
exports.useOctree = NiceOctree.useOctree;
|
|
166
|
+
exports.NiceWebGPURenderer = NiceWebGPURenderer.NiceWebGPURenderer;
|
|
167
|
+
exports.useWebGPURenderer = NiceWebGPURenderer.useWebGPURenderer;
|
|
168
|
+
exports.NiceCascadedShadows = NiceCascadedShadows.NiceCascadedShadows;
|
|
169
|
+
exports.useCSM = NiceCascadedShadows.useCSM;
|
|
170
|
+
exports.NiceSSR = NiceSSR.NiceSSR;
|
|
171
|
+
exports.useSSR = NiceSSR.useSSR;
|
|
172
|
+
exports.NiceSSAO = NiceSSAO.NiceSSAO;
|
|
173
|
+
exports.useSSAO = NiceSSAO.useSSAO;
|
|
174
|
+
exports.NiceRenderExport = NiceRenderExport.NiceRenderExport;
|
|
175
|
+
exports.useRenderExport = NiceRenderExport.useRenderExport;
|
|
176
|
+
exports.BLEND_MODE_NAMES = particleEditorTypes.BLEND_MODE_NAMES;
|
|
177
|
+
exports.DEFAULT_CURVE_POINTS = particleEditorTypes.DEFAULT_CURVE;
|
|
178
|
+
exports.DEFAULT_GRADIENT = particleEditorTypes.DEFAULT_GRADIENT;
|
|
179
|
+
exports.EMITTER_SHAPE_NAMES = particleEditorTypes.EMITTER_SHAPE_NAMES;
|
|
180
|
+
exports.FORCE_NAMES = particleEditorTypes.FORCE_NAMES;
|
|
181
|
+
exports.MODULE_NAMES = particleEditorTypes.MODULE_NAMES;
|
|
182
|
+
exports.RENDER_MODE_NAMES = particleEditorTypes.RENDER_MODE_NAMES;
|
|
147
183
|
exports.DEFAULT_GRID_SIZE = materialEditorTypes.DEFAULT_GRID_SIZE;
|
|
148
184
|
exports.MAX_ZOOM = materialEditorTypes.MAX_ZOOM;
|
|
149
185
|
exports.MIN_ZOOM = materialEditorTypes.MIN_ZOOM;
|
|
@@ -158,44 +194,10 @@ exports.MATERIAL_NODE_DEFINITIONS = materialNodeDefinitions.MATERIAL_NODE_DEFINI
|
|
|
158
194
|
exports.MATERIAL_NODE_MAP = materialNodeDefinitions.MATERIAL_NODE_MAP;
|
|
159
195
|
exports.getNodesByCategory = materialNodeDefinitions.getNodesByCategory;
|
|
160
196
|
exports.searchNodes = materialNodeDefinitions.searchNodes;
|
|
161
|
-
exports.
|
|
162
|
-
exports.
|
|
163
|
-
exports.areTypesCompatible = materialEditorUtils.areTypesCompatible;
|
|
164
|
-
exports.calculateBoundingBox = materialEditorUtils.calculateBoundingBox;
|
|
165
|
-
exports.calculateZoomToFit = materialEditorUtils.calculateZoomToFit;
|
|
166
|
-
exports.canConnect = materialEditorUtils.canConnect;
|
|
167
|
-
exports.cloneNode = materialEditorUtils.cloneNode;
|
|
168
|
-
exports.compileShader = materialEditorUtils.compileShader;
|
|
169
|
-
exports.createConnection = materialEditorUtils.createConnection;
|
|
170
|
-
exports.createEmptyGraph = materialEditorUtils.createEmptyGraph;
|
|
171
|
-
exports.createNode = materialEditorUtils.createNode;
|
|
172
|
-
exports.exportGraphToJSON = materialEditorUtils.exportGraphToJSON;
|
|
173
|
-
exports.exportToThreeJS = materialEditorUtils.exportToThreeJS;
|
|
174
|
-
exports.generateConnectionId = materialEditorUtils.generateConnectionId;
|
|
175
|
-
exports.generateNodeId = materialEditorUtils.generateNodeId;
|
|
176
|
-
exports.getNodeBounds = materialEditorUtils.getNodeBounds;
|
|
177
|
-
exports.getNodeConnections = materialEditorUtils.getNodeConnections;
|
|
178
|
-
exports.getNodeDefinition = materialEditorUtils.getNodeDefinition;
|
|
179
|
-
exports.getPortConnections = materialEditorUtils.getPortConnections;
|
|
180
|
-
exports.graphToScreen = materialEditorUtils.graphToScreen;
|
|
181
|
-
exports.importGraphFromJSON = materialEditorUtils.importGraphFromJSON;
|
|
182
|
-
exports.moveNodesInGraph = materialEditorUtils.moveNodesInGraph;
|
|
183
|
-
exports.removeConnectionFromGraph = materialEditorUtils.removeConnectionFromGraph;
|
|
184
|
-
exports.removeNodesFromGraph = materialEditorUtils.removeNodesFromGraph;
|
|
185
|
-
exports.resetIdCounters = materialEditorUtils.resetIdCounters;
|
|
186
|
-
exports.screenToGraph = materialEditorUtils.screenToGraph;
|
|
187
|
-
exports.topologicalSort = materialEditorUtils.topologicalSort;
|
|
188
|
-
exports.updateNodeInGraph = materialEditorUtils.updateNodeInGraph;
|
|
189
|
-
exports.validateGraph = materialEditorUtils.validateGraph;
|
|
197
|
+
exports.NiceMaterialEditor = NiceMaterialEditor.NiceMaterialEditor;
|
|
198
|
+
exports.useMaterialEditor = NiceMaterialEditor.useMaterialEditor;
|
|
190
199
|
exports.NiceParticleEditor = NiceParticleEditor.NiceParticleEditor;
|
|
191
200
|
exports.useParticleEditor = NiceParticleEditor.useParticleEditor;
|
|
192
|
-
exports.BLEND_MODE_NAMES = particleEditorTypes.BLEND_MODE_NAMES;
|
|
193
|
-
exports.DEFAULT_CURVE_POINTS = particleEditorTypes.DEFAULT_CURVE;
|
|
194
|
-
exports.DEFAULT_GRADIENT = particleEditorTypes.DEFAULT_GRADIENT;
|
|
195
|
-
exports.EMITTER_SHAPE_NAMES = particleEditorTypes.EMITTER_SHAPE_NAMES;
|
|
196
|
-
exports.FORCE_NAMES = particleEditorTypes.FORCE_NAMES;
|
|
197
|
-
exports.MODULE_NAMES = particleEditorTypes.MODULE_NAMES;
|
|
198
|
-
exports.RENDER_MODE_NAMES = particleEditorTypes.RENDER_MODE_NAMES;
|
|
199
201
|
exports.PARTICLE_PRESETS = particleEditorUtils.PARTICLE_PRESETS;
|
|
200
202
|
exports.applyForce = particleEditorUtils.applyForce;
|
|
201
203
|
exports.applyPreset = particleEditorUtils.applyPreset;
|
|
@@ -225,37 +227,32 @@ exports.vec3Normalize = particleEditorUtils.vec3Normalize;
|
|
|
225
227
|
exports.vec3Random = particleEditorUtils.vec3Random;
|
|
226
228
|
exports.vec3RandomOnSphere = particleEditorUtils.vec3RandomOnSphere;
|
|
227
229
|
exports.vec3Sub = particleEditorUtils.vec3Sub;
|
|
228
|
-
exports.
|
|
229
|
-
exports.
|
|
230
|
-
exports.
|
|
231
|
-
exports.
|
|
232
|
-
exports.
|
|
233
|
-
exports.
|
|
234
|
-
exports.
|
|
235
|
-
exports.
|
|
236
|
-
exports.
|
|
237
|
-
exports.
|
|
238
|
-
exports.
|
|
239
|
-
exports.
|
|
240
|
-
exports.
|
|
241
|
-
exports.
|
|
242
|
-
exports.
|
|
243
|
-
exports.
|
|
244
|
-
exports.
|
|
245
|
-
exports.
|
|
246
|
-
exports.
|
|
247
|
-
exports.
|
|
248
|
-
exports.
|
|
249
|
-
exports.
|
|
250
|
-
exports.
|
|
251
|
-
exports.
|
|
252
|
-
exports.
|
|
253
|
-
exports.
|
|
254
|
-
exports.
|
|
255
|
-
exports.
|
|
256
|
-
exports.
|
|
257
|
-
exports.useSSR = NiceSSR.useSSR;
|
|
258
|
-
exports.NiceSSAO = NiceSSAO.NiceSSAO;
|
|
259
|
-
exports.useSSAO = NiceSSAO.useSSAO;
|
|
260
|
-
exports.NiceRenderExport = NiceRenderExport.NiceRenderExport;
|
|
261
|
-
exports.useRenderExport = NiceRenderExport.useRenderExport;
|
|
230
|
+
exports.addConnectionToGraph = materialEditorUtils.addConnectionToGraph;
|
|
231
|
+
exports.addNodeToGraph = materialEditorUtils.addNodeToGraph;
|
|
232
|
+
exports.areTypesCompatible = materialEditorUtils.areTypesCompatible;
|
|
233
|
+
exports.calculateBoundingBox = materialEditorUtils.calculateBoundingBox;
|
|
234
|
+
exports.calculateZoomToFit = materialEditorUtils.calculateZoomToFit;
|
|
235
|
+
exports.canConnect = materialEditorUtils.canConnect;
|
|
236
|
+
exports.cloneNode = materialEditorUtils.cloneNode;
|
|
237
|
+
exports.compileShader = materialEditorUtils.compileShader;
|
|
238
|
+
exports.createConnection = materialEditorUtils.createConnection;
|
|
239
|
+
exports.createEmptyGraph = materialEditorUtils.createEmptyGraph;
|
|
240
|
+
exports.createNode = materialEditorUtils.createNode;
|
|
241
|
+
exports.exportGraphToJSON = materialEditorUtils.exportGraphToJSON;
|
|
242
|
+
exports.exportToThreeJS = materialEditorUtils.exportToThreeJS;
|
|
243
|
+
exports.generateConnectionId = materialEditorUtils.generateConnectionId;
|
|
244
|
+
exports.generateNodeId = materialEditorUtils.generateNodeId;
|
|
245
|
+
exports.getNodeBounds = materialEditorUtils.getNodeBounds;
|
|
246
|
+
exports.getNodeConnections = materialEditorUtils.getNodeConnections;
|
|
247
|
+
exports.getNodeDefinition = materialEditorUtils.getNodeDefinition;
|
|
248
|
+
exports.getPortConnections = materialEditorUtils.getPortConnections;
|
|
249
|
+
exports.graphToScreen = materialEditorUtils.graphToScreen;
|
|
250
|
+
exports.importGraphFromJSON = materialEditorUtils.importGraphFromJSON;
|
|
251
|
+
exports.moveNodesInGraph = materialEditorUtils.moveNodesInGraph;
|
|
252
|
+
exports.removeConnectionFromGraph = materialEditorUtils.removeConnectionFromGraph;
|
|
253
|
+
exports.removeNodesFromGraph = materialEditorUtils.removeNodesFromGraph;
|
|
254
|
+
exports.resetIdCounters = materialEditorUtils.resetIdCounters;
|
|
255
|
+
exports.screenToGraph = materialEditorUtils.screenToGraph;
|
|
256
|
+
exports.topologicalSort = materialEditorUtils.topologicalSort;
|
|
257
|
+
exports.updateNodeInGraph = materialEditorUtils.updateNodeInGraph;
|
|
258
|
+
exports.validateGraph = materialEditorUtils.validateGraph;
|
|
@@ -1,5 +1,242 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const materialEditor = "_materialEditor_9l27r_17";
|
|
4
|
+
const light = "_light_9l27r_71";
|
|
5
|
+
const toolbar = "_toolbar_9l27r_143";
|
|
6
|
+
const toolbarGroup = "_toolbarGroup_9l27r_161";
|
|
7
|
+
const toolbarSeparator = "_toolbarSeparator_9l27r_173";
|
|
8
|
+
const active = "_active_9l27r_245";
|
|
9
|
+
const palette = "_palette_9l27r_263";
|
|
10
|
+
const paletteSearch = "_paletteSearch_9l27r_281";
|
|
11
|
+
const searchInput = "_searchInput_9l27r_291";
|
|
12
|
+
const paletteCategories = "_paletteCategories_9l27r_331";
|
|
13
|
+
const paletteCategory = "_paletteCategory_9l27r_343";
|
|
14
|
+
const categoryHeader = "_categoryHeader_9l27r_351";
|
|
15
|
+
const categoryIcon = "_categoryIcon_9l27r_393";
|
|
16
|
+
const categoryCount = "_categoryCount_9l27r_405";
|
|
17
|
+
const categoryNodes = "_categoryNodes_9l27r_425";
|
|
18
|
+
const paletteNode = "_paletteNode_9l27r_433";
|
|
19
|
+
const nodeColor = "_nodeColor_9l27r_469";
|
|
20
|
+
const nodeName = "_nodeName_9l27r_483";
|
|
21
|
+
const graphCanvas = "_graphCanvas_9l27r_509";
|
|
22
|
+
const connectionsSvg = "_connectionsSvg_9l27r_533";
|
|
23
|
+
const connection = "_connection_9l27r_533";
|
|
24
|
+
const pendingConnection = "_pendingConnection_9l27r_575";
|
|
25
|
+
const dashAnimation = "_dashAnimation_9l27r_1";
|
|
26
|
+
const graphNode = "_graphNode_9l27r_605";
|
|
27
|
+
const selected = "_selected_9l27r_639";
|
|
28
|
+
const locked = "_locked_9l27r_653";
|
|
29
|
+
const nodeHeader = "_nodeHeader_9l27r_663";
|
|
30
|
+
const nodeTitle = "_nodeTitle_9l27r_687";
|
|
31
|
+
const lockIcon = "_lockIcon_9l27r_701";
|
|
32
|
+
const nodePorts = "_nodePorts_9l27r_711";
|
|
33
|
+
const inputPorts = "_inputPorts_9l27r_721";
|
|
34
|
+
const outputPorts = "_outputPorts_9l27r_733";
|
|
35
|
+
const port = "_port_9l27r_745";
|
|
36
|
+
const portHandle = "_portHandle_9l27r_785";
|
|
37
|
+
const inputHandle = "_inputHandle_9l27r_815";
|
|
38
|
+
const outputHandle = "_outputHandle_9l27r_823";
|
|
39
|
+
const connected = "_connected_9l27r_831";
|
|
40
|
+
const portLabel = "_portLabel_9l27r_839";
|
|
41
|
+
const nodeComment = "_nodeComment_9l27r_847";
|
|
42
|
+
const previewPanel = "_previewPanel_9l27r_887";
|
|
43
|
+
const previewHeader = "_previewHeader_9l27r_905";
|
|
44
|
+
const previewModeSelect = "_previewModeSelect_9l27r_925";
|
|
45
|
+
const previewCanvas = "_previewCanvas_9l27r_945";
|
|
46
|
+
const previewCompiling = "_previewCompiling_9l27r_975";
|
|
47
|
+
const pulse = "_pulse_9l27r_1";
|
|
48
|
+
const previewErrors = "_previewErrors_9l27r_1025";
|
|
49
|
+
const previewError = "_previewError_9l27r_1025";
|
|
50
|
+
const propertiesPanel = "_propertiesPanel_9l27r_1067";
|
|
51
|
+
const propertiesHeader = "_propertiesHeader_9l27r_1085";
|
|
52
|
+
const propertiesContent = "_propertiesContent_9l27r_1103";
|
|
53
|
+
const propertyGroup = "_propertyGroup_9l27r_1115";
|
|
54
|
+
const propertyGroupTitle = "_propertyGroupTitle_9l27r_1123";
|
|
55
|
+
const propertyRow = "_propertyRow_9l27r_1141";
|
|
56
|
+
const propertyLabel = "_propertyLabel_9l27r_1153";
|
|
57
|
+
const propertyInput = "_propertyInput_9l27r_1165";
|
|
58
|
+
const propertyColorPreview = "_propertyColorPreview_9l27r_1195";
|
|
59
|
+
const colorSwatch = "_colorSwatch_9l27r_1207";
|
|
60
|
+
const propertySlider = "_propertySlider_9l27r_1223";
|
|
61
|
+
const sliderValue = "_sliderValue_9l27r_1271";
|
|
62
|
+
const minimap = "_minimap_9l27r_1293";
|
|
63
|
+
const minimapNodes = "_minimapNodes_9l27r_1319";
|
|
64
|
+
const minimapNode = "_minimapNode_9l27r_1319";
|
|
65
|
+
const minimapViewport = "_minimapViewport_9l27r_1341";
|
|
66
|
+
const selectionBox = "_selectionBox_9l27r_1363";
|
|
67
|
+
const contextMenu = "_contextMenu_9l27r_1385";
|
|
68
|
+
const contextMenuItem = "_contextMenuItem_9l27r_1407";
|
|
69
|
+
const disabled = "_disabled_9l27r_1435";
|
|
70
|
+
const contextMenuShortcut = "_contextMenuShortcut_9l27r_1453";
|
|
71
|
+
const contextMenuSeparator = "_contextMenuSeparator_9l27r_1465";
|
|
72
|
+
const zoomControls = "_zoomControls_9l27r_1485";
|
|
73
|
+
const zoomLevel = "_zoomLevel_9l27r_1553";
|
|
74
|
+
const tooltip = "_tooltip_9l27r_1575";
|
|
75
|
+
const emptyState = "_emptyState_9l27r_1645";
|
|
76
|
+
const emptyStateIcon = "_emptyStateIcon_9l27r_1663";
|
|
77
|
+
const emptyStateTitle = "_emptyStateTitle_9l27r_1675";
|
|
78
|
+
const emptyStateDescription = "_emptyStateDescription_9l27r_1689";
|
|
79
|
+
const open = "_open_9l27r_1731";
|
|
80
|
+
const nodeAppear = "_nodeAppear_9l27r_1";
|
|
81
|
+
const connectionDraw = "_connectionDraw_9l27r_1";
|
|
82
|
+
const styles = {
|
|
83
|
+
materialEditor,
|
|
84
|
+
light,
|
|
85
|
+
toolbar,
|
|
86
|
+
toolbarGroup,
|
|
87
|
+
toolbarSeparator,
|
|
88
|
+
active,
|
|
89
|
+
palette,
|
|
90
|
+
paletteSearch,
|
|
91
|
+
searchInput,
|
|
92
|
+
paletteCategories,
|
|
93
|
+
paletteCategory,
|
|
94
|
+
categoryHeader,
|
|
95
|
+
categoryIcon,
|
|
96
|
+
categoryCount,
|
|
97
|
+
categoryNodes,
|
|
98
|
+
paletteNode,
|
|
99
|
+
nodeColor,
|
|
100
|
+
nodeName,
|
|
101
|
+
graphCanvas,
|
|
102
|
+
connectionsSvg,
|
|
103
|
+
connection,
|
|
104
|
+
pendingConnection,
|
|
105
|
+
dashAnimation,
|
|
106
|
+
graphNode,
|
|
107
|
+
selected,
|
|
108
|
+
locked,
|
|
109
|
+
nodeHeader,
|
|
110
|
+
nodeTitle,
|
|
111
|
+
lockIcon,
|
|
112
|
+
nodePorts,
|
|
113
|
+
inputPorts,
|
|
114
|
+
outputPorts,
|
|
115
|
+
port,
|
|
116
|
+
portHandle,
|
|
117
|
+
inputHandle,
|
|
118
|
+
outputHandle,
|
|
119
|
+
connected,
|
|
120
|
+
portLabel,
|
|
121
|
+
nodeComment,
|
|
122
|
+
previewPanel,
|
|
123
|
+
previewHeader,
|
|
124
|
+
previewModeSelect,
|
|
125
|
+
previewCanvas,
|
|
126
|
+
previewCompiling,
|
|
127
|
+
pulse,
|
|
128
|
+
previewErrors,
|
|
129
|
+
previewError,
|
|
130
|
+
propertiesPanel,
|
|
131
|
+
propertiesHeader,
|
|
132
|
+
propertiesContent,
|
|
133
|
+
propertyGroup,
|
|
134
|
+
propertyGroupTitle,
|
|
135
|
+
propertyRow,
|
|
136
|
+
propertyLabel,
|
|
137
|
+
propertyInput,
|
|
138
|
+
propertyColorPreview,
|
|
139
|
+
colorSwatch,
|
|
140
|
+
propertySlider,
|
|
141
|
+
sliderValue,
|
|
142
|
+
minimap,
|
|
143
|
+
minimapNodes,
|
|
144
|
+
minimapNode,
|
|
145
|
+
minimapViewport,
|
|
146
|
+
selectionBox,
|
|
147
|
+
contextMenu,
|
|
148
|
+
contextMenuItem,
|
|
149
|
+
disabled,
|
|
150
|
+
contextMenuShortcut,
|
|
151
|
+
contextMenuSeparator,
|
|
152
|
+
zoomControls,
|
|
153
|
+
zoomLevel,
|
|
154
|
+
tooltip,
|
|
155
|
+
emptyState,
|
|
156
|
+
emptyStateIcon,
|
|
157
|
+
emptyStateTitle,
|
|
158
|
+
emptyStateDescription,
|
|
159
|
+
open,
|
|
160
|
+
nodeAppear,
|
|
161
|
+
connectionDraw
|
|
162
|
+
};
|
|
163
|
+
exports.active = active;
|
|
164
|
+
exports.categoryCount = categoryCount;
|
|
165
|
+
exports.categoryHeader = categoryHeader;
|
|
166
|
+
exports.categoryIcon = categoryIcon;
|
|
167
|
+
exports.categoryNodes = categoryNodes;
|
|
168
|
+
exports.colorSwatch = colorSwatch;
|
|
169
|
+
exports.connected = connected;
|
|
170
|
+
exports.connection = connection;
|
|
171
|
+
exports.connectionDraw = connectionDraw;
|
|
172
|
+
exports.connectionsSvg = connectionsSvg;
|
|
173
|
+
exports.contextMenu = contextMenu;
|
|
174
|
+
exports.contextMenuItem = contextMenuItem;
|
|
175
|
+
exports.contextMenuSeparator = contextMenuSeparator;
|
|
176
|
+
exports.contextMenuShortcut = contextMenuShortcut;
|
|
177
|
+
exports.dashAnimation = dashAnimation;
|
|
178
|
+
exports.default = styles;
|
|
179
|
+
exports.disabled = disabled;
|
|
180
|
+
exports.emptyState = emptyState;
|
|
181
|
+
exports.emptyStateDescription = emptyStateDescription;
|
|
182
|
+
exports.emptyStateIcon = emptyStateIcon;
|
|
183
|
+
exports.emptyStateTitle = emptyStateTitle;
|
|
184
|
+
exports.graphCanvas = graphCanvas;
|
|
185
|
+
exports.graphNode = graphNode;
|
|
186
|
+
exports.inputHandle = inputHandle;
|
|
187
|
+
exports.inputPorts = inputPorts;
|
|
188
|
+
exports.light = light;
|
|
189
|
+
exports.lockIcon = lockIcon;
|
|
190
|
+
exports.locked = locked;
|
|
191
|
+
exports.materialEditor = materialEditor;
|
|
192
|
+
exports.minimap = minimap;
|
|
193
|
+
exports.minimapNode = minimapNode;
|
|
194
|
+
exports.minimapNodes = minimapNodes;
|
|
195
|
+
exports.minimapViewport = minimapViewport;
|
|
196
|
+
exports.nodeAppear = nodeAppear;
|
|
197
|
+
exports.nodeColor = nodeColor;
|
|
198
|
+
exports.nodeComment = nodeComment;
|
|
199
|
+
exports.nodeHeader = nodeHeader;
|
|
200
|
+
exports.nodeName = nodeName;
|
|
201
|
+
exports.nodePorts = nodePorts;
|
|
202
|
+
exports.nodeTitle = nodeTitle;
|
|
203
|
+
exports.open = open;
|
|
204
|
+
exports.outputHandle = outputHandle;
|
|
205
|
+
exports.outputPorts = outputPorts;
|
|
206
|
+
exports.palette = palette;
|
|
207
|
+
exports.paletteCategories = paletteCategories;
|
|
208
|
+
exports.paletteCategory = paletteCategory;
|
|
209
|
+
exports.paletteNode = paletteNode;
|
|
210
|
+
exports.paletteSearch = paletteSearch;
|
|
211
|
+
exports.pendingConnection = pendingConnection;
|
|
212
|
+
exports.port = port;
|
|
213
|
+
exports.portHandle = portHandle;
|
|
214
|
+
exports.portLabel = portLabel;
|
|
215
|
+
exports.previewCanvas = previewCanvas;
|
|
216
|
+
exports.previewCompiling = previewCompiling;
|
|
217
|
+
exports.previewError = previewError;
|
|
218
|
+
exports.previewErrors = previewErrors;
|
|
219
|
+
exports.previewHeader = previewHeader;
|
|
220
|
+
exports.previewModeSelect = previewModeSelect;
|
|
221
|
+
exports.previewPanel = previewPanel;
|
|
222
|
+
exports.propertiesContent = propertiesContent;
|
|
223
|
+
exports.propertiesHeader = propertiesHeader;
|
|
224
|
+
exports.propertiesPanel = propertiesPanel;
|
|
225
|
+
exports.propertyColorPreview = propertyColorPreview;
|
|
226
|
+
exports.propertyGroup = propertyGroup;
|
|
227
|
+
exports.propertyGroupTitle = propertyGroupTitle;
|
|
228
|
+
exports.propertyInput = propertyInput;
|
|
229
|
+
exports.propertyLabel = propertyLabel;
|
|
230
|
+
exports.propertyRow = propertyRow;
|
|
231
|
+
exports.propertySlider = propertySlider;
|
|
232
|
+
exports.pulse = pulse;
|
|
233
|
+
exports.searchInput = searchInput;
|
|
234
|
+
exports.selected = selected;
|
|
235
|
+
exports.selectionBox = selectionBox;
|
|
236
|
+
exports.sliderValue = sliderValue;
|
|
237
|
+
exports.toolbar = toolbar;
|
|
238
|
+
exports.toolbarGroup = toolbarGroup;
|
|
239
|
+
exports.toolbarSeparator = toolbarSeparator;
|
|
240
|
+
exports.tooltip = tooltip;
|
|
241
|
+
exports.zoomControls = zoomControls;
|
|
242
|
+
exports.zoomLevel = zoomLevel;
|