kitchen-simulator 1.1.1-test.48 → 1.1.1-test.49
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/lib/KitchenConfiguratorApp.js +3 -0
- package/package.json +1 -1
- package/es/@history.js +0 -2
- package/es/AppContext.js +0 -3
- package/es/KitchenConfigurator.js +0 -645
- package/es/KitchenConfiguratorApp.js +0 -478
- package/es/actions/area-actions.js +0 -14
- package/es/actions/export.js +0 -23
- package/es/actions/groups-actions.js +0 -89
- package/es/actions/holes-actions.js +0 -119
- package/es/actions/items-actions.js +0 -313
- package/es/actions/lines-actions.js +0 -81
- package/es/actions/project-actions.js +0 -281
- package/es/actions/scene-actions.js +0 -33
- package/es/actions/vertices-actions.js +0 -27
- package/es/actions/viewer2d-actions.js +0 -58
- package/es/actions/viewer3d-actions.js +0 -23
- package/es/catalog/areas/area/planner-element.js +0 -40
- package/es/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- package/es/catalog/areas/area/textures/grass.jpg +0 -0
- package/es/catalog/areas/area/textures/parquet.jpg +0 -0
- package/es/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- package/es/catalog/areas/area/textures/tile1.jpg +0 -0
- package/es/catalog/catalog.js +0 -277
- package/es/catalog/envMap/nx.hdr +0 -0
- package/es/catalog/envMap/ny.hdr +0 -0
- package/es/catalog/envMap/nz.hdr +0 -0
- package/es/catalog/envMap/px.hdr +0 -0
- package/es/catalog/envMap/py.hdr +0 -0
- package/es/catalog/envMap/pz.hdr +0 -0
- package/es/catalog/factories/area-factory-3d.js +0 -181
- package/es/catalog/factories/area-factory.js +0 -81
- package/es/catalog/factories/export.js +0 -7
- package/es/catalog/factories/wall-factory-3d.js +0 -202
- package/es/catalog/factories/wall-factory.js +0 -268
- package/es/catalog/holes/door-closet/planner-element.js +0 -222
- package/es/catalog/holes/door-double/door_double.png +0 -0
- package/es/catalog/holes/door-double/planner-element.js +0 -315
- package/es/catalog/holes/door-exterior/planner-element.js +0 -215
- package/es/catalog/holes/door-interior/planner-element.js +0 -227
- package/es/catalog/holes/door-panic/panicDoor.png +0 -0
- package/es/catalog/holes/door-panic/planner-element.js +0 -503
- package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/es/catalog/holes/door-panic-double/planner-element.js +0 -463
- package/es/catalog/holes/door-sliding/planner-element.js +0 -225
- package/es/catalog/holes/doorway-framed/planner-element.js +0 -145
- package/es/catalog/holes/doorway-frameless/planner-element.js +0 -104
- package/es/catalog/holes/export.js +0 -13
- package/es/catalog/holes/gate/gate.jpg +0 -0
- package/es/catalog/holes/window-clear/planner-element.js +0 -166
- package/es/catalog/holes/window-clear/texture.png +0 -0
- package/es/catalog/holes/window-cross/planner-element.js +0 -165
- package/es/catalog/holes/window-cross/texture.png +0 -0
- package/es/catalog/holes/window-double-hung/planner-element.js +0 -303
- package/es/catalog/holes/window-double-hung/texture.png +0 -0
- package/es/catalog/holes/window-vertical/planner-element.js +0 -276
- package/es/catalog/holes/window-vertical/texture.png +0 -0
- package/es/catalog/lines/wall/planner-element.js +0 -70
- package/es/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/es/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/morden.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted.jpg +0 -0
- package/es/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/plaster.jpg +0 -0
- package/es/catalog/lines/wall/wall.png +0 -0
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -28
- package/es/catalog/molding/molding-dcm/texture.png +0 -0
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -28
- package/es/catalog/molding/molding-fbm/texture.png +0 -0
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -28
- package/es/catalog/molding/molding-lrm/texture.png +0 -0
- package/es/catalog/properties/export.js +0 -21
- package/es/catalog/properties/property-checkbox.js +0 -116
- package/es/catalog/properties/property-color.js +0 -39
- package/es/catalog/properties/property-enum.js +0 -97
- package/es/catalog/properties/property-hidden.js +0 -19
- package/es/catalog/properties/property-lenght-measure.js +0 -101
- package/es/catalog/properties/property-length-measure.js +0 -134
- package/es/catalog/properties/property-length-measure_hole.js +0 -101
- package/es/catalog/properties/property-number.js +0 -48
- package/es/catalog/properties/property-read-only.js +0 -26
- package/es/catalog/properties/property-string.js +0 -48
- package/es/catalog/properties/property-toggle.js +0 -39
- package/es/catalog/properties/shared-property-style.js +0 -14
- package/es/catalog/utils/FuseUtils.js +0 -82
- package/es/catalog/utils/exporter.js +0 -148
- package/es/catalog/utils/geom-utils.js +0 -189
- package/es/catalog/utils/item-loader.js +0 -1521
- package/es/catalog/utils/load-obj.js +0 -91
- package/es/catalog/utils/mtl-loader.js +0 -358
- package/es/catalog/utils/obj-loader.js +0 -477
- package/es/class/FuseUtils.js +0 -82
- package/es/class/area.js +0 -145
- package/es/class/export.js +0 -24
- package/es/class/group.js +0 -440
- package/es/class/guide.js +0 -62
- package/es/class/hole.js +0 -929
- package/es/class/item.js +0 -1883
- package/es/class/layer.js +0 -667
- package/es/class/line.js +0 -1180
- package/es/class/project.js +0 -793
- package/es/class/vertex.js +0 -202
- package/es/components/content.js +0 -107
- package/es/components/disclaimer/disclaimer.js +0 -97
- package/es/components/export.js +0 -9
- package/es/components/style/button.js +0 -113
- package/es/components/style/cancel-button.js +0 -22
- package/es/components/style/content-container.js +0 -33
- package/es/components/style/content-title.js +0 -29
- package/es/components/style/delete-button.js +0 -25
- package/es/components/style/export.js +0 -31
- package/es/components/style/form-block.js +0 -24
- package/es/components/style/form-color-input.js +0 -27
- package/es/components/style/form-label.js +0 -26
- package/es/components/style/form-number-input.js +0 -213
- package/es/components/style/form-number-input_2.js +0 -206
- package/es/components/style/form-select.js +0 -68
- package/es/components/style/form-slider.js +0 -61
- package/es/components/style/form-submit-button.js +0 -26
- package/es/components/style/form-text-input.js +0 -95
- package/es/components/viewer2d/area.js +0 -81
- package/es/components/viewer2d/export.js +0 -31
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -37
- package/es/components/viewer2d/grids/grid-streak.js +0 -37
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -37
- package/es/components/viewer2d/grids/grids.js +0 -35
- package/es/components/viewer2d/group.js +0 -53
- package/es/components/viewer2d/item.js +0 -513
- package/es/components/viewer2d/layer.js +0 -164
- package/es/components/viewer2d/line.js +0 -882
- package/es/components/viewer2d/ruler.js +0 -100
- package/es/components/viewer2d/rulerDist.js +0 -146
- package/es/components/viewer2d/rulerX.js +0 -151
- package/es/components/viewer2d/rulerY.js +0 -153
- package/es/components/viewer2d/scene.js +0 -140
- package/es/components/viewer2d/snap.js +0 -74
- package/es/components/viewer2d/state.js +0 -78
- package/es/components/viewer2d/utils.js +0 -198
- package/es/components/viewer2d/vertex.js +0 -65
- package/es/components/viewer2d/viewer2d.js +0 -1398
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2592
- package/es/components/viewer3d/dcm.js +0 -401
- package/es/components/viewer3d/fbm.js +0 -414
- package/es/components/viewer3d/front3D.js +0 -66
- package/es/components/viewer3d/grid-creator.js +0 -25
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -36
- package/es/components/viewer3d/grids/grid-streak.js +0 -27
- package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -36
- package/es/components/viewer3d/libs/first-person-controls.js +0 -67
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1281
- package/es/components/viewer3d/libs/mtl-loader.js +0 -357
- package/es/components/viewer3d/libs/obj-loader.js +0 -462
- package/es/components/viewer3d/libs/orbit-controls.js +0 -699
- package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -46
- package/es/components/viewer3d/lrm.js +0 -305
- package/es/components/viewer3d/model.js +0 -708
- package/es/components/viewer3d/pointer-lock-navigation.js +0 -115
- package/es/components/viewer3d/ruler-utils/itemRect.js +0 -61
- package/es/components/viewer3d/ruler-utils/layer3D.js +0 -495
- package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -227
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -60
- package/es/components/viewer3d/ruler-utils/state3D.js +0 -18
- package/es/components/viewer3d/scene-creator.js +0 -3608
- package/es/components/viewer3d/three-memory-cleaner.js +0 -51
- package/es/components/viewer3d/viewer3d-first-person.js +0 -315
- package/es/components/viewer3d/viewer3d.js +0 -2527
- package/es/constants.js +0 -636
- package/es/index.js +0 -16
- package/es/models.js +0 -510
- package/es/plugins/SVGLoader.js +0 -1412
- package/es/plugins/autosave.js +0 -33
- package/es/plugins/console-debugger.js +0 -37
- package/es/plugins/export.js +0 -9
- package/es/plugins/keyboard.js +0 -101
- package/es/reducers/areas-reducer.js +0 -12
- package/es/reducers/export.js +0 -25
- package/es/reducers/groups-reducer.js +0 -38
- package/es/reducers/holes-reducer.js +0 -62
- package/es/reducers/items-reducer.js +0 -140
- package/es/reducers/lines-reducer.js +0 -45
- package/es/reducers/project-reducer.js +0 -129
- package/es/reducers/reducer.js +0 -19
- package/es/reducers/scene-reducer.js +0 -28
- package/es/reducers/user-reducer.js +0 -40
- package/es/reducers/vertices-reducer.js +0 -19
- package/es/reducers/viewer2d-reducer.js +0 -75
- package/es/reducers/viewer3d-reducer.js +0 -56
- package/es/shared-style.js +0 -66
- package/es/styles/export.js +0 -5
- package/es/styles/tabs.css +0 -40
- package/es/translator/en.js +0 -104
- package/es/translator/it.js +0 -79
- package/es/translator/ru.js +0 -79
- package/es/translator/translator.js +0 -84
- package/es/utils/browser.js +0 -33
- package/es/utils/email-validator.js +0 -4
- package/es/utils/export.js +0 -25
- package/es/utils/geometry.js +0 -2420
- package/es/utils/get-edges-of-subgraphs.js +0 -27
- package/es/utils/graph-cycles.js +0 -237
- package/es/utils/graph-inner-cycles.js +0 -46
- package/es/utils/graph.js +0 -150
- package/es/utils/helper.js +0 -268
- package/es/utils/history.js +0 -29
- package/es/utils/id-broker.js +0 -19
- package/es/utils/logger.js +0 -8
- package/es/utils/math.js +0 -50
- package/es/utils/molding.js +0 -871
- package/es/utils/name-generator.js +0 -18
- package/es/utils/objects-utils.js +0 -50
- package/es/utils/phone-validator.js +0 -4
- package/es/utils/process-black-list.js +0 -18
- package/es/utils/react-if.js +0 -18
- package/es/utils/snap-scene.js +0 -99
- package/es/utils/snap.js +0 -237
- package/es/utils/summarizeCart.js +0 -24
- package/es/utils/threeCSG.es6.js +0 -498
- package/es/version.js +0 -2
- package/lib/catalog/properties/property-string.js +0 -55
- package/lib/catalog/properties/property-toggle.js +0 -46
- package/lib/catalog/properties/shared-property-style.js +0 -20
- package/lib/catalog/utils/FuseUtils.js +0 -88
- package/lib/catalog/utils/exporter.js +0 -155
- package/lib/catalog/utils/geom-utils.js +0 -205
- package/lib/catalog/utils/item-loader.js +0 -1533
- package/lib/catalog/utils/load-obj.js +0 -99
- package/lib/catalog/utils/mtl-loader.js +0 -363
- package/lib/catalog/utils/obj-loader.js +0 -482
- package/lib/class/FuseUtils.js +0 -88
- package/lib/class/area.js +0 -150
- package/lib/class/export.js +0 -96
- package/lib/class/group.js +0 -445
- package/lib/class/guide.js +0 -67
- package/lib/class/hole.js +0 -934
- package/lib/class/item.js +0 -1889
- package/lib/class/layer.js +0 -672
- package/lib/class/line.js +0 -1186
- package/lib/class/project.js +0 -799
- package/lib/class/vertex.js +0 -207
- package/lib/components/content.js +0 -116
- package/lib/components/disclaimer/disclaimer.js +0 -105
- package/lib/components/export.js +0 -33
- package/lib/components/style/button.js +0 -120
- package/lib/components/style/cancel-button.js +0 -29
- package/lib/components/style/content-container.js +0 -40
- package/lib/components/style/content-title.js +0 -37
- package/lib/components/style/delete-button.js +0 -34
- package/lib/components/style/export.js +0 -121
- package/lib/components/style/form-block.js +0 -31
- package/lib/components/style/form-color-input.js +0 -34
- package/lib/components/style/form-label.js +0 -33
- package/lib/components/style/form-number-input.js +0 -220
- package/lib/components/style/form-number-input_2.js +0 -213
- package/lib/components/style/form-select.js +0 -75
- package/lib/components/style/form-slider.js +0 -68
- package/lib/components/style/form-submit-button.js +0 -35
- package/lib/components/style/form-text-input.js +0 -101
- package/lib/components/viewer2d/area.js +0 -88
- package/lib/components/viewer2d/export.js +0 -121
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -44
- package/lib/components/viewer2d/grids/grid-streak.js +0 -44
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -44
- package/lib/components/viewer2d/grids/grids.js +0 -44
- package/lib/components/viewer2d/group.js +0 -62
- package/lib/components/viewer2d/item.js +0 -521
- package/lib/components/viewer2d/layer.js +0 -171
- package/lib/components/viewer2d/line.js +0 -892
- package/lib/components/viewer2d/ruler.js +0 -107
- package/lib/components/viewer2d/rulerDist.js +0 -153
- package/lib/components/viewer2d/rulerX.js +0 -158
- package/lib/components/viewer2d/rulerY.js +0 -160
- package/lib/components/viewer2d/scene.js +0 -147
- package/lib/components/viewer2d/snap.js +0 -83
- package/lib/components/viewer2d/state.js +0 -87
- package/lib/components/viewer2d/utils.js +0 -210
- package/lib/components/viewer2d/vertex.js +0 -74
- package/lib/components/viewer2d/viewer2d.js +0 -1405
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2597
- package/lib/components/viewer3d/dcm.js +0 -407
- package/lib/components/viewer3d/fbm.js +0 -420
- package/lib/components/viewer3d/front3D.js +0 -75
- package/lib/components/viewer3d/grid-creator.js +0 -34
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -44
- package/lib/components/viewer3d/grids/grid-streak.js +0 -35
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -44
- package/lib/components/viewer3d/libs/first-person-controls.js +0 -74
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1287
- package/lib/components/viewer3d/libs/mtl-loader.js +0 -363
- package/lib/components/viewer3d/libs/obj-loader.js +0 -468
- package/lib/components/viewer3d/libs/orbit-controls.js +0 -705
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -52
- package/lib/components/viewer3d/lrm.js +0 -311
- package/lib/components/viewer3d/model.js +0 -714
- package/lib/components/viewer3d/pointer-lock-navigation.js +0 -122
- package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -68
- package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -502
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -234
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -68
- package/lib/components/viewer3d/ruler-utils/state3D.js +0 -25
- package/lib/components/viewer3d/scene-creator.js +0 -3642
- package/lib/components/viewer3d/three-memory-cleaner.js +0 -60
- package/lib/components/viewer3d/viewer3d-first-person.js +0 -320
- package/lib/components/viewer3d/viewer3d.js +0 -2532
- package/lib/constants.js +0 -645
- package/lib/index.js +0 -96
- package/lib/models.js +0 -517
- package/lib/plugins/SVGLoader.js +0 -1417
- package/lib/plugins/autosave.js +0 -39
- package/lib/plugins/console-debugger.js +0 -44
- package/lib/plugins/export.js +0 -33
- package/lib/plugins/keyboard.js +0 -107
- package/lib/reducers/areas-reducer.js +0 -18
- package/lib/reducers/export.js +0 -97
- package/lib/reducers/groups-reducer.js +0 -44
- package/lib/reducers/holes-reducer.js +0 -68
- package/lib/reducers/items-reducer.js +0 -146
- package/lib/reducers/lines-reducer.js +0 -51
- package/lib/reducers/project-reducer.js +0 -135
- package/lib/reducers/reducer.js +0 -26
- package/lib/reducers/scene-reducer.js +0 -34
- package/lib/reducers/user-reducer.js +0 -46
- package/lib/reducers/vertices-reducer.js +0 -25
- package/lib/reducers/viewer2d-reducer.js +0 -82
- package/lib/reducers/viewer3d-reducer.js +0 -63
- package/lib/shared-style.js +0 -72
- package/lib/styles/export.js +0 -13
- package/lib/translator/en.js +0 -110
- package/lib/translator/it.js +0 -85
- package/lib/translator/ru.js +0 -85
- package/lib/translator/translator.js +0 -90
- package/lib/utils/browser.js +0 -40
- package/lib/utils/email-validator.js +0 -10
- package/lib/utils/export.js +0 -56
- package/lib/utils/geometry.js +0 -2516
- package/lib/utils/get-edges-of-subgraphs.js +0 -34
- package/lib/utils/graph-cycles.js +0 -240
- package/lib/utils/graph-inner-cycles.js +0 -54
- package/lib/utils/graph.js +0 -157
- package/lib/utils/helper.js +0 -291
- package/lib/utils/history.js +0 -36
- package/lib/utils/id-broker.js +0 -25
- package/lib/utils/logger.js +0 -14
- package/lib/utils/math.js +0 -57
- package/lib/utils/molding.js +0 -895
- package/lib/utils/name-generator.js +0 -23
- package/lib/utils/objects-utils.js +0 -60
- package/lib/utils/phone-validator.js +0 -10
- package/lib/utils/process-black-list.js +0 -24
- package/lib/utils/react-if.js +0 -24
- package/lib/utils/snap-scene.js +0 -105
- package/lib/utils/snap.js +0 -249
- package/lib/utils/summarizeCart.js +0 -30
- package/lib/utils/threeCSG.es6.js +0 -503
- package/lib/version.js +0 -8
|
@@ -1,420 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = exports["default"] = [{
|
|
8
|
-
x: 6.513524830609185e-9,
|
|
9
|
-
y: 0,
|
|
10
|
-
z: 1.19209286886246e-9
|
|
11
|
-
}, {
|
|
12
|
-
x: -2.9929081435398075e-10,
|
|
13
|
-
y: 0.11430007964372635,
|
|
14
|
-
z: 1.5497207073167374e-8
|
|
15
|
-
}, {
|
|
16
|
-
x: -2.9929081435398075e-10,
|
|
17
|
-
y: 0.11430007964372635,
|
|
18
|
-
z: 1.5497207073167374e-8
|
|
19
|
-
}, {
|
|
20
|
-
x: 6.513524830609185e-9,
|
|
21
|
-
y: 0,
|
|
22
|
-
z: 1.19209286886246e-9
|
|
23
|
-
}, {
|
|
24
|
-
x: -2.9929081435398075e-10,
|
|
25
|
-
y: 0.11430007964372635,
|
|
26
|
-
z: -0.011996750719845295
|
|
27
|
-
}, {
|
|
28
|
-
x: -2.9929081435398075e-10,
|
|
29
|
-
y: 0.11430007964372635,
|
|
30
|
-
z: -0.011996750719845295
|
|
31
|
-
}, {
|
|
32
|
-
x: -2.857603875749959e-10,
|
|
33
|
-
y: 0.11407307535409927,
|
|
34
|
-
z: -0.014381852000951767
|
|
35
|
-
}, {
|
|
36
|
-
x: -2.857603875749959e-10,
|
|
37
|
-
y: 0.11407307535409927,
|
|
38
|
-
z: -0.014381852000951767
|
|
39
|
-
}, {
|
|
40
|
-
x: -2.6880001002815845e-10,
|
|
41
|
-
y: 0.11378852277994156,
|
|
42
|
-
z: -0.01577681116759777
|
|
43
|
-
}, {
|
|
44
|
-
x: -2.6880001002815845e-10,
|
|
45
|
-
y: 0.11378852277994156,
|
|
46
|
-
z: -0.01577681116759777
|
|
47
|
-
}, {
|
|
48
|
-
x: -2.3992810516126895e-10,
|
|
49
|
-
y: 0.11330413818359375,
|
|
50
|
-
z: -0.016878647729754448
|
|
51
|
-
}, {
|
|
52
|
-
x: -2.3992810516126895e-10,
|
|
53
|
-
y: 0.11330413818359375,
|
|
54
|
-
z: -0.016878647729754448
|
|
55
|
-
}, {
|
|
56
|
-
x: -1.9096546566288453e-10,
|
|
57
|
-
y: 0.11248268187046051,
|
|
58
|
-
z: -0.017795395106077194
|
|
59
|
-
}, {
|
|
60
|
-
x: -1.9096546566288453e-10,
|
|
61
|
-
y: 0.11248268187046051,
|
|
62
|
-
z: -0.017795395106077194
|
|
63
|
-
}, {
|
|
64
|
-
x: -1.3194607906275024e-10,
|
|
65
|
-
y: 0.11149249970912933,
|
|
66
|
-
z: -0.018403001129627228
|
|
67
|
-
}, {
|
|
68
|
-
x: -1.3194607906275024e-10,
|
|
69
|
-
y: 0.11149249970912933,
|
|
70
|
-
z: -0.018403001129627228
|
|
71
|
-
}, {
|
|
72
|
-
x: -6.697859628035374e-11,
|
|
73
|
-
y: 0.11040252447128296,
|
|
74
|
-
z: -0.01870192028582096
|
|
75
|
-
}, {
|
|
76
|
-
x: -6.697859628035374e-11,
|
|
77
|
-
y: 0.11040252447128296,
|
|
78
|
-
z: -0.01870192028582096
|
|
79
|
-
}, {
|
|
80
|
-
x: -1.7337242481495901e-13,
|
|
81
|
-
y: 0.10928171873092651,
|
|
82
|
-
z: -0.018692459911108017
|
|
83
|
-
}, {
|
|
84
|
-
x: -1.7337242481495901e-13,
|
|
85
|
-
y: 0.10928171873092651,
|
|
86
|
-
z: -0.018692459911108017
|
|
87
|
-
}, {
|
|
88
|
-
x: 6.436266797305024e-11,
|
|
89
|
-
y: 0.10819898545742035,
|
|
90
|
-
z: -0.018374618142843246
|
|
91
|
-
}, {
|
|
92
|
-
x: 6.436266797305024e-11,
|
|
93
|
-
y: 0.10819898545742035,
|
|
94
|
-
z: -0.018374618142843246
|
|
95
|
-
}, {
|
|
96
|
-
x: 1.2252029946147047e-10,
|
|
97
|
-
y: 0.1072232574224472,
|
|
98
|
-
z: -0.017748551443219185
|
|
99
|
-
}, {
|
|
100
|
-
x: 1.2252029946147047e-10,
|
|
101
|
-
y: 0.1072232574224472,
|
|
102
|
-
z: -0.017748551443219185
|
|
103
|
-
}, {
|
|
104
|
-
x: 1.7019147202645968e-10,
|
|
105
|
-
y: 0.10642346739768982,
|
|
106
|
-
z: -0.016814865171909332
|
|
107
|
-
}, {
|
|
108
|
-
x: 1.7019147202645968e-10,
|
|
109
|
-
y: 0.10642346739768982,
|
|
110
|
-
z: -0.016814865171909332
|
|
111
|
-
}, {
|
|
112
|
-
x: 1.960347578711108e-10,
|
|
113
|
-
y: 0.10598989576101303,
|
|
114
|
-
z: -0.015734391286969185
|
|
115
|
-
}, {
|
|
116
|
-
x: 1.960347578711108e-10,
|
|
117
|
-
y: 0.10598989576101303,
|
|
118
|
-
z: -0.015734391286969185
|
|
119
|
-
}, {
|
|
120
|
-
x: 2.1125515226039226e-10,
|
|
121
|
-
y: 0.10573453456163406,
|
|
122
|
-
z: -0.01397657860070467
|
|
123
|
-
}, {
|
|
124
|
-
x: 2.1125515226039226e-10,
|
|
125
|
-
y: 0.10573453456163406,
|
|
126
|
-
z: -0.01397657860070467
|
|
127
|
-
}, {
|
|
128
|
-
x: 2.1715663989230194e-10,
|
|
129
|
-
y: 0.10563552379608154,
|
|
130
|
-
z: -0.011996750719845295
|
|
131
|
-
}, {
|
|
132
|
-
x: 2.1715663989230194e-10,
|
|
133
|
-
y: 0.10563552379608154,
|
|
134
|
-
z: -0.011996750719845295
|
|
135
|
-
}, {
|
|
136
|
-
x: 3.628213007811354e-10,
|
|
137
|
-
y: 0.10319168120622635,
|
|
138
|
-
z: -0.011996750719845295
|
|
139
|
-
}, {
|
|
140
|
-
x: 3.628213007811354e-10,
|
|
141
|
-
y: 0.10319168120622635,
|
|
142
|
-
z: -0.011996750719845295
|
|
143
|
-
}, {
|
|
144
|
-
x: 3.628213007811354e-10,
|
|
145
|
-
y: 0.10319168120622635,
|
|
146
|
-
z: -0.016662126407027245
|
|
147
|
-
}, {
|
|
148
|
-
x: 3.628213007811354e-10,
|
|
149
|
-
y: 0.10319168120622635,
|
|
150
|
-
z: -0.016662126407027245
|
|
151
|
-
}, {
|
|
152
|
-
x: 3.6975278394635325e-10,
|
|
153
|
-
y: 0.10307538509368896,
|
|
154
|
-
z: -0.017714371904730797
|
|
155
|
-
}, {
|
|
156
|
-
x: 3.6975278394635325e-10,
|
|
157
|
-
y: 0.10307538509368896,
|
|
158
|
-
z: -0.017714371904730797
|
|
159
|
-
}, {
|
|
160
|
-
x: 3.89493381991457e-10,
|
|
161
|
-
y: 0.1027441918849945,
|
|
162
|
-
z: -0.01863997057080269
|
|
163
|
-
}, {
|
|
164
|
-
x: 3.89493381991457e-10,
|
|
165
|
-
y: 0.1027441918849945,
|
|
166
|
-
z: -0.01863997057080269
|
|
167
|
-
}, {
|
|
168
|
-
x: 4.204628034631952e-10,
|
|
169
|
-
y: 0.10222461819648743,
|
|
170
|
-
z: -0.01945677399635315
|
|
171
|
-
}, {
|
|
172
|
-
x: 4.204628034631952e-10,
|
|
173
|
-
y: 0.10222461819648743,
|
|
174
|
-
z: -0.01945677399635315
|
|
175
|
-
}, {
|
|
176
|
-
x: 4.610791193293551e-10,
|
|
177
|
-
y: 0.10154318809509277,
|
|
178
|
-
z: -0.020138230174779892
|
|
179
|
-
}, {
|
|
180
|
-
x: 4.610791193293551e-10,
|
|
181
|
-
y: 0.10154318809509277,
|
|
182
|
-
z: -0.020138230174779892
|
|
183
|
-
}, {
|
|
184
|
-
x: 5.097632316264367e-10,
|
|
185
|
-
y: 0.1007264032959938,
|
|
186
|
-
z: -0.020657790824770927
|
|
187
|
-
}, {
|
|
188
|
-
x: 5.097632316264367e-10,
|
|
189
|
-
y: 0.1007264032959938,
|
|
190
|
-
z: -0.020657790824770927
|
|
191
|
-
}, {
|
|
192
|
-
x: 5.649337664337395e-10,
|
|
193
|
-
y: 0.09980079531669617,
|
|
194
|
-
z: -0.020989060401916504
|
|
195
|
-
}, {
|
|
196
|
-
x: 5.649337664337395e-10,
|
|
197
|
-
y: 0.09980079531669617,
|
|
198
|
-
z: -0.020989060401916504
|
|
199
|
-
}, {
|
|
200
|
-
x: 6.250098771864998e-10,
|
|
201
|
-
y: 0.09879288822412491,
|
|
202
|
-
z: -0.021105332300066948
|
|
203
|
-
}, {
|
|
204
|
-
x: 6.250098771864998e-10,
|
|
205
|
-
y: 0.09879288822412491,
|
|
206
|
-
z: -0.021105332300066948
|
|
207
|
-
}, {
|
|
208
|
-
x: 1.7002150798361981e-9,
|
|
209
|
-
y: 0.08075393736362457,
|
|
210
|
-
z: -0.021105334162712097
|
|
211
|
-
}, {
|
|
212
|
-
x: 1.7002150798361981e-9,
|
|
213
|
-
y: 0.08075393736362457,
|
|
214
|
-
z: -0.021105334162712097
|
|
215
|
-
}, {
|
|
216
|
-
x: 1.714297481747451e-9,
|
|
217
|
-
y: 0.08051767200231552,
|
|
218
|
-
z: -0.018116597086191177
|
|
219
|
-
}, {
|
|
220
|
-
x: 1.714297481747451e-9,
|
|
221
|
-
y: 0.08051767200231552,
|
|
222
|
-
z: -0.018116597086191177
|
|
223
|
-
}, {
|
|
224
|
-
x: 1.7745017677484043e-9,
|
|
225
|
-
y: 0.07950761169195175,
|
|
226
|
-
z: -0.017054280266165733
|
|
227
|
-
}, {
|
|
228
|
-
x: 1.7745017677484043e-9,
|
|
229
|
-
y: 0.07950761169195175,
|
|
230
|
-
z: -0.017054280266165733
|
|
231
|
-
}, {
|
|
232
|
-
x: 1.8525417866399607e-9,
|
|
233
|
-
y: 0.07819831371307373,
|
|
234
|
-
z: -0.016856525093317032
|
|
235
|
-
}, {
|
|
236
|
-
x: 1.8525417866399607e-9,
|
|
237
|
-
y: 0.07819831371307373,
|
|
238
|
-
z: -0.016856525093317032
|
|
239
|
-
}, {
|
|
240
|
-
x: 1.924275405684739e-9,
|
|
241
|
-
y: 0.07699482887983322,
|
|
242
|
-
z: -0.017449786886572838
|
|
243
|
-
}, {
|
|
244
|
-
x: 1.924275405684739e-9,
|
|
245
|
-
y: 0.07699482887983322,
|
|
246
|
-
z: -0.017449786886572838
|
|
247
|
-
}, {
|
|
248
|
-
x: 1.953144312949462e-9,
|
|
249
|
-
y: 0.0765104815363884,
|
|
250
|
-
z: -0.01833067648112774
|
|
251
|
-
}, {
|
|
252
|
-
x: 1.953144312949462e-9,
|
|
253
|
-
y: 0.0765104815363884,
|
|
254
|
-
z: -0.01833067648112774
|
|
255
|
-
}, {
|
|
256
|
-
x: 1.965059892583554e-9,
|
|
257
|
-
y: 0.07631057500839233,
|
|
258
|
-
z: -0.021105336025357246
|
|
259
|
-
}, {
|
|
260
|
-
x: 1.965059892583554e-9,
|
|
261
|
-
y: 0.07631057500839233,
|
|
262
|
-
z: -0.021105336025357246
|
|
263
|
-
}, {
|
|
264
|
-
x: 2.4947495180782653e-9,
|
|
265
|
-
y: 0.06742385774850845,
|
|
266
|
-
z: -0.021105336025357246
|
|
267
|
-
}, {
|
|
268
|
-
x: 2.4947495180782653e-9,
|
|
269
|
-
y: 0.06742385774850845,
|
|
270
|
-
z: -0.021105336025357246
|
|
271
|
-
}, {
|
|
272
|
-
x: 2.503704132905682e-9,
|
|
273
|
-
y: 0.06727362424135208,
|
|
274
|
-
z: -0.018105152994394302
|
|
275
|
-
}, {
|
|
276
|
-
x: 2.503704132905682e-9,
|
|
277
|
-
y: 0.06727362424135208,
|
|
278
|
-
z: -0.018105152994394302
|
|
279
|
-
}, {
|
|
280
|
-
x: 2.571708179743837e-9,
|
|
281
|
-
y: 0.06613270938396454,
|
|
282
|
-
z: -0.016959065571427345
|
|
283
|
-
}, {
|
|
284
|
-
x: 2.571708179743837e-9,
|
|
285
|
-
y: 0.06613270938396454,
|
|
286
|
-
z: -0.016959065571427345
|
|
287
|
-
}, {
|
|
288
|
-
x: 2.6591682189547328e-9,
|
|
289
|
-
y: 0.06466536968946457,
|
|
290
|
-
z: -0.016765890643000603
|
|
291
|
-
}, {
|
|
292
|
-
x: 2.6591682189547328e-9,
|
|
293
|
-
y: 0.06466536968946457,
|
|
294
|
-
z: -0.016765890643000603
|
|
295
|
-
}, {
|
|
296
|
-
x: 2.7385753664788126e-9,
|
|
297
|
-
y: 0.06333313882350922,
|
|
298
|
-
z: -0.017454519867897034
|
|
299
|
-
}, {
|
|
300
|
-
x: 2.7385753664788126e-9,
|
|
301
|
-
y: 0.06333313882350922,
|
|
302
|
-
z: -0.017454519867897034
|
|
303
|
-
}, {
|
|
304
|
-
x: 2.767359896793664e-9,
|
|
305
|
-
y: 0.0628502145409584,
|
|
306
|
-
z: -0.018239127472043037
|
|
307
|
-
}, {
|
|
308
|
-
x: 2.767359896793664e-9,
|
|
309
|
-
y: 0.0628502145409584,
|
|
310
|
-
z: -0.018239127472043037
|
|
311
|
-
}, {
|
|
312
|
-
x: 2.77283662697414e-9,
|
|
313
|
-
y: 0.06275832653045654,
|
|
314
|
-
z: -0.021105336025357246
|
|
315
|
-
}, {
|
|
316
|
-
x: 2.77283662697414e-9,
|
|
317
|
-
y: 0.06275832653045654,
|
|
318
|
-
z: -0.021105336025357246
|
|
319
|
-
}, {
|
|
320
|
-
x: 6.513524830609185e-9,
|
|
321
|
-
y: 0,
|
|
322
|
-
z: -0.021105345338582993
|
|
323
|
-
}, {
|
|
324
|
-
x: 6.513524830609185e-9,
|
|
325
|
-
y: 0,
|
|
326
|
-
z: -0.021105345338582993
|
|
327
|
-
}, {
|
|
328
|
-
x: 6.513524830609185e-9,
|
|
329
|
-
y: 0,
|
|
330
|
-
z: 1.19209286886246e-9
|
|
331
|
-
}, {
|
|
332
|
-
x: -2.9929081435398075e-10,
|
|
333
|
-
y: 0.11430007964372635,
|
|
334
|
-
z: -0.011996750719845295
|
|
335
|
-
}, {
|
|
336
|
-
x: -2.9929081435398075e-10,
|
|
337
|
-
y: 0.11430007964372635,
|
|
338
|
-
z: 1.5497207073167374e-8
|
|
339
|
-
}, {
|
|
340
|
-
x: 1.965059892583554e-9,
|
|
341
|
-
y: 0.07631057500839233,
|
|
342
|
-
z: -0.021105336025357246
|
|
343
|
-
}, {
|
|
344
|
-
x: 2.503704132905682e-9,
|
|
345
|
-
y: 0.06727362424135208,
|
|
346
|
-
z: -0.018105152994394302
|
|
347
|
-
}
|
|
348
|
-
// ,{x: 2.4947495180782653e-9, y: 0.06742385774850845, z: -0.021105336025357246}
|
|
349
|
-
// ,{x: 1.953144312949462e-9, y: 0.0765104815363884, z: -0.01833067648112774}
|
|
350
|
-
// ,{x: 6.250098771864998e-10, y: 0.09879288822412491, z: -0.021105332300066948}
|
|
351
|
-
// ,{x: 1.714297481747451e-9, y: 0.08051767200231552, z: -0.018116597086191177}
|
|
352
|
-
// ,{x: 1.7002150798361981e-9, y: 0.08075393736362457, z: -0.021105334162712097}
|
|
353
|
-
// ,{x: 2.7385753664788126e-9, y: 0.06333313882350922, z: -0.017454519867897034}
|
|
354
|
-
// ,{x: 1.924275405684739e-9, y: 0.07699482887983322, z: -0.017449786886572838}
|
|
355
|
-
// ,{x: 2.571708179743837e-9, y: 0.06613270938396454, z: -0.016959065571427345}
|
|
356
|
-
// ,{x: 2.6591682189547328e-9, y: 0.06466536968946457, z: -0.016765890643000603}
|
|
357
|
-
// ,{x: 1.7745017677484043e-9, y: 0.07950761169195175, z: -0.017054280266165733}
|
|
358
|
-
// ,{x: 1.8525417866399607e-9, y: 0.07819831371307373, z: -0.016856525093317032}
|
|
359
|
-
// ,{x: 1.2252029946147047e-10, y: 0.1072232574224472, z: -0.017748551443219185}
|
|
360
|
-
// ,{x: 1.960347578711108e-10, y: 0.10598989576101303, z: -0.015734391286969185}
|
|
361
|
-
// ,{x: 1.7019147202645968e-10, y: 0.10642346739768982, z: -0.016814865171909332}
|
|
362
|
-
// ,{x: 6.436266797305024e-11, y: 0.10819898545742035, z: -0.018374618142843246}
|
|
363
|
-
// ,{x: -1.7337242481495901e-13, y: 0.10928171873092651, z: -0.018692459911108017}
|
|
364
|
-
// ,{x: -6.697859628035374e-11, y: 0.11040252447128296, z: -0.01870192028582096}
|
|
365
|
-
// ,{x: -1.3194607906275024e-10, y: 0.11149249970912933, z: -0.018403001129627228}
|
|
366
|
-
// ,{x: -1.9096546566288453e-10, y: 0.11248268187046051, z: -0.017795395106077194}
|
|
367
|
-
// ,{x: -2.3992810516126895e-10, y: 0.11330413818359375, z: -0.016878647729754448}
|
|
368
|
-
// ,{x: -2.6880001002815845e-10, y: 0.11378852277994156, z: -0.01577681116759777}
|
|
369
|
-
// ,{x: 2.1125515226039226e-10, y: 0.10573453456163406, z: -0.01397657860070467}
|
|
370
|
-
// ,{x: -2.857603875749959e-10, y: 0.11407307535409927, z: -0.014381852000951767}
|
|
371
|
-
// ,{x: 2.1715663989230194e-10, y: 0.10563552379608154, z: -0.011996750719845295}
|
|
372
|
-
// ,{x: 3.628213007811354e-10, y: 0.10319168120622635, z: -0.011996750719845295}
|
|
373
|
-
// ,{x: 3.628213007811354e-10, y: 0.10319168120622635, z: -0.016662126407027245}
|
|
374
|
-
// ,{x: 3.6975278394635325e-10, y: 0.10307538509368896, z: -0.017714371904730797}
|
|
375
|
-
// ,{x: 5.649337664337395e-10, y: 0.09980079531669617, z: -0.020989060401916504}
|
|
376
|
-
// ,{x: 5.097632316264367e-10, y: 0.1007264032959938, z: -0.020657790824770927}
|
|
377
|
-
// ,{x: 3.89493381991457e-10, y: 0.1027441918849945, z: -0.01863997057080269}
|
|
378
|
-
// ,{x: 4.204628034631952e-10, y: 0.10222461819648743, z: -0.01945677399635315}
|
|
379
|
-
// ,{x: 4.610791193293551e-10, y: 0.10154318809509277, z: -0.020138230174779892}
|
|
380
|
-
// ,{x: 2.77283662697414e-9, y: 0.06275832653045654, z: -0.021105336025357246}
|
|
381
|
-
// ,{x: 6.513524830609185e-9, y: 0, z: -0.021105345338582993}
|
|
382
|
-
// ,{x: 6.513524830609185e-9, y: 0, z: 1.19209286886246e-9}
|
|
383
|
-
// ,{x: 2.767359896793664e-9, y: 0.0628502145409584, z: -0.018239127472043037}
|
|
384
|
-
// ,{x: -2.9929081435398075e-10, y: 0.11430007964372635, z: 1.5497207073167374e-8}
|
|
385
|
-
// ,{x: -2.9929081435398075e-10, y: 0.11430007964372635, z: -0.011996750719845295}
|
|
386
|
-
// ,{x: 1.965059892583554e-9, y: 0.07631057500839233, z: -0.021105336025357246}
|
|
387
|
-
// ,{x: 2.4947495180782653e-9, y: 0.06742385774850845, z: -0.021105336025357246}
|
|
388
|
-
// ,{x: 2.503704132905682e-9, y: 0.06727362424135208, z: -0.018105152994394302}
|
|
389
|
-
// ,{x: 1.953144312949462e-9, y: 0.0765104815363884, z: -0.01833067648112774}
|
|
390
|
-
// ,{x: 6.250098771864998e-10, y: 0.09879288822412491, z: -0.021105332300066948}
|
|
391
|
-
// ,{x: 1.7002150798361981e-9, y: 0.08075393736362457, z: -0.021105334162712097}
|
|
392
|
-
// ,{x: 1.714297481747451e-9, y: 0.08051767200231552, z: -0.018116597086191177}
|
|
393
|
-
// ,{x: 2.7385753664788126e-9, y: 0.06333313882350922, z: -0.017454519867897034}
|
|
394
|
-
// ,{x: 1.924275405684739e-9, y: 0.07699482887983322, z: -0.017449786886572838}
|
|
395
|
-
// ,{x: 2.571708179743837e-9, y: 0.06613270938396454, z: -0.016959065571427345}
|
|
396
|
-
// ,{x: 2.6591682189547328e-9, y: 0.06466536968946457, z: -0.016765890643000603}
|
|
397
|
-
// ,{x: 1.7745017677484043e-9, y: 0.07950761169195175, z: -0.017054280266165733}
|
|
398
|
-
// ,{x: 1.8525417866399607e-9, y: 0.07819831371307373, z: -0.016856525093317032}
|
|
399
|
-
// ,{x: 1.2252029946147047e-10, y: 0.1072232574224472, z: -0.017748551443219185}
|
|
400
|
-
// ,{x: 1.7019147202645968e-10, y: 0.10642346739768982, z: -0.016814865171909332}
|
|
401
|
-
// ,{x: 1.960347578711108e-10, y: 0.10598989576101303, z: -0.015734391286969185}
|
|
402
|
-
// ,{x: 6.436266797305024e-11, y: 0.10819898545742035, z: -0.018374618142843246}
|
|
403
|
-
// ,{x: -1.7337242481495901e-13, y: 0.10928171873092651, z: -0.018692459911108017}
|
|
404
|
-
// ,{x: -6.697859628035374e-11, y: 0.11040252447128296, z: -0.01870192028582096}
|
|
405
|
-
// ,{x: -1.3194607906275024e-10, y: 0.11149249970912933, z: -0.018403001129627228}
|
|
406
|
-
// ,{x: -1.9096546566288453e-10, y: 0.11248268187046051, z: -0.017795395106077194}
|
|
407
|
-
// ,{x: -2.3992810516126895e-10, y: 0.11330413818359375, z: -0.016878647729754448}
|
|
408
|
-
// ,{x: -2.6880001002815845e-10, y: 0.11378852277994156, z: -0.01577681116759777}
|
|
409
|
-
// ,{x: 2.1125515226039226e-10, y: 0.10573453456163406, z: -0.01397657860070467}
|
|
410
|
-
// ,{x: -2.857603875749959e-10, y: 0.11407307535409927, z: -0.014381852000951767}
|
|
411
|
-
// ,{x: 2.1715663989230194e-10, y: 0.10563552379608154, z: -0.011996750719845295}
|
|
412
|
-
// ,{x: 3.628213007811354e-10, y: 0.10319168120622635, z: -0.011996750719845295}
|
|
413
|
-
// ,{x: 3.628213007811354e-10, y: 0.10319168120622635, z: -0.016662126407027245}
|
|
414
|
-
// ,{x: 3.6975278394635325e-10, y: 0.10307538509368896, z: -0.017714371904730797}
|
|
415
|
-
// ,{x: 5.649337664337395e-10, y: 0.09980079531669617, z: -0.020989060401916504}
|
|
416
|
-
// ,{x: 5.097632316264367e-10, y: 0.1007264032959938, z: -0.020657790824770927}
|
|
417
|
-
// ,{x: 3.89493381991457e-10, y: 0.1027441918849945, z: -0.01863997057080269}
|
|
418
|
-
// ,{x: 4.204628034631952e-10, y: 0.10222461819648743, z: -0.01945677399635315}
|
|
419
|
-
// ,{x: 4.610791193293551e-10, y: 0.10154318809509277, z: -0.020138230174779892}
|
|
420
|
-
];
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = Front3D;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _viewer3d = _interopRequireDefault(require("./viewer3d"));
|
|
10
|
-
var _state3D = _interopRequireDefault(require("./ruler-utils/state3D"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
14
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
16
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
17
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
18
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
19
|
-
var k = 0;
|
|
20
|
-
function Front3D(_ref, _ref2) {
|
|
21
|
-
var width = _ref.width,
|
|
22
|
-
height = _ref.height,
|
|
23
|
-
state = _ref.state,
|
|
24
|
-
setToolbar = _ref.setToolbar,
|
|
25
|
-
replaceCabinet = _ref.replaceCabinet,
|
|
26
|
-
keyDownEnable = _ref.keyDownEnable,
|
|
27
|
-
catalog = _ref.catalog;
|
|
28
|
-
var viewer2DActions = _ref2.viewer2DActions;
|
|
29
|
-
var _useState = (0, _react.useState)(''),
|
|
30
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
-
mode = _useState2[0],
|
|
32
|
-
setMode = _useState2[1];
|
|
33
|
-
var sceneWidth = width;
|
|
34
|
-
var sceneHeight = height;
|
|
35
|
-
if (mode !== state.get('mode')) {
|
|
36
|
-
k++;
|
|
37
|
-
setMode(state.get('mode'));
|
|
38
|
-
}
|
|
39
|
-
var mouseUpEvent = function mouseUpEvent(event) {
|
|
40
|
-
setToolbar('');
|
|
41
|
-
};
|
|
42
|
-
(0, _react.useEffect)(function () {
|
|
43
|
-
document.getElementById('front').addEventListener('mouseup', mouseUpEvent);
|
|
44
|
-
return function () {
|
|
45
|
-
document.getElementById('front').removeEventListener('mouseup', mouseUpEvent);
|
|
46
|
-
};
|
|
47
|
-
}, []);
|
|
48
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("svg", {
|
|
49
|
-
width: sceneWidth,
|
|
50
|
-
height: sceneHeight,
|
|
51
|
-
id: "front",
|
|
52
|
-
style: {
|
|
53
|
-
position: 'absolute',
|
|
54
|
-
display: 'block'
|
|
55
|
-
}
|
|
56
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
57
|
-
transform: "translate(".concat(width / 2, ", ").concat(height / 2, ")")
|
|
58
|
-
}, /*#__PURE__*/_react["default"].createElement(_state3D["default"], {
|
|
59
|
-
state: state,
|
|
60
|
-
catalog: catalog,
|
|
61
|
-
height: sceneHeight,
|
|
62
|
-
width: sceneWidth,
|
|
63
|
-
downloadFlag: false
|
|
64
|
-
}))), /*#__PURE__*/_react["default"].createElement(_viewer3d["default"], {
|
|
65
|
-
id: "viewer3D",
|
|
66
|
-
key: k,
|
|
67
|
-
state: state,
|
|
68
|
-
width: width,
|
|
69
|
-
height: height,
|
|
70
|
-
setToolbar: setToolbar,
|
|
71
|
-
replaceCabinet: replaceCabinet,
|
|
72
|
-
keyDownEnable: keyDownEnable,
|
|
73
|
-
downloadFlag: false
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = createGrid;
|
|
8
|
-
var Three = _interopRequireWildcard(require("three"));
|
|
9
|
-
var _helvetiker_regularTypeface = require("./libs/helvetiker_regular.typeface.js");
|
|
10
|
-
var _gridStreak = _interopRequireDefault(require("./grids/grid-streak"));
|
|
11
|
-
var _FontLoader = require("three/examples/jsm/loaders/FontLoader.js");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
|
-
function createGrid(scene) {
|
|
15
|
-
var gridMesh = new Three.Object3D();
|
|
16
|
-
gridMesh.name = 'grid';
|
|
17
|
-
var fontLoader = new _FontLoader.FontLoader();
|
|
18
|
-
var font = fontLoader.parse(_helvetiker_regularTypeface.HELVETIKER); // For measures
|
|
19
|
-
var grids = scene.grids,
|
|
20
|
-
width = scene.width,
|
|
21
|
-
height = scene.height;
|
|
22
|
-
grids.forEach(function (grid) {
|
|
23
|
-
switch (grid.type) {
|
|
24
|
-
case 'horizontal-streak':
|
|
25
|
-
gridMesh.add((0, _gridStreak["default"])(width, height, grid, font));
|
|
26
|
-
break;
|
|
27
|
-
default:
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
// gridMesh.position.y = -1;
|
|
33
|
-
return gridMesh;
|
|
34
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = _default;
|
|
8
|
-
var Three = _interopRequireWildcard(require("three"));
|
|
9
|
-
var _immutable = require("immutable");
|
|
10
|
-
var _sharedStyle = require("../../../shared-style");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
-
function _default(width, height, grid, font) {
|
|
13
|
-
var step = grid.properties.get('step');
|
|
14
|
-
var colors = grid.properties.has('color') ? new _immutable.List([grid.properties.get('color')]) : grid.properties.get('colors');
|
|
15
|
-
var streak = new Three.Object3D();
|
|
16
|
-
streak.name = 'streak';
|
|
17
|
-
var counter = 0;
|
|
18
|
-
for (var i = 0; i <= height; i += step) {
|
|
19
|
-
var geometry = new Three.Geometry();
|
|
20
|
-
geometry.vertices.push(new Three.Vector3(0, 0, -i));
|
|
21
|
-
geometry.vertices.push(new Three.Vector3(width, 0, -i));
|
|
22
|
-
var color = colors.get(counter % colors.size);
|
|
23
|
-
var material = new Three.LineBasicMaterial({
|
|
24
|
-
color: color
|
|
25
|
-
});
|
|
26
|
-
if (counter % 5 == 0) {
|
|
27
|
-
var shape = new Three.TextGeometry('' + counter * step, {
|
|
28
|
-
size: 16,
|
|
29
|
-
height: 1,
|
|
30
|
-
font: font
|
|
31
|
-
});
|
|
32
|
-
var wrapper = new Three.MeshBasicMaterial({
|
|
33
|
-
color: _sharedStyle.COLORS.black
|
|
34
|
-
});
|
|
35
|
-
var words = new Three.Mesh(shape, wrapper);
|
|
36
|
-
words.rotation.x -= Math.PI / 2;
|
|
37
|
-
words.position.set(-90, 0, -i);
|
|
38
|
-
// streak.add(words);
|
|
39
|
-
}
|
|
40
|
-
streak.add(new Three.LineSegments(geometry, material));
|
|
41
|
-
counter++;
|
|
42
|
-
}
|
|
43
|
-
return streak;
|
|
44
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = _default;
|
|
8
|
-
var Three = _interopRequireWildcard(require("three"));
|
|
9
|
-
var _immutable = require("immutable");
|
|
10
|
-
var _sharedStyle = require("../../../shared-style");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
-
function _default(width, height, grid, font) {
|
|
13
|
-
var step = grid.properties.get('step');
|
|
14
|
-
var colors = grid.properties.has('color') ? new _immutable.List([grid.properties.get('color')]) : grid.properties.get('colors');
|
|
15
|
-
var streak = new Three.Object3D();
|
|
16
|
-
streak.name = 'streak';
|
|
17
|
-
var counter = 0;
|
|
18
|
-
for (var i = 0; i <= height; i += step) {
|
|
19
|
-
for (var j = 0; j <= width; j += step) {
|
|
20
|
-
var geometry = new Three.BufferGeometry();
|
|
21
|
-
geometry.setAttribute('position', new Three.BufferAttribute(new Float32Array([0, 0, -i, width, 0, -i]), 3));
|
|
22
|
-
var color = colors.get(counter % colors.size);
|
|
23
|
-
var material = new Three.LineBasicMaterial({
|
|
24
|
-
color: color
|
|
25
|
-
});
|
|
26
|
-
var circlegeometry = new Three.CircleGeometry(3, 32); // 3D dot's radius
|
|
27
|
-
var circle = new Three.Mesh(circlegeometry, material);
|
|
28
|
-
circle.rotation.x -= Math.PI / 2;
|
|
29
|
-
circle.position.set(j, -0.5, -i);
|
|
30
|
-
streak.add(circle);
|
|
31
|
-
counter++;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return streak;
|
|
35
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = _default;
|
|
8
|
-
var Three = _interopRequireWildcard(require("three"));
|
|
9
|
-
var _immutable = require("immutable");
|
|
10
|
-
var _sharedStyle = require("../../../shared-style");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
-
function _default(width, height, grid, font) {
|
|
13
|
-
var step = grid.properties.get('step');
|
|
14
|
-
var colors = grid.properties.has('color') ? new _immutable.List([grid.properties.get('color')]) : grid.properties.get('colors');
|
|
15
|
-
var streak = new Three.Object3D();
|
|
16
|
-
streak.name = 'streak';
|
|
17
|
-
var counter = 0;
|
|
18
|
-
for (var i = 0; i <= width; i += step) {
|
|
19
|
-
var geometry = new Three.Geometry();
|
|
20
|
-
geometry.vertices.push(new Three.Vector3(i, 0, 0));
|
|
21
|
-
geometry.vertices.push(new Three.Vector3(i, 0, -height));
|
|
22
|
-
var color = colors.get(counter % colors.size);
|
|
23
|
-
var material = new Three.LineBasicMaterial({
|
|
24
|
-
color: color
|
|
25
|
-
});
|
|
26
|
-
if (counter % 5 == 0) {
|
|
27
|
-
var shape = new Three.TextGeometry('' + counter * step, {
|
|
28
|
-
size: 16,
|
|
29
|
-
height: 1,
|
|
30
|
-
font: font
|
|
31
|
-
});
|
|
32
|
-
var wrapper = new Three.MeshBasicMaterial({
|
|
33
|
-
color: _sharedStyle.COLORS.black
|
|
34
|
-
});
|
|
35
|
-
var words = new Three.Mesh(shape, wrapper);
|
|
36
|
-
words.rotation.x -= Math.PI / 2;
|
|
37
|
-
words.position.set(i - 20, 0, 50);
|
|
38
|
-
// streak.add(words);
|
|
39
|
-
}
|
|
40
|
-
streak.add(new Three.LineSegments(geometry, material));
|
|
41
|
-
counter++;
|
|
42
|
-
}
|
|
43
|
-
return streak;
|
|
44
|
-
}
|