@realsee/dnalogel 2.2.6 → 2.2.7
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/docs/assets/main.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
- package/libs/CSS3DRenderPlugin/Controller.js +30 -22
- package/libs/CSS3DRenderPlugin/index.js +12 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +52 -41
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
- package/libs/ModelTVVideoPlugin/index.js +17 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.js +48 -27
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +40 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +25 -13
- package/libs/PanoCompassPlugin/index.js +23 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
- package/libs/PanoSpatialTagPlugin/index.js +20 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
- package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +82 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +10 -10
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +33 -33
- package/package.json +17 -17
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -2,16 +2,16 @@ var G = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (
|
|
5
|
+
var x = (v, c, e) => c in v ? G(v, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[c] = e, S = (v, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
|
-
T.call(c, e) && x(
|
|
7
|
+
T.call(c, e) && x(v, e, c[e]);
|
|
8
8
|
if (E)
|
|
9
9
|
for (var e of E(c))
|
|
10
|
-
A.call(c, e) && x(
|
|
11
|
-
return
|
|
12
|
-
}, L = (
|
|
13
|
-
var P = (
|
|
14
|
-
var
|
|
10
|
+
A.call(c, e) && x(v, e, c[e]);
|
|
11
|
+
return v;
|
|
12
|
+
}, L = (v, c) => K(v, U(c));
|
|
13
|
+
var P = (v, c, e) => (x(v, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
var g = (v, c, e) => new Promise((t, i) => {
|
|
15
15
|
var a = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(s));
|
|
@@ -25,19 +25,29 @@ var y = (g, c, e) => new Promise((t, i) => {
|
|
|
25
25
|
i(r);
|
|
26
26
|
}
|
|
27
27
|
}, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, o);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(v, c)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Controller as O } from "../base/BasePluginWithData.js";
|
|
31
31
|
import { GuideLinePlugin as V } from "../GuideLinePlugin/index.js";
|
|
32
32
|
import { uuid as k } from "../shared-utils/uuid.js";
|
|
33
33
|
import { coordinatesAngle as Q } from "./utils/coordinatesAngle.js";
|
|
34
|
-
import { safeCall as
|
|
35
|
-
import { equal as
|
|
34
|
+
import { safeCall as $ } from "./utils/safeCall.js";
|
|
35
|
+
import { equal as _ } from "../shared-utils/equal.js";
|
|
36
36
|
import { vectorToCoordinates as R } from "./utils/vectorToCoordinates.js";
|
|
37
37
|
import * as N from "three";
|
|
38
38
|
import { linerValue as j } from "./utils/linerValue.js";
|
|
39
39
|
import { sleep as H } from "./utils/sleep.js";
|
|
40
|
-
|
|
40
|
+
import "../base/BasePlugin.js";
|
|
41
|
+
import "../shared-utils/Subscribe.js";
|
|
42
|
+
import "../GuideLinePlugin/Controller.js";
|
|
43
|
+
import "../GuideLinePlugin/utils/getLineGeometries.js";
|
|
44
|
+
import "polyline-normals";
|
|
45
|
+
import "../GuideLinePlugin/utils/getArrowMaterial.js";
|
|
46
|
+
import "../shared-utils/isNil.js";
|
|
47
|
+
import "./utils/coordinatesToVector.js";
|
|
48
|
+
import "../shared-utils/isTruelyObject.js";
|
|
49
|
+
import "./utils/formatRad.js";
|
|
50
|
+
const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, ve = (v) => `${w}--${v}`, F = () => {
|
|
41
51
|
console.error(`${w} is disposed`);
|
|
42
52
|
}, J = () => {
|
|
43
53
|
console.warn(`${w} is disabled`);
|
|
@@ -80,11 +90,11 @@ class B extends O {
|
|
|
80
90
|
});
|
|
81
91
|
}
|
|
82
92
|
load(e, t, i) {
|
|
83
|
-
return
|
|
84
|
-
var d,
|
|
93
|
+
return g(this, null, function* () {
|
|
94
|
+
var d, y, f, l, u;
|
|
85
95
|
if (this.state.disposed)
|
|
86
96
|
return F();
|
|
87
|
-
this.privateState.fiveOriginGetProgress || (
|
|
97
|
+
this.privateState.fiveOriginGetProgress || (y = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && y.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
|
|
88
98
|
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
|
|
89
99
|
this.data = o, this.hooks.emit("dataChange", o, a);
|
|
90
100
|
let n = [], s;
|
|
@@ -121,12 +131,12 @@ class B extends O {
|
|
|
121
131
|
this.setState({ playing: !1 }, e);
|
|
122
132
|
}
|
|
123
133
|
show(e) {
|
|
124
|
-
return
|
|
134
|
+
return g(this, null, function* () {
|
|
125
135
|
this.setState({ visible: !0 }, e);
|
|
126
136
|
});
|
|
127
137
|
}
|
|
128
138
|
hide(e) {
|
|
129
|
-
return
|
|
139
|
+
return g(this, null, function* () {
|
|
130
140
|
this.setState({ visible: !1 }, e);
|
|
131
141
|
});
|
|
132
142
|
}
|
|
@@ -146,10 +156,10 @@ class B extends O {
|
|
|
146
156
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
147
157
|
return q();
|
|
148
158
|
const i = S({}, this.state);
|
|
149
|
-
this.state = S(S({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction),
|
|
159
|
+
this.state = S(S({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), _(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
|
|
150
160
|
}
|
|
151
161
|
formatData(e) {
|
|
152
|
-
return
|
|
162
|
+
return g(this, null, function* () {
|
|
153
163
|
this.five.work || (yield this.waitFiveLoaded());
|
|
154
164
|
const t = this.five.work.observers, i = (() => {
|
|
155
165
|
const a = e;
|
|
@@ -170,11 +180,11 @@ class B extends O {
|
|
|
170
180
|
return this.privateState.moveToFirstPanoEffect = n, i.panoIndexList.forEach((s, r) => {
|
|
171
181
|
const d = (() => {
|
|
172
182
|
var h, m, p, b;
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
183
|
+
const y = i.panoIndexList.slice(r).find((I) => I !== s);
|
|
184
|
+
if (y === void 0)
|
|
175
185
|
return;
|
|
176
|
-
const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[
|
|
177
|
-
if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[
|
|
186
|
+
const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[y]) == null ? void 0 : m.position;
|
|
187
|
+
if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[y]) == null ? void 0 : b.floorIndex))
|
|
178
188
|
return;
|
|
179
189
|
const u = new N.Vector3().subVectors(l, f);
|
|
180
190
|
return R(u);
|
|
@@ -206,7 +216,7 @@ class B extends O {
|
|
|
206
216
|
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
207
217
|
}
|
|
208
218
|
handlePlay(e) {
|
|
209
|
-
return
|
|
219
|
+
return g(this, null, function* () {
|
|
210
220
|
var l;
|
|
211
221
|
const { data: t, state: i, privateState: a, hooks: o } = this;
|
|
212
222
|
if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
@@ -216,7 +226,7 @@ class B extends O {
|
|
|
216
226
|
const s = t.keyframes, r = this.getPauseData();
|
|
217
227
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
218
228
|
let d = !1;
|
|
219
|
-
const f = yield (() =>
|
|
229
|
+
const f = yield (() => g(this, null, function* () {
|
|
220
230
|
var u, h;
|
|
221
231
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
222
232
|
return e.playFromIndex;
|
|
@@ -257,7 +267,7 @@ class B extends O {
|
|
|
257
267
|
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
|
|
258
268
|
}
|
|
259
269
|
playKeyframe(e, t) {
|
|
260
|
-
return
|
|
270
|
+
return g(this, null, function* () {
|
|
261
271
|
var a;
|
|
262
272
|
const { privateState: i } = this;
|
|
263
273
|
return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
|
|
@@ -272,7 +282,7 @@ class B extends O {
|
|
|
272
282
|
};
|
|
273
283
|
}
|
|
274
284
|
getPlayPromise(e, t) {
|
|
275
|
-
return
|
|
285
|
+
return g(this, null, function* () {
|
|
276
286
|
var a;
|
|
277
287
|
const i = e.data;
|
|
278
288
|
if ((a = t == null ? void 0 : t.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!i)
|
|
@@ -304,7 +314,7 @@ class B extends O {
|
|
|
304
314
|
});
|
|
305
315
|
}
|
|
306
316
|
actionPromiseQueue() {
|
|
307
|
-
return
|
|
317
|
+
return g(this, null, function* () {
|
|
308
318
|
const { privateState: e } = this;
|
|
309
319
|
return new Promise((t, i) => {
|
|
310
320
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -321,7 +331,7 @@ class B extends O {
|
|
|
321
331
|
});
|
|
322
332
|
}
|
|
323
333
|
move(e, t) {
|
|
324
|
-
return
|
|
334
|
+
return g(this, null, function* () {
|
|
325
335
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
326
336
|
yield this.changeMode(e);
|
|
327
337
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -331,7 +341,7 @@ class B extends O {
|
|
|
331
341
|
});
|
|
332
342
|
}
|
|
333
343
|
rotate(e, t) {
|
|
334
|
-
return
|
|
344
|
+
return g(this, null, function* () {
|
|
335
345
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
336
346
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
337
347
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -340,16 +350,16 @@ class B extends O {
|
|
|
340
350
|
});
|
|
341
351
|
}
|
|
342
352
|
updateCamera(e, t = 800) {
|
|
343
|
-
return
|
|
353
|
+
return g(this, null, function* () {
|
|
344
354
|
const { five: i, privateState: a, state: o } = this;
|
|
345
355
|
let n = t;
|
|
346
356
|
const s = (() => {
|
|
347
357
|
var f, l;
|
|
348
|
-
const d = (f = o.config) == null ? void 0 : f.speedConfig,
|
|
358
|
+
const d = (f = o.config) == null ? void 0 : f.speedConfig, y = (l = e.rotateSpeed) != null ? l : d == null ? void 0 : d.rotateSpeed;
|
|
349
359
|
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
350
|
-
return
|
|
351
|
-
if (
|
|
352
|
-
return d.rotateSpeedUnit === "rad/ms" ?
|
|
360
|
+
return y;
|
|
361
|
+
if (y !== void 0)
|
|
362
|
+
return d.rotateSpeedUnit === "rad/ms" ? y : y / 1e3;
|
|
353
363
|
})();
|
|
354
364
|
if (s) {
|
|
355
365
|
const d = this.five.getCurrentState();
|
|
@@ -358,20 +368,20 @@ class B extends O {
|
|
|
358
368
|
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = n);
|
|
359
369
|
const r = this.getSpeededDuration(n);
|
|
360
370
|
return new Promise((d) => {
|
|
361
|
-
|
|
371
|
+
$(() => i.updateCamera(e, r)), setTimeout(() => d(), r);
|
|
362
372
|
});
|
|
363
373
|
});
|
|
364
374
|
}
|
|
365
375
|
changePano(e, t) {
|
|
366
|
-
return
|
|
367
|
-
var
|
|
376
|
+
return g(this, null, function* () {
|
|
377
|
+
var y;
|
|
368
378
|
const { five: i, privateState: a, state: o } = this;
|
|
369
379
|
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
370
380
|
return;
|
|
371
381
|
i.getCurrentState().mode;
|
|
372
382
|
const n = i.getCurrentState().mode !== "Panorama";
|
|
373
383
|
n && (this.privateState.modeChanging = !0);
|
|
374
|
-
let s = (
|
|
384
|
+
let s = (y = t == null ? void 0 : t.duration) != null ? y : 800;
|
|
375
385
|
const r = (() => {
|
|
376
386
|
var u, h;
|
|
377
387
|
const f = (u = o.config) == null ? void 0 : u.speedConfig, l = (h = e.moveSpeed) != null ? h : f == null ? void 0 : f.moveSpeed;
|
|
@@ -416,7 +426,7 @@ class B extends O {
|
|
|
416
426
|
return this.five.controller.cameraMotion.progress;
|
|
417
427
|
}
|
|
418
428
|
changeMode(e, t) {
|
|
419
|
-
return
|
|
429
|
+
return g(this, null, function* () {
|
|
420
430
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, console.log("this.privateState.modeChanging", this.privateState.modeChanging), yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
421
431
|
});
|
|
422
432
|
}
|
|
@@ -456,7 +466,7 @@ class B extends O {
|
|
|
456
466
|
t != null && t.warnLog && J();
|
|
457
467
|
}
|
|
458
468
|
waitFiveLoaded() {
|
|
459
|
-
return
|
|
469
|
+
return g(this, null, function* () {
|
|
460
470
|
return new Promise((e) => {
|
|
461
471
|
if (this.five.work) {
|
|
462
472
|
e();
|
|
@@ -480,5 +490,6 @@ class B extends O {
|
|
|
480
490
|
}
|
|
481
491
|
P(B, "PluginVersion", M);
|
|
482
492
|
export {
|
|
483
|
-
B as
|
|
493
|
+
B as default,
|
|
494
|
+
ve as pluginFlag
|
|
484
495
|
};
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import o from "./Controller.js";
|
|
2
|
+
import { default as y } from "./Controller.js";
|
|
3
|
+
import "../base/BasePluginWithData.js";
|
|
4
|
+
import "../base/BasePlugin.js";
|
|
5
|
+
import "../shared-utils/Subscribe.js";
|
|
6
|
+
import "../GuideLinePlugin/index.js";
|
|
7
|
+
import "../GuideLinePlugin/Controller.js";
|
|
8
|
+
import "three";
|
|
9
|
+
import "../GuideLinePlugin/utils/getLineGeometries.js";
|
|
10
|
+
import "polyline-normals";
|
|
11
|
+
import "../GuideLinePlugin/utils/getArrowMaterial.js";
|
|
12
|
+
import "../shared-utils/isNil.js";
|
|
13
|
+
import "../shared-utils/equal.js";
|
|
14
|
+
import "../shared-utils/isTruelyObject.js";
|
|
15
|
+
import "../shared-utils/uuid.js";
|
|
16
|
+
import "./utils/coordinatesAngle.js";
|
|
17
|
+
import "./utils/coordinatesToVector.js";
|
|
18
|
+
import "./utils/safeCall.js";
|
|
19
|
+
import "./utils/vectorToCoordinates.js";
|
|
20
|
+
import "./utils/formatRad.js";
|
|
21
|
+
import "./utils/linerValue.js";
|
|
22
|
+
import "./utils/sleep.js";
|
|
23
|
+
const k = (r) => new o(r);
|
|
3
24
|
export {
|
|
4
|
-
|
|
25
|
+
k as CruisePlugin,
|
|
26
|
+
y as CruisePluginController,
|
|
27
|
+
k as default
|
|
5
28
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var k = Object.defineProperty;
|
|
2
2
|
var G = Object.getOwnPropertySymbols;
|
|
3
3
|
var x = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var m = (n, s, e) => s in n ? k(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, c = (n, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
x.call(s, e) &&
|
|
6
|
+
x.call(s, e) && m(n, e, s[e]);
|
|
7
7
|
if (G)
|
|
8
8
|
for (var e of G(s))
|
|
9
|
-
P.call(s, e) &&
|
|
9
|
+
P.call(s, e) && m(n, e, s[e]);
|
|
10
10
|
return n;
|
|
11
11
|
};
|
|
12
|
-
var d = (n, s, e) => (
|
|
12
|
+
var d = (n, s, e) => (m(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
13
|
var u = (n, s, e) => new Promise((i, t) => {
|
|
14
14
|
var a = (r) => {
|
|
15
15
|
try {
|
|
@@ -27,11 +27,15 @@ var u = (n, s, e) => new Promise((i, t) => {
|
|
|
27
27
|
o((e = e.apply(n, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as $ } from "../base/BasePluginWithData.js";
|
|
30
|
-
import * as
|
|
30
|
+
import * as b from "three";
|
|
31
31
|
import { getLineGeometries as y } from "./utils/getLineGeometries.js";
|
|
32
32
|
import { getArrowMaterial as M } from "./utils/getArrowMaterial.js";
|
|
33
33
|
import { notNil as w } from "../shared-utils/isNil.js";
|
|
34
34
|
import { equal as N } from "../shared-utils/equal.js";
|
|
35
|
+
import "../base/BasePlugin.js";
|
|
36
|
+
import "../shared-utils/Subscribe.js";
|
|
37
|
+
import "polyline-normals";
|
|
38
|
+
import "../shared-utils/isTruelyObject.js";
|
|
35
39
|
const L = "v1.0.1", S = "GuideLinePlugin", v = `${S}@${L}`, E = (n) => `${v}--${n}`;
|
|
36
40
|
class I extends $ {
|
|
37
41
|
constructor(e, i) {
|
|
@@ -101,13 +105,13 @@ class I extends $ {
|
|
|
101
105
|
this.linesGroup && this.five.scene.add(this.linesGroup);
|
|
102
106
|
}
|
|
103
107
|
getLinesGroup(e) {
|
|
104
|
-
const i = e.map(this.getLine.bind(this)).filter(w), t = new
|
|
108
|
+
const i = e.map(this.getLine.bind(this)).filter(w), t = new b.Group();
|
|
105
109
|
if (t.name = E("route-group"), i.length !== 0)
|
|
106
110
|
return t.add(...i), t;
|
|
107
111
|
}
|
|
108
112
|
getLine(e) {
|
|
109
113
|
var o, r, l, g;
|
|
110
|
-
const i = new
|
|
114
|
+
const i = new b.Group(), t = e.panoIndexList.map((p) => {
|
|
111
115
|
var f;
|
|
112
116
|
return (f = this.five.work.observers[p]) == null ? void 0 : f.standingPosition;
|
|
113
117
|
}).filter(w), a = y(t, {
|
|
@@ -119,7 +123,7 @@ class I extends $ {
|
|
|
119
123
|
return;
|
|
120
124
|
const h = M({ textureUrl: (g = e.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" });
|
|
121
125
|
return a.forEach((p) => {
|
|
122
|
-
const f = new
|
|
126
|
+
const f = new b.Mesh(p, h);
|
|
123
127
|
f.name = E("route-line-mesh"), i.add(f);
|
|
124
128
|
}), i;
|
|
125
129
|
}
|
|
@@ -139,5 +143,6 @@ class I extends $ {
|
|
|
139
143
|
}
|
|
140
144
|
d(I, "lasestVersion", L);
|
|
141
145
|
export {
|
|
142
|
-
I as
|
|
146
|
+
I as default,
|
|
147
|
+
E as pluginFlag
|
|
143
148
|
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import t from "./Controller.js";
|
|
2
|
+
import "../base/BasePluginWithData.js";
|
|
3
|
+
import "../base/BasePlugin.js";
|
|
4
|
+
import "../shared-utils/Subscribe.js";
|
|
5
|
+
import "three";
|
|
6
|
+
import "./utils/getLineGeometries.js";
|
|
7
|
+
import "polyline-normals";
|
|
8
|
+
import "./utils/getArrowMaterial.js";
|
|
9
|
+
import "../shared-utils/isNil.js";
|
|
10
|
+
import "../shared-utils/equal.js";
|
|
11
|
+
import "../shared-utils/isTruelyObject.js";
|
|
12
|
+
const c = (o, r) => new t(o, r);
|
|
3
13
|
export {
|
|
4
|
-
|
|
14
|
+
c as GuideLinePlugin,
|
|
15
|
+
c as default
|
|
5
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { Subscribe as
|
|
1
|
+
import { Subscribe as L, Five as E } from "@realsee/five";
|
|
2
2
|
import g from "./ItemLabelComponent.js";
|
|
3
3
|
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as h } from "./typings.js";
|
|
4
4
|
import { parseItemLabelPluginData as v } from "./utils/parseData.js";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import "../vendor/svelte/internal/index.js";
|
|
6
|
+
import "three";
|
|
7
|
+
import "./ItemLabelItem.js";
|
|
8
|
+
import "classnames";
|
|
9
|
+
import "../shared-utils/debounce.js";
|
|
10
|
+
import "./utils/isImpacted.js";
|
|
11
|
+
import "./utils/getStrokeLength.js";
|
|
12
|
+
import "./utils/getLabelTransform.js";
|
|
13
|
+
import "./utils/transform2RenderData.js";
|
|
14
|
+
const P = void 0, O = (o, t) => {
|
|
15
|
+
var d, c, b, p;
|
|
7
16
|
const e = {
|
|
8
17
|
container: document.createElement("div"),
|
|
9
18
|
data: null,
|
|
@@ -12,11 +21,11 @@ const P = void 0, V = (o, n) => {
|
|
|
12
21
|
itemLabels: [],
|
|
13
22
|
wrapper: null,
|
|
14
23
|
app: void 0,
|
|
15
|
-
hooks: new
|
|
16
|
-
modelOcclusionEnable: (d =
|
|
17
|
-
onlyVisibleInPanorama: (c =
|
|
18
|
-
displayStrategyType: (b =
|
|
19
|
-
maxVisibleDistance: (
|
|
24
|
+
hooks: new L(),
|
|
25
|
+
modelOcclusionEnable: (d = t == null ? void 0 : t.modelOcclusionEnable) != null ? d : !0,
|
|
26
|
+
onlyVisibleInPanorama: (c = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? c : !0,
|
|
27
|
+
displayStrategyType: (b = t == null ? void 0 : t.displayStrategyType) != null ? b : h.SMALL,
|
|
28
|
+
maxVisibleDistance: (p = t == null ? void 0 : t.maxVisibleDistance) != null ? p : P
|
|
20
29
|
};
|
|
21
30
|
e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
|
|
22
31
|
position: absolute;
|
|
@@ -26,15 +35,15 @@ const P = void 0, V = (o, n) => {
|
|
|
26
35
|
height: 100%;
|
|
27
36
|
z-index: 5;
|
|
28
37
|
`, e.container.style.pointerEvents = "none";
|
|
29
|
-
const
|
|
30
|
-
e.itemLabels = v(
|
|
31
|
-
}, l = () => (e.enabled || (e.enabled = !0, i()), !0),
|
|
32
|
-
|
|
38
|
+
const u = (n) => (e.wrapper = n, n.appendChild(e.container), i(), !0), m = (n) => {
|
|
39
|
+
e.itemLabels = v(n), i();
|
|
40
|
+
}, l = () => (e.enabled || (e.enabled = !0, i()), !0), r = () => (e.enabled && (e.enabled = !1, i()), !0), a = () => {
|
|
41
|
+
f(), e.container.remove();
|
|
33
42
|
}, i = () => {
|
|
34
|
-
var
|
|
43
|
+
var n;
|
|
35
44
|
if (!!e.wrapper) {
|
|
36
45
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
37
|
-
(
|
|
46
|
+
(n = e.app) == null || n.$destroy(), e.app = void 0;
|
|
38
47
|
return;
|
|
39
48
|
}
|
|
40
49
|
e.app ? e.app.$set({
|
|
@@ -55,12 +64,12 @@ const P = void 0, V = (o, n) => {
|
|
|
55
64
|
});
|
|
56
65
|
}
|
|
57
66
|
}, y = () => {
|
|
58
|
-
o.on("modeChange", s), o.once("dispose",
|
|
59
|
-
},
|
|
67
|
+
o.on("modeChange", s), o.once("dispose", a);
|
|
68
|
+
}, f = () => {
|
|
60
69
|
o.off("modeChange", s);
|
|
61
|
-
}, s = (
|
|
62
|
-
if (
|
|
63
|
-
e.fiveModeEnabled = !1,
|
|
70
|
+
}, s = (n) => {
|
|
71
|
+
if (n !== E.Mode.Panorama) {
|
|
72
|
+
e.fiveModeEnabled = !1, r();
|
|
64
73
|
return;
|
|
65
74
|
}
|
|
66
75
|
o.once("initAnimationEnded", () => {
|
|
@@ -68,14 +77,15 @@ const P = void 0, V = (o, n) => {
|
|
|
68
77
|
});
|
|
69
78
|
};
|
|
70
79
|
return y(), {
|
|
71
|
-
appendTo:
|
|
80
|
+
appendTo: u,
|
|
72
81
|
load: m,
|
|
73
82
|
enable: l,
|
|
74
|
-
disable:
|
|
75
|
-
dispose:
|
|
83
|
+
disable: r,
|
|
84
|
+
dispose: a,
|
|
76
85
|
hooks: e.hooks
|
|
77
86
|
};
|
|
78
87
|
};
|
|
79
88
|
export {
|
|
80
|
-
|
|
89
|
+
O as Plugin,
|
|
90
|
+
O as default
|
|
81
91
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { Plugin as f, Plugin as E } from "./Plugin.js";
|
|
3
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as b } from "./typings.js";
|
|
1
4
|
import "@realsee/five";
|
|
5
|
+
import "./ItemLabelComponent.js";
|
|
2
6
|
import "../vendor/svelte/internal/index.js";
|
|
3
7
|
import "three";
|
|
8
|
+
import "./ItemLabelItem.js";
|
|
4
9
|
import "classnames";
|
|
5
|
-
|
|
10
|
+
import "../shared-utils/debounce.js";
|
|
11
|
+
import "./utils/isImpacted.js";
|
|
12
|
+
import "./utils/getStrokeLength.js";
|
|
13
|
+
import "./utils/getLabelTransform.js";
|
|
14
|
+
import "./utils/transform2RenderData.js";
|
|
15
|
+
import "./utils/parseData.js";
|
|
16
|
+
const s = {
|
|
6
17
|
name: "ItemLabelPlugin",
|
|
7
18
|
version: 0
|
|
8
19
|
};
|
|
9
20
|
export {
|
|
10
|
-
|
|
21
|
+
b as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
22
|
+
f as ItemLabelPlugin,
|
|
23
|
+
E as default,
|
|
24
|
+
s as itemLabelPluginServerParams
|
|
11
25
|
};
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { ModelChassisCompassPlugin as t, ModelChassisCompassPlugin as C } from "./Plugin.js";
|
|
1
3
|
import "three";
|
|
2
4
|
import "three/examples/jsm/loaders/FBXLoader";
|
|
5
|
+
import "../shared-utils/object3d2LocalMatrix.js";
|
|
6
|
+
import "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
7
|
+
export {
|
|
8
|
+
t as ModelChassisCompassPlugin,
|
|
9
|
+
C as default
|
|
10
|
+
};
|