@realsee/dnalogel 3.73.3 → 3.73.5
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 +12 -3
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +3684 -3569
- package/dist/index.umd.js +73 -73
- package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +232 -232
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +181 -121
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +167 -136
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +151 -150
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
- package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/shared-utils/five/getFloorMesh.js +11 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
- package/package.json +2 -2
package/libs/index.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FloorplanGuidePlugin as
|
|
15
|
-
import { FLOOR_TYPE_MAP as
|
|
16
|
-
import { ModelChassisCompassPlugin as
|
|
17
|
-
import { ModelEntryDoorGuidePlugin as
|
|
18
|
-
import { CameraMovementPlugin as
|
|
19
|
-
import { CameraMovementEffect as
|
|
20
|
-
import { PanoRulerPlugin as
|
|
21
|
-
import { PanoRulerProPlugin as
|
|
22
|
-
import { PanoCompassPlugin as
|
|
23
|
-
import { PanoMeasurePlugin as
|
|
24
|
-
import { MeasurePlugin as
|
|
25
|
-
import { PanoSpatialTagPlugin as
|
|
26
|
-
import { modelItemLabelPluginServerParams as
|
|
27
|
-
import { ModelTVVideoPlugin as
|
|
28
|
-
import { DIRECTION as
|
|
29
|
-
import { itemLabelPluginServerParams as
|
|
30
|
-
import { PanoDoorLabelPlugin as
|
|
31
|
-
import { GuideLinePlugin as
|
|
32
|
-
import { CruisePlugin as
|
|
33
|
-
import { PanoTagPlugin as
|
|
34
|
-
import { Object3DHelperPlugin as
|
|
35
|
-
import { PanoVideoPlugin as
|
|
36
|
-
import { PipelinePlugin as
|
|
37
|
-
import { AreaMakerPlugin as
|
|
38
|
-
import { CurrentPanoImagePlugin as
|
|
39
|
-
import { Sculpt as
|
|
40
|
-
import { ModelMakerPlugin as
|
|
41
|
-
import { exports as
|
|
42
|
-
import { CSS3DRender as
|
|
43
|
-
import { Model as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { Polyline as
|
|
47
|
-
import { Magnifier as
|
|
48
|
-
import { validatePolygon as
|
|
49
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
50
|
-
import { ModelItemLabelPlugin as
|
|
51
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
52
|
-
import { Plugin as
|
|
53
|
-
import { GuideLineItem$1 as
|
|
54
|
-
import { GuideLineModeItem$1 as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { typing as
|
|
58
|
-
import { default as
|
|
59
|
-
import { defaultGlobalConfig as
|
|
60
|
-
import { ContentType as
|
|
61
|
-
import { Object3DHelperController as
|
|
62
|
-
import { typings as
|
|
63
|
-
import { createPoint as
|
|
64
|
-
import { createLine as
|
|
65
|
-
import { createPolyline as
|
|
66
|
-
import { createPolygon as
|
|
67
|
-
import { createPrism as
|
|
68
|
-
import { createRectangle as
|
|
69
|
-
import { createCircle as
|
|
70
|
-
import { createCylinder as
|
|
71
|
-
import { createBox as
|
|
3
|
+
import { PaintBrush as vn } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Fn } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Dn } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Yn } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as Bn } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as hn, modelRoomLabelPluginServerParams as kn } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as Hn } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as jn } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as Wn } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as zn } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as Kn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FloorplanGuidePlugin as Xn } from "./floorplan/FloorplanGuidePlugin/index.js";
|
|
15
|
+
import { FLOOR_TYPE_MAP as oa, ROOM_FETILE_TYPE_MAP as ra, ROOM_TYPE_MAP as ta } from "./floorplan/typings/floorplanServerData.js";
|
|
16
|
+
import { ModelChassisCompassPlugin as ma } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
17
|
+
import { ModelEntryDoorGuidePlugin as ea } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
18
|
+
import { CameraMovementPlugin as na } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
19
|
+
import { CameraMovementEffect as Pa, Rotation as fa } from "./CameraMovementPlugin/typing.js";
|
|
20
|
+
import { PanoRulerPlugin as xa } from "./PanoRulerPlugin/Plugin.js";
|
|
21
|
+
import { PanoRulerProPlugin as sa } from "./PanoRulerProPlugin/index.js";
|
|
22
|
+
import { PanoCompassPlugin as Ma } from "./PanoCompassPlugin/index.js";
|
|
23
|
+
import { PanoMeasurePlugin as Ca } from "./PanoMeasurePlugin/index.js";
|
|
24
|
+
import { MeasurePlugin as ca } from "./MeasurePlugin/index.js";
|
|
25
|
+
import { PanoSpatialTagPlugin as _a } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
26
|
+
import { modelItemLabelPluginServerParams as Ea } from "./ModelItemLabelPlugin/index.js";
|
|
27
|
+
import { ModelTVVideoPlugin as Sa } from "./ModelTVVideoPlugin/Plugin.js";
|
|
28
|
+
import { DIRECTION as va } from "./ModelTVVideoPlugin/typings.js";
|
|
29
|
+
import { itemLabelPluginServerParams as Fa } from "./ItemLabelPlugin/index.js";
|
|
30
|
+
import { PanoDoorLabelPlugin as Da } from "./PanoDoorLabelPlugin/index.js";
|
|
31
|
+
import { GuideLinePlugin as Ya } from "./GuideLinePlugin/index.js";
|
|
32
|
+
import { CruisePlugin as Ba, MovePlugin as Na } from "./CruisePlugin/index.js";
|
|
33
|
+
import { PanoTagPlugin as ka } from "./PanoTagPlugin/index.js";
|
|
34
|
+
import { Object3DHelperPlugin as Ha } from "./Object3DHelperPlugin/index.js";
|
|
35
|
+
import { PanoVideoPlugin as ja } from "./PanoVideoPlugin/index.js";
|
|
36
|
+
import { PipelinePlugin as Wa } from "./PipelinePlugin/index.js";
|
|
37
|
+
import { AreaMakerPlugin as za } from "./AreaMakerPlugin/index.js";
|
|
38
|
+
import { CurrentPanoImagePlugin as Ka } from "./CurrentPanoImagePlugin/index.js";
|
|
39
|
+
import { Sculpt as Xa, SculptPlugin as Za, SculptPluginForFive as oP } from "./Sculpt/index.js";
|
|
40
|
+
import { ModelMakerPlugin as tP } from "./ModelMakerPlugin/index.js";
|
|
41
|
+
import { exports as mP } from "./shared-utils/exports.js";
|
|
42
|
+
import { CSS3DRender as eP } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
43
|
+
import { Model as nP } from "./PanoMeasurePlugin/Model/index.js";
|
|
44
|
+
import { default as PP } from "./PanoMeasurePlugin/Model/point.js";
|
|
45
|
+
import { default as uP } from "./PanoMeasurePlugin/Model/line.js";
|
|
46
|
+
import { Polyline as gP } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
47
|
+
import { Magnifier as dP } from "./shared-utils/three/Magnifier.js";
|
|
48
|
+
import { validatePolygon as TP } from "./MeasurePlugin/utils/validatePolygon.js";
|
|
49
|
+
import { DISPLAY_STRATEGY_TYPE as LP } from "./ModelItemLabelPlugin/typings.js";
|
|
50
|
+
import { ModelItemLabelPlugin as RP } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
51
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as yP } from "./ItemLabelPlugin/typings.js";
|
|
52
|
+
import { Plugin as IP } from "./ItemLabelPlugin/Plugin.js";
|
|
53
|
+
import { GuideLineItem$1 as OP } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
54
|
+
import { GuideLineModeItem$1 as AP } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
55
|
+
import { default as GP, default as DP } from "./CruisePlugin/Work.js";
|
|
56
|
+
import { default as YP } from "./CruisePlugin/Move.js";
|
|
57
|
+
import { typing as BP } from "./CruisePlugin/typing/index.js";
|
|
58
|
+
import { default as hP, pluginFlag as kP } from "./PanoTagPlugin/controller/index.js";
|
|
59
|
+
import { defaultGlobalConfig as HP } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
60
|
+
import { ContentType as jP, DimensionType as $P, PointType as WP } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
61
|
+
import { Object3DHelperController as zP, PLUGIN as JP } from "./Object3DHelperPlugin/Controller.js";
|
|
62
|
+
import { typings as QP } from "./PanoVideoPlugin/typings/index.js";
|
|
63
|
+
import { createPoint as ZP } from "./Sculpt/Objects/Point/index.js";
|
|
64
|
+
import { createLine as rf } from "./Sculpt/Objects/Line/index.js";
|
|
65
|
+
import { createPolyline as mf } from "./Sculpt/Objects/Polyline/index.js";
|
|
66
|
+
import { createPolygon as ef } from "./Sculpt/Objects/Polygon/index.js";
|
|
67
|
+
import { createPrism as nf } from "./Sculpt/Objects/Prism/index.js";
|
|
68
|
+
import { createRectangle as Pf } from "./Sculpt/Objects/Rectangle/index.js";
|
|
69
|
+
import { createCircle as uf } from "./Sculpt/Objects/Circle/index.js";
|
|
70
|
+
import { createCylinder as gf } from "./Sculpt/Objects/Cylinder/index.js";
|
|
71
|
+
import { createBox as df } from "./Sculpt/Objects/Box/index.js";
|
|
72
72
|
import "./components/PaintBrush/Controller.js";
|
|
73
73
|
import "./components/PaintBrush/utils.js";
|
|
74
74
|
import "./components/PaintBrush/tween.js";
|
|
@@ -442,6 +442,7 @@ import "./PanoTagPlugin/Components/Tag/PanoramaTag.js";
|
|
|
442
442
|
import "./PanoTagPlugin/Components/Common/Icon/PanoramaIcon.js";
|
|
443
443
|
import "./PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
444
444
|
import "./PanoTagPlugin/controller/Tag/PlaneTag.js";
|
|
445
|
+
import "./shared-utils/five/getFloorMesh.js";
|
|
445
446
|
import "./Sculpt/utils/Modules/Global.js";
|
|
446
447
|
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
447
448
|
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -578,85 +579,85 @@ import "./shared-utils/five/lookObject.js";
|
|
|
578
579
|
r();
|
|
579
580
|
o();
|
|
580
581
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
582
|
+
za as AreaMakerPlugin,
|
|
583
|
+
eP as CSS3DRender,
|
|
584
|
+
Yn as CSS3DRenderPlugin,
|
|
585
|
+
Pa as CameraMovementEffect,
|
|
586
|
+
na as CameraMovementPlugin,
|
|
587
|
+
jP as ContentType,
|
|
588
|
+
Ba as CruisePlugin,
|
|
589
|
+
GP as CruisePluginController,
|
|
590
|
+
BP as CruisePluginTypes,
|
|
591
|
+
Ka as CurrentPanoImagePlugin,
|
|
592
|
+
va as DIRECTION,
|
|
593
|
+
LP as DISPLAY_STRATEGY_TYPE,
|
|
594
|
+
$P as DimensionType,
|
|
595
|
+
Hn as FLOOR_PLAN_ATTACHED_TO,
|
|
596
|
+
oa as FLOOR_TYPE_MAP,
|
|
597
|
+
Xn as FloorplanGuidePlugin,
|
|
598
|
+
OP as GuideLineItem,
|
|
599
|
+
AP as GuideLineModeItem,
|
|
600
|
+
Ya as GuideLinePlugin,
|
|
601
|
+
yP as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
602
|
+
IP as ItemLabelPlugin,
|
|
603
|
+
dP as Magnifier,
|
|
604
|
+
Wn as MapviewFloorplanPlugin,
|
|
605
|
+
ca as MeasurePlugin,
|
|
606
|
+
ma as ModelChassisCompassPlugin,
|
|
607
|
+
ea as ModelEntryDoorGuidePlugin,
|
|
608
|
+
jn as ModelFloorplanPlugin,
|
|
609
|
+
RP as ModelItemLabelPlugin,
|
|
610
|
+
tP as ModelMakerPlugin,
|
|
611
|
+
hn as ModelRoomLabelPlugin,
|
|
612
|
+
Sa as ModelTVVideoPlugin,
|
|
613
|
+
Dn as ModelViewPlugin,
|
|
614
|
+
YP as MoveController,
|
|
615
|
+
Na as MovePlugin,
|
|
616
|
+
zP as Object3DHelperController,
|
|
617
|
+
Ha as Object3DHelperPlugin,
|
|
618
|
+
JP as PLUGIN,
|
|
619
|
+
vn as PaintBrush,
|
|
620
|
+
Fn as PaintBrushTypeEnum,
|
|
621
|
+
Ma as PanoCompassPlugin,
|
|
622
|
+
Bn as PanoCursorRaycasterPlugin,
|
|
623
|
+
Da as PanoDoorLabelPlugin,
|
|
624
|
+
Kn as PanoFloorplanRadarPlugin,
|
|
625
|
+
Ca as PanoMeasurePlugin,
|
|
626
|
+
uP as PanoMeasurePluginLine,
|
|
627
|
+
nP as PanoMeasurePluginModel,
|
|
628
|
+
PP as PanoMeasurePluginPoint,
|
|
629
|
+
gP as PanoMeasurePluginPolyline,
|
|
630
|
+
xa as PanoRulerPlugin,
|
|
631
|
+
sa as PanoRulerProPlugin,
|
|
632
|
+
_a as PanoSpatialTagPlugin,
|
|
633
|
+
ka as PanoTagPlugin,
|
|
634
|
+
hP as PanoTagPluginController,
|
|
635
|
+
ja as PanoVideoPlugin,
|
|
636
|
+
QP as PanoVideoPluginType,
|
|
637
|
+
Wa as PipelinePlugin,
|
|
638
|
+
WP as PointType,
|
|
639
|
+
ra as ROOM_FETILE_TYPE_MAP,
|
|
640
|
+
ta as ROOM_TYPE_MAP,
|
|
641
|
+
fa as Rotation,
|
|
642
|
+
Xa as Sculpt,
|
|
643
|
+
Za as SculptPlugin,
|
|
644
|
+
oP as SculptPluginForFive,
|
|
645
|
+
zn as TopviewFloorplanPlugin,
|
|
646
|
+
mP as Util,
|
|
647
|
+
DP as WalkController,
|
|
648
|
+
df as createBox,
|
|
649
|
+
uf as createCircle,
|
|
650
|
+
gf as createCylinder,
|
|
651
|
+
rf as createLine,
|
|
652
|
+
ZP as createPoint,
|
|
653
|
+
ef as createPolygon,
|
|
654
|
+
mf as createPolyline,
|
|
655
|
+
nf as createPrism,
|
|
656
|
+
Pf as createRectangle,
|
|
657
|
+
HP as defaultGlobalConfig,
|
|
658
|
+
Fa as itemLabelPluginServerParams,
|
|
659
|
+
Ea as modelItemLabelPluginServerParams,
|
|
660
|
+
kn as modelRoomLabelPluginServerParams,
|
|
661
|
+
kP as pluginFlag,
|
|
662
|
+
TP as validatePolygon
|
|
662
663
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var g = (
|
|
4
|
-
import { BaseController as
|
|
5
|
-
import { RENDER_ORDER as
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var S = (v, m, e) => m in v ? C(v, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[m] = e;
|
|
3
|
+
var g = (v, m, e) => (S(v, typeof m != "symbol" ? m + "" : m, e), e);
|
|
4
|
+
import { BaseController as G } from "../Base/BaseController.js";
|
|
5
|
+
import { RENDER_ORDER as E } from "../Constants/RenderOrder.js";
|
|
6
6
|
import * as c from "three";
|
|
7
|
-
import { getMouseRaycaster as
|
|
8
|
-
import { SolidGuideLine as
|
|
9
|
-
import { rayOnLine as
|
|
7
|
+
import { getMouseRaycaster as A } from "../utils/getMouseRaycaster.js";
|
|
8
|
+
import { SolidGuideLine as k } from "../utils/solidGuide.js";
|
|
9
|
+
import { rayOnLine as P } from "../../../Sculpt/utils/three/rayOnLine.js";
|
|
10
10
|
import { worldBoundingBox as I } from "../../three/boundingBox.js";
|
|
11
|
-
import { getNormal as
|
|
12
|
-
var
|
|
13
|
-
class Y extends
|
|
11
|
+
import { getNormal as H } from "../../three/getNormal.js";
|
|
12
|
+
var L, w;
|
|
13
|
+
class Y extends G {
|
|
14
14
|
constructor(...e) {
|
|
15
15
|
super(...e);
|
|
16
16
|
g(this, "name", "ScaleController");
|
|
@@ -18,7 +18,7 @@ class Y extends A {
|
|
|
18
18
|
g(this, "dragGuideLine");
|
|
19
19
|
/** 当前拖拽时显示的面片 */
|
|
20
20
|
g(this, "currentFacePatch");
|
|
21
|
-
g(this, "solidGuide", new
|
|
21
|
+
g(this, "solidGuide", new k(this.camera, this.container, (w = (L = this.config) == null ? void 0 : L.solidGuide) != null ? w : {}));
|
|
22
22
|
g(this, "startInfo");
|
|
23
23
|
g(this, "dragStart", (e) => {
|
|
24
24
|
if (this.isDragging)
|
|
@@ -30,20 +30,20 @@ class Y extends A {
|
|
|
30
30
|
i = i.parent;
|
|
31
31
|
const n = i, o = n.scalePosition.basePosition.clone(), h = n.scalePosition.handlePosition.clone(), l = h.clone().sub(o).clone(), a = new c.Line3(o, o.clone().add(l.normalize().multiplyScalar(5)));
|
|
32
32
|
a.applyMatrix4(this.helperObject3D.matrixWorld);
|
|
33
|
-
const d = new c.Raycaster(r, t.point.clone().sub(r)), p =
|
|
33
|
+
const d = new c.Raycaster(r, t.point.clone().sub(r)), p = P({ raycaster: d, line: a });
|
|
34
34
|
this.startInfo = { line: a, scaleStartPoint: p, draggingObject: n }, this.helperObject3D.scaleMeshes.forEach((u) => {
|
|
35
35
|
u.uuid !== n.uuid && (u.visible = !1);
|
|
36
36
|
}), "hideLineConnections" in this.helperObject3D && typeof this.helperObject3D.hideLineConnections == "function" && this.helperObject3D.hideLineConnections();
|
|
37
37
|
try {
|
|
38
38
|
this.originObject3D.updateMatrixWorld(!0), this.helperObject3D.updateMatrixWorld(!0);
|
|
39
|
-
const u = this.getObjectWorldCenter(),
|
|
40
|
-
this.isRectangleWithEdgeMesh() || this.scene.add(
|
|
39
|
+
const u = this.getObjectWorldCenter(), M = h.clone().applyMatrix4(this.helperObject3D.matrixWorld).clone().sub(u).normalize(), b = u, y = this.solidGuide.createSolidLine(b, M, { color: 16777215, renderOrder: E.DRAG_GUIDE_LINE });
|
|
40
|
+
this.isRectangleWithEdgeMesh() || this.scene.add(y), this.dragGuideLine = y, this.addFaceMesh();
|
|
41
41
|
} catch (u) {
|
|
42
42
|
}
|
|
43
43
|
n.visible = !0, this.hooks.emit("scaleStart");
|
|
44
44
|
});
|
|
45
45
|
g(this, "dragging", (e) => {
|
|
46
|
-
const t = "touches" in e ? e.touches[0].clientX : e.x, r = "touches" in e ? e.touches[0].clientY : e.y, s =
|
|
46
|
+
const t = "touches" in e ? e.touches[0].clientX : e.x, r = "touches" in e ? e.touches[0].clientY : e.y, s = A(this.camera, { x: t, y: r }, this.container), i = this.isMoveControllerDragging();
|
|
47
47
|
if (!this.isDragging && !i && s) {
|
|
48
48
|
this.addHoverFaceMesh(s);
|
|
49
49
|
return;
|
|
@@ -61,26 +61,34 @@ class Y extends A {
|
|
|
61
61
|
const d = this.originObject3D, u = d.geometry.attributes.position;
|
|
62
62
|
if (!u)
|
|
63
63
|
return [];
|
|
64
|
-
const
|
|
65
|
-
for (let
|
|
66
|
-
const
|
|
67
|
-
d.updateMatrixWorld(!0),
|
|
64
|
+
const D = [], M = u.count;
|
|
65
|
+
for (let f = 0; f < M; f++) {
|
|
66
|
+
const j = new c.Vector3().fromBufferAttribute(u, f);
|
|
67
|
+
d.updateMatrixWorld(!0), j.applyMatrix4(d.matrixWorld), D.push(j);
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
if (!
|
|
69
|
+
const b = D.slice(0, 4);
|
|
70
|
+
if (!b || b.length < 4)
|
|
71
71
|
return;
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
const y = H(b).normalize(), x = new c.Plane().setFromNormalAndCoplanarPoint(y, b[0]), F = Math.abs(e.ray.direction.dot(y)) < 0.1;
|
|
73
|
+
let O;
|
|
74
|
+
if (F)
|
|
75
|
+
O = P({ raycaster: e, line: t, clampToLine: !1 }).applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone()));
|
|
76
|
+
else {
|
|
77
|
+
const f = new c.Vector3();
|
|
78
|
+
if (e.ray.intersectPlane(x, f), !f)
|
|
79
|
+
return;
|
|
80
|
+
const j = new c.Matrix4().getInverse(this.helperObject3D.matrixWorld);
|
|
81
|
+
O = f.clone().applyMatrix4(j);
|
|
82
|
+
}
|
|
83
|
+
const W = r.clone().applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld));
|
|
76
84
|
(h = (o = this.config) == null ? void 0 : o.scaleCallback) == null || h.call(o, {
|
|
77
|
-
intersectPoint:
|
|
85
|
+
intersectPoint: O,
|
|
78
86
|
scalePosition: i,
|
|
79
|
-
offset:
|
|
80
|
-
}), s.position.copy(
|
|
87
|
+
offset: O.clone().sub(W)
|
|
88
|
+
}), s.position.copy(O), this.hooks.emit("scale", new c.Vector3(1, 1, 1));
|
|
81
89
|
return;
|
|
82
90
|
}
|
|
83
|
-
const n =
|
|
91
|
+
const n = P({ raycaster: e, line: t, clampToLine: !1 });
|
|
84
92
|
n.applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone())), (a = (l = this.config) == null ? void 0 : l.scaleCallback) == null || a.call(l, {
|
|
85
93
|
intersectPoint: n,
|
|
86
94
|
scalePosition: i,
|
|
@@ -159,8 +167,8 @@ class Y extends A {
|
|
|
159
167
|
if (!d.vertices || d.vertices.length < 3)
|
|
160
168
|
continue;
|
|
161
169
|
const p = new c.Vector3();
|
|
162
|
-
for (const
|
|
163
|
-
p.add(
|
|
170
|
+
for (const D of d.vertices)
|
|
171
|
+
p.add(D);
|
|
164
172
|
p.divideScalar(d.vertices.length);
|
|
165
173
|
const u = n.distanceTo(p);
|
|
166
174
|
u < a && (a = u, l = d);
|
|
@@ -290,7 +298,7 @@ class Y extends A {
|
|
|
290
298
|
transparent: !0,
|
|
291
299
|
opacity: 0.45
|
|
292
300
|
}), s = new c.Mesh(t, r);
|
|
293
|
-
return s.renderOrder =
|
|
301
|
+
return s.renderOrder = E.DRAG_FACE_PATCH, this.scene.add(s), this.currentFacePatch = s, this.render(), s;
|
|
294
302
|
}
|
|
295
303
|
}
|
|
296
304
|
export {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as s from "three";
|
|
2
|
+
const m = (e, d) => {
|
|
3
|
+
const r = new s.Box3();
|
|
4
|
+
return e.models.find((o) => o.name === e.state.workCode).traverse((o) => {
|
|
5
|
+
var t, n;
|
|
6
|
+
((n = (t = o == null ? void 0 : o.material) == null ? void 0 : t[0]) == null ? void 0 : n.floorIndex) === d && r.expandByObject(o);
|
|
7
|
+
}), r;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
m as getFloorMesh
|
|
11
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.73.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.73.5",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|