@realsee/dnalogel 2.15.0 → 2.16.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/dist/CruisePlugin/Controller.d.ts +1 -2
- package/dist/CruisePlugin/typing.d.ts +12 -2
- package/dist/GuideLinePlugin/Controller.d.ts +17 -11
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +26 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
- package/dist/GuideLinePlugin/index.d.ts +3 -0
- package/dist/GuideLinePlugin/typing.d.ts +78 -1
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
- package/dist/GuideLinePlugin/utils/index.d.ts +7 -0
- package/dist/base/BasePlugin.d.ts +1 -0
- package/dist/index.cjs.js +118 -118
- package/dist/index.js +4431 -4294
- package/dist/index.umd.js +117 -117
- package/dist/shared-utils/five/index.d.ts +1 -0
- package/dist/shared-utils/five/mode.d.ts +3 -0
- package/dist/shared-utils/index.d.ts +3 -0
- package/dist/shared-utils/isAbsoluteURL.d.ts +1 -0
- package/dist/shared-utils/log.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/CruisePluginController.html +43 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +168 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +283 -0
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/Object3DHelperController.html +42 -24
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +25 -23
- package/docs/classes/PanoMeasurePluginModel.html +24 -22
- package/docs/classes/PanoMeasurePluginPoint.html +16 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +28 -26
- package/docs/classes/PanoTagPluginController.html +64 -46
- package/docs/classes/Util.BetterTween.html +10 -8
- package/docs/classes/Util.FivePointSelector.html +14 -12
- package/docs/classes/Util.Interval.html +14 -12
- package/docs/classes/Util.Magnifier.html +19 -17
- package/docs/classes/Util.PointDomHelper.html +13 -11
- package/docs/classes/Util.PointHelper.html +13 -11
- package/docs/classes/Util.Rectangle.html +15 -13
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +21 -19
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +6 -4
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.getCoordsFromClient.html +12 -6
- package/docs/functions/Util.getCoordsFromElement.html +12 -6
- package/docs/functions/Util.getFrameTime.html +12 -6
- package/docs/functions/Util.getIntersectFromRelativePosition.html +12 -6
- package/docs/functions/Util.getRaycasterFromFivePointer.html +12 -6
- package/docs/functions/Util.isAbsoluteURL.html +78 -0
- package/docs/functions/Util.isModelLike.html +78 -0
- package/docs/functions/Util.isNil.html +12 -6
- package/docs/functions/Util.isPanoramaLike.html +78 -0
- package/docs/functions/Util.nextFrame.html +12 -6
- package/docs/functions/Util.notNil.html +12 -6
- package/docs/functions/Util.requestAnimationFrameInterval.html +12 -6
- package/docs/functions/Util.tweenProgress.html +12 -6
- package/docs/functions/Util.uuid.html +75 -0
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +6 -4
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +16 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +13 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +13 -11
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +13 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
- package/docs/modules/GuideLineItem.html +52 -0
- package/docs/modules/GuideLineModeItem.html +52 -0
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +16 -6
- package/docs/modules.html +9 -5
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelElement.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/PlaneTagElement.html +7 -5
- package/docs/types/Point2DElement.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DElement.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagElement.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +7 -5
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagIconSize.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/Controller.js +40 -31
- package/libs/CSS3DRenderPlugin/index.js +12 -6
- package/libs/CruisePlugin/Controller.d.ts +1 -2
- package/libs/CruisePlugin/Controller.js +197 -174
- package/libs/CruisePlugin/index.js +33 -10
- package/libs/CruisePlugin/typing.d.ts +12 -2
- package/libs/GuideLinePlugin/Controller.d.ts +17 -11
- package/libs/GuideLinePlugin/Controller.js +111 -85
- package/libs/GuideLinePlugin/GuideLineItem/index.js +35 -0
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +26 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +31 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +148 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.js +29 -0
- package/libs/GuideLinePlugin/index.d.ts +3 -0
- package/libs/GuideLinePlugin/index.js +33 -7
- package/libs/GuideLinePlugin/typing.d.ts +78 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +35 -0
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +2 -0
- package/libs/GuideLinePlugin/utils/dataFormatter.js +6 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/index.js +32 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +37 -31
- package/libs/ModelTVVideoPlugin/index.js +11 -5
- package/libs/Object3DHelperPlugin/Controller.js +33 -28
- package/libs/Object3DHelperPlugin/index.js +18 -13
- package/libs/PanoCompassPlugin/Controller.js +8 -6
- package/libs/PanoCompassPlugin/index.js +12 -10
- package/libs/PanoDoorLabelPlugin/BaseController.js +47 -28
- package/libs/PanoDoorLabelPlugin/Controller.js +40 -22
- package/libs/PanoDoorLabelPlugin/index.js +21 -3
- package/libs/PanoMeasurePlugin/typings/index.js +20 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +8 -3
- package/libs/PanoSpatialTagPlugin/index.js +8 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +42 -22
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +8 -3
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +11 -10
- package/libs/PanoVideoPlugin/Controller.js +4 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +7 -6
- package/libs/base/BasePlugin.d.ts +1 -0
- package/libs/base/BasePlugin.js +21 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +57 -38
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +48 -29
- package/libs/floorplan/ModelFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +31 -11
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +23 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +59 -40
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/index.js +6 -0
- package/libs/index.js +116 -110
- package/libs/shared-utils/five/index.d.ts +1 -0
- package/libs/shared-utils/five/index.js +1 -0
- package/libs/shared-utils/five/mode.d.ts +3 -0
- package/libs/shared-utils/five/mode.js +11 -0
- package/libs/shared-utils/index.d.ts +3 -0
- package/libs/shared-utils/index.js +36 -29
- package/libs/shared-utils/isAbsoluteURL.d.ts +1 -0
- package/libs/shared-utils/isAbsoluteURL.js +6 -0
- package/libs/shared-utils/log.d.ts +2 -0
- package/libs/shared-utils/log.js +10 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/package.json +2 -2
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +0 -64
|
@@ -12,19 +12,19 @@ var m = (h, s, t) => s in h ? A(h, s, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, v = (h, s) => S(h, C(s));
|
|
13
13
|
var o = (h, s, t) => (m(h, typeof s != "symbol" ? s + "" : s, t), t);
|
|
14
14
|
var f = (h, s, t) => new Promise((e, i) => {
|
|
15
|
-
var
|
|
15
|
+
var r = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
a(t.next(
|
|
17
|
+
a(t.next(n));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, d = (
|
|
21
|
+
}, d = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
a(t.throw(
|
|
23
|
+
a(t.throw(n));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
27
|
+
}, a = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(r, d);
|
|
28
28
|
a((t = t.apply(h, s)).next());
|
|
29
29
|
});
|
|
30
30
|
import { to as M } from "../../shared-utils/to.js";
|
|
@@ -70,6 +70,25 @@ import "../../shared-utils/tap.js";
|
|
|
70
70
|
import "three";
|
|
71
71
|
import "../../base/BasePlugin.js";
|
|
72
72
|
import "../../shared-utils/Subscribe.js";
|
|
73
|
+
import "@realsee/five";
|
|
74
|
+
import "hammerjs";
|
|
75
|
+
import "@tweenjs/tween.js";
|
|
76
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
77
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
78
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
79
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
80
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
81
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
82
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
83
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
84
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
85
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
86
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
87
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
89
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
90
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
91
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
73
92
|
import "../../shared-utils/nearlyEqual.js";
|
|
74
93
|
import "../../shared-utils/five/changeMode.js";
|
|
75
94
|
function W(h) {
|
|
@@ -80,7 +99,7 @@ function R(h) {
|
|
|
80
99
|
const { latitude: s, longitude: t } = h, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
81
100
|
return e && i;
|
|
82
101
|
}
|
|
83
|
-
class
|
|
102
|
+
class Yt extends k {
|
|
84
103
|
constructor(t, e) {
|
|
85
104
|
var a;
|
|
86
105
|
super(t);
|
|
@@ -117,8 +136,8 @@ class Ot extends k {
|
|
|
117
136
|
o(this, "updateSize", () => {
|
|
118
137
|
if (!this.data || !T(this.five, this.showState) || !this.container || !this.wrapper)
|
|
119
138
|
return;
|
|
120
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
121
|
-
this.size.width ===
|
|
139
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = L(this.five, this.wrapper, this.floorIndex, d), n = Math.ceil(i * a), u = Math.ceil(r * a);
|
|
140
|
+
this.size.width === n && this.size.height === u || (this.container.style.width = n + "px", this.container.style.height = u + "px", this.size = { width: n, height: u });
|
|
122
141
|
});
|
|
123
142
|
o(this, "highlight", (t) => {
|
|
124
143
|
!this.state.config.highlightEnable || (this.highlightData = t, this.render());
|
|
@@ -127,9 +146,9 @@ class Ot extends k {
|
|
|
127
146
|
this.highlightData = {}, this.render();
|
|
128
147
|
});
|
|
129
148
|
o(this, "_disable", (t) => {
|
|
130
|
-
var i,
|
|
149
|
+
var i, r, d;
|
|
131
150
|
const { userAction: e } = t;
|
|
132
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (
|
|
151
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (d = this.container) == null || d.remove(), this.removeEventListener();
|
|
133
152
|
});
|
|
134
153
|
o(this, "_enable", (t) => {
|
|
135
154
|
const { userAction: e } = t;
|
|
@@ -150,22 +169,22 @@ class Ot extends k {
|
|
|
150
169
|
immediately: !1,
|
|
151
170
|
isAutoShow: !1,
|
|
152
171
|
userAction: !0
|
|
153
|
-
}, i = l(l({}, e), t),
|
|
172
|
+
}, i = l(l({}, e), t), r = () => f(this, null, function* () {
|
|
154
173
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
155
|
-
let a = !1,
|
|
174
|
+
let a = !1, n;
|
|
156
175
|
this.showRejection = (E) => {
|
|
157
|
-
a = !0,
|
|
176
|
+
a = !0, n = E;
|
|
158
177
|
};
|
|
159
178
|
const [u] = yield M(B(this.five, this.showState, i.userAction));
|
|
160
179
|
if (u)
|
|
161
180
|
throw u;
|
|
162
181
|
if (a)
|
|
163
|
-
throw
|
|
182
|
+
throw n ? new Error(n) : new Error(c.UnknownError);
|
|
164
183
|
this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
165
184
|
const p = i.modelOpacity, g = i.immediately ? 0 : H;
|
|
166
185
|
F(this.five, p, g), this.render(g);
|
|
167
186
|
});
|
|
168
|
-
return this.showPromise =
|
|
187
|
+
return this.showPromise = r().then(() => {
|
|
169
188
|
this.hooks.emit("showAnimationEnded", {
|
|
170
189
|
auto: i.isAutoShow,
|
|
171
190
|
userAction: i.userAction
|
|
@@ -178,8 +197,8 @@ class Ot extends k {
|
|
|
178
197
|
}), this.showPromise;
|
|
179
198
|
}));
|
|
180
199
|
o(this, "_hide", (t) => {
|
|
181
|
-
var
|
|
182
|
-
(
|
|
200
|
+
var r;
|
|
201
|
+
(r = this.showRejection) == null || r.call(this, c.BreakOffByHide), this.showPromise = void 0;
|
|
183
202
|
const i = l(l({}, {
|
|
184
203
|
userAction: !0,
|
|
185
204
|
isAutoHide: !1
|
|
@@ -263,9 +282,9 @@ class Ot extends k {
|
|
|
263
282
|
cameraImageUrl: D,
|
|
264
283
|
attachedTo: O.BOUNDING_CENTER,
|
|
265
284
|
getLabelElement: void 0,
|
|
266
|
-
getRoomAreaText: (
|
|
267
|
-
getRuleDistanceText: (
|
|
268
|
-
},
|
|
285
|
+
getRoomAreaText: (n) => (n / 1e6).toFixed(1) + "\u33A1",
|
|
286
|
+
getRuleDistanceText: (n) => n.toString()
|
|
287
|
+
}, r = e ? _(e, ["selector", "scale"]) : {}, d = l(l({}, i), r);
|
|
269
288
|
this.state = {
|
|
270
289
|
enabled: !0,
|
|
271
290
|
visible: !1,
|
|
@@ -274,13 +293,13 @@ class Ot extends k {
|
|
|
274
293
|
}
|
|
275
294
|
load(t, e, i = !0) {
|
|
276
295
|
return f(this, null, function* () {
|
|
277
|
-
function
|
|
296
|
+
function r(p) {
|
|
278
297
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
279
298
|
}
|
|
280
299
|
const d = t;
|
|
281
300
|
d && !d.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
282
|
-
const a = JSON.parse(JSON.stringify(t)),
|
|
283
|
-
this.data = yield b(
|
|
301
|
+
const a = JSON.parse(JSON.stringify(t)), n = r(a) ? a.data : a, u = this.data;
|
|
302
|
+
this.data = yield b(n), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
284
303
|
});
|
|
285
304
|
}
|
|
286
305
|
appendTo(t) {
|
|
@@ -300,9 +319,9 @@ class Ot extends k {
|
|
|
300
319
|
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
301
320
|
}
|
|
302
321
|
setState(t, e = {}) {
|
|
303
|
-
const i = this.state,
|
|
304
|
-
if (this.updateState(t,
|
|
305
|
-
const d = { userAction:
|
|
322
|
+
const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
|
|
323
|
+
if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
324
|
+
const d = { userAction: r };
|
|
306
325
|
t.visible ? this._show(d) : this._hide(d);
|
|
307
326
|
}
|
|
308
327
|
this.render();
|
|
@@ -316,8 +335,8 @@ class Ot extends k {
|
|
|
316
335
|
});
|
|
317
336
|
}
|
|
318
337
|
updateState(t, e) {
|
|
319
|
-
const i = this.state,
|
|
320
|
-
this.state = v(l(l({}, this.state), t), { config:
|
|
338
|
+
const i = this.state, r = t.config ? l(l({}, i.config), t.config) : i.config;
|
|
339
|
+
this.state = v(l(l({}, this.state), t), { config: r }), !x(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
321
340
|
}
|
|
322
341
|
initContainer() {
|
|
323
342
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
@@ -357,5 +376,5 @@ class Ot extends k {
|
|
|
357
376
|
}
|
|
358
377
|
}
|
|
359
378
|
export {
|
|
360
|
-
|
|
379
|
+
Yt as Controller
|
|
361
380
|
};
|
|
@@ -39,13 +39,32 @@ import "three";
|
|
|
39
39
|
import "../../base/BasePluginWithData.js";
|
|
40
40
|
import "../../base/BasePlugin.js";
|
|
41
41
|
import "../../shared-utils/Subscribe.js";
|
|
42
|
+
import "@realsee/five";
|
|
43
|
+
import "hammerjs";
|
|
44
|
+
import "@tweenjs/tween.js";
|
|
45
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
47
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
49
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
52
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
54
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
57
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
58
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
59
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
60
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
42
61
|
import "../utils/correctFiveState.js";
|
|
43
62
|
import "../utils/constant.js";
|
|
44
63
|
import "../../shared-utils/nearlyEqual.js";
|
|
45
64
|
import "../../shared-utils/five/changeMode.js";
|
|
46
65
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
47
|
-
const
|
|
66
|
+
const go = (o, r) => new t(o, r);
|
|
48
67
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
68
|
+
go as ModelFloorplanPlugin,
|
|
69
|
+
go as default
|
|
51
70
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var g = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var v = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var c = (r, i, t) => i in r ?
|
|
4
|
+
var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var c = (r, i, t) => i in r ? g(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
A.call(i, t) && c(r, t, i[t]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var t of f(i))
|
|
10
10
|
S.call(i, t) && c(r, t, i[t]);
|
|
11
11
|
return r;
|
|
12
|
-
}, b = (r, i) =>
|
|
12
|
+
}, b = (r, i) => w(r, v(i));
|
|
13
13
|
var o = (r, i, t) => (c(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
14
|
var l = (r, i, t) => new Promise((e, s) => {
|
|
15
15
|
var h = (n) => {
|
|
@@ -31,7 +31,7 @@ import D from "./Components/Main.js";
|
|
|
31
31
|
import { equal as _ } from "../../shared-utils/equal.js";
|
|
32
32
|
import { CAMERA_IMAGE as E } from "../Assets/camera.js";
|
|
33
33
|
import { Controller as y } from "../../base/BasePluginWithData.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as m, formatExtraObjects as C } from "../utils/formatData.js";
|
|
35
35
|
import "../../vendor/svelte/internal/index.js";
|
|
36
36
|
import "./Components/Camera.js";
|
|
37
37
|
import "../../shared-utils/throttle.js";
|
|
@@ -48,8 +48,28 @@ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
|
48
48
|
import "../../shared-utils/isTruelyObject.js";
|
|
49
49
|
import "../../base/BasePlugin.js";
|
|
50
50
|
import "../../shared-utils/Subscribe.js";
|
|
51
|
+
import "@realsee/five";
|
|
52
|
+
import "hammerjs";
|
|
53
|
+
import "three";
|
|
54
|
+
import "@tweenjs/tween.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
57
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
60
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
61
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
62
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
63
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
64
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
65
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
67
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
68
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
69
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
70
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
51
71
|
import "../Assets/floorplanExtraObject.js";
|
|
52
|
-
class
|
|
72
|
+
class mt extends y {
|
|
53
73
|
constructor(t, e) {
|
|
54
74
|
super(t);
|
|
55
75
|
o(this, "name", "panoFloorplanRadarPlugin");
|
|
@@ -90,7 +110,7 @@ class V extends y {
|
|
|
90
110
|
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
91
111
|
}
|
|
92
112
|
const a = JSON.parse(JSON.stringify(t)), u = h(a) ? a.data : a, n = this.data;
|
|
93
|
-
this.data = yield
|
|
113
|
+
this.data = yield m(u), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, s), this.render();
|
|
94
114
|
});
|
|
95
115
|
}
|
|
96
116
|
show() {
|
|
@@ -143,7 +163,7 @@ class V extends y {
|
|
|
143
163
|
}
|
|
144
164
|
formatData(t) {
|
|
145
165
|
return l(this, null, function* () {
|
|
146
|
-
return yield
|
|
166
|
+
return yield m(t.data);
|
|
147
167
|
});
|
|
148
168
|
}
|
|
149
169
|
_enable(t) {
|
|
@@ -186,5 +206,5 @@ class V extends y {
|
|
|
186
206
|
}
|
|
187
207
|
}
|
|
188
208
|
export {
|
|
189
|
-
|
|
209
|
+
mt as Controller
|
|
190
210
|
};
|
|
@@ -19,10 +19,30 @@ import "../../shared-utils/isTruelyObject.js";
|
|
|
19
19
|
import "../../base/BasePluginWithData.js";
|
|
20
20
|
import "../../base/BasePlugin.js";
|
|
21
21
|
import "../../shared-utils/Subscribe.js";
|
|
22
|
+
import "@realsee/five";
|
|
23
|
+
import "hammerjs";
|
|
24
|
+
import "three";
|
|
25
|
+
import "@tweenjs/tween.js";
|
|
26
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
27
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
28
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
29
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
30
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
31
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
32
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
34
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
36
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
37
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
38
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
39
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
40
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
41
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
22
42
|
import "../utils/formatData.js";
|
|
23
43
|
import "../Assets/floorplanExtraObject.js";
|
|
24
|
-
const
|
|
44
|
+
const U = (o, r) => new t(o, r);
|
|
25
45
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
46
|
+
U as PanoFloorplanRadarPlugin,
|
|
47
|
+
U as default
|
|
28
48
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var E = Object.defineProperty, w = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var f = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var c = (h, n, t) => n in h ? E(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, u = (h, n) => {
|
|
6
6
|
for (var t in n || (n = {}))
|
|
7
|
-
A.call(n, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
C.call(n, t) &&
|
|
7
|
+
A.call(n, t) && c(h, t, n[t]);
|
|
8
|
+
if (f)
|
|
9
|
+
for (var t of f(n))
|
|
10
|
+
C.call(n, t) && c(h, t, n[t]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var i = (h, n, t) => (
|
|
14
|
-
var
|
|
12
|
+
}, m = (h, n) => w(h, F(n));
|
|
13
|
+
var i = (h, n, t) => (c(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var p = (h, n, t) => new Promise((e, o) => {
|
|
15
15
|
var s = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
r(t.next(d));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
o(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
r(t.throw(d));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
o(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, r = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
|
|
28
|
+
r((t = t.apply(h, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
31
|
import { equal as S } from "../../shared-utils/equal.js";
|
|
@@ -68,8 +68,27 @@ import "../Assets/floorplanExtraObject.js";
|
|
|
68
68
|
import "../../shared-utils/tap.js";
|
|
69
69
|
import "../../base/BasePlugin.js";
|
|
70
70
|
import "../../shared-utils/Subscribe.js";
|
|
71
|
+
import "@realsee/five";
|
|
72
|
+
import "hammerjs";
|
|
73
|
+
import "@tweenjs/tween.js";
|
|
74
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
75
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
76
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
77
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
78
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
79
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
80
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
81
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
82
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
83
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
84
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
85
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
86
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
87
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
88
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
89
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
71
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
72
|
-
class
|
|
91
|
+
class Nt extends L {
|
|
73
92
|
constructor(t, e) {
|
|
74
93
|
super(t);
|
|
75
94
|
i(this, "name", "topviewFloorplanPlugin");
|
|
@@ -89,7 +108,7 @@ class At extends L {
|
|
|
89
108
|
i(this, "updateSize", () => {
|
|
90
109
|
if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
|
|
91
110
|
return;
|
|
92
|
-
const { min: t, max: e } = this.data.bounding, o = e.x - t.x, s = e.y - t.y,
|
|
111
|
+
const { min: t, max: e } = this.data.bounding, o = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = M(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(o * r), l = Math.ceil(s * r);
|
|
93
112
|
this.size.width === d && this.size.height === l || (this.container.style.width = d + "px", this.container.style.height = l + "px", this.size = { width: d, height: l });
|
|
94
113
|
});
|
|
95
114
|
i(this, "dispose", () => {
|
|
@@ -165,40 +184,40 @@ class At extends L {
|
|
|
165
184
|
attachedTo: _.BOUNDING_CENTER,
|
|
166
185
|
getLabelElement: void 0,
|
|
167
186
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
168
|
-
getRoomAreaText: (
|
|
169
|
-
getRuleDistanceText: (
|
|
170
|
-
}, s = e ? I(e, ["selector", "scale"]) : {},
|
|
187
|
+
getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "\u33A1",
|
|
188
|
+
getRuleDistanceText: (r) => r.toString()
|
|
189
|
+
}, s = e ? I(e, ["selector", "scale"]) : {}, a = u(u({}, o), s);
|
|
171
190
|
this.state = {
|
|
172
191
|
enabled: !0,
|
|
173
192
|
visible: !1,
|
|
174
|
-
config:
|
|
193
|
+
config: a
|
|
175
194
|
}, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
176
195
|
}
|
|
177
196
|
load(t, e, o = !0) {
|
|
178
|
-
return
|
|
197
|
+
return p(this, null, function* () {
|
|
179
198
|
function s(b) {
|
|
180
199
|
return Object.prototype.hasOwnProperty.apply(b, ["version"]);
|
|
181
200
|
}
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
const
|
|
201
|
+
const a = t;
|
|
202
|
+
a && !a.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
203
|
+
const r = JSON.parse(JSON.stringify(t)), d = s(r) ? r.data : r, l = this.data;
|
|
185
204
|
this.data = yield v(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, o), this.render();
|
|
186
205
|
});
|
|
187
206
|
}
|
|
188
207
|
updatePosition() {
|
|
189
|
-
var
|
|
190
|
-
const t = P(this.five, this.floorIndex, this.state.config.attachedTo), e = (
|
|
208
|
+
var r;
|
|
209
|
+
const t = P(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.five.model) == null ? void 0 : r.bounding.getCenter(new x.Vector3()).setY(t);
|
|
191
210
|
if (!e)
|
|
192
211
|
return;
|
|
193
|
-
const o = e.clone().project(this.five.camera), s = (o.x + 1) / 2,
|
|
194
|
-
this.container.style.left = s * 100 + "%", this.container.style.top =
|
|
212
|
+
const o = e.clone().project(this.five.camera), s = (o.x + 1) / 2, a = -(o.y - 1) / 2;
|
|
213
|
+
this.container.style.left = s * 100 + "%", this.container.style.top = a * 100 + "%";
|
|
195
214
|
}
|
|
196
215
|
appendTo(t) {
|
|
197
216
|
if (this.wrapper = t, !!this.state.enabled)
|
|
198
217
|
return t.appendChild(this.container), this.render(), this;
|
|
199
218
|
}
|
|
200
219
|
show() {
|
|
201
|
-
return
|
|
220
|
+
return p(this, arguments, function* (t = {}) {
|
|
202
221
|
if (this.state.visible)
|
|
203
222
|
return;
|
|
204
223
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -206,7 +225,7 @@ class At extends L {
|
|
|
206
225
|
});
|
|
207
226
|
}
|
|
208
227
|
hide() {
|
|
209
|
-
return
|
|
228
|
+
return p(this, arguments, function* (t = {}) {
|
|
210
229
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
211
230
|
return;
|
|
212
231
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -228,24 +247,24 @@ class At extends L {
|
|
|
228
247
|
setState(t, e = {}) {
|
|
229
248
|
const o = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
|
|
230
249
|
if (this.updateState(t, s), t.enabled !== void 0 && o.enabled !== t.enabled) {
|
|
231
|
-
const
|
|
232
|
-
t.enabled ? this._enable(
|
|
250
|
+
const a = { userAction: s };
|
|
251
|
+
t.enabled ? this._enable(a) : this._disable(a);
|
|
233
252
|
}
|
|
234
253
|
if (t.visible !== void 0 && o.visible !== t.visible) {
|
|
235
|
-
const
|
|
236
|
-
t.visible ? this._show(
|
|
254
|
+
const a = { userAction: s };
|
|
255
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
237
256
|
}
|
|
238
257
|
}
|
|
239
258
|
changeConfigs(t, e = !0) {
|
|
240
259
|
this.updateState({ config: t }, e), this.render();
|
|
241
260
|
}
|
|
242
261
|
formatData(t) {
|
|
243
|
-
return
|
|
262
|
+
return p(this, null, function* () {
|
|
244
263
|
return yield v(t.data);
|
|
245
264
|
});
|
|
246
265
|
}
|
|
247
266
|
_show(t) {
|
|
248
|
-
return
|
|
267
|
+
return p(this, null, function* () {
|
|
249
268
|
if (!this.state.enabled)
|
|
250
269
|
return;
|
|
251
270
|
this.isHiddenByHideFunc = !1;
|
|
@@ -256,7 +275,7 @@ class At extends L {
|
|
|
256
275
|
});
|
|
257
276
|
}
|
|
258
277
|
_hide(t) {
|
|
259
|
-
return
|
|
278
|
+
return p(this, null, function* () {
|
|
260
279
|
if (!this.state.enabled)
|
|
261
280
|
return;
|
|
262
281
|
const { userAction: e } = t;
|
|
@@ -271,7 +290,7 @@ class At extends L {
|
|
|
271
290
|
}
|
|
272
291
|
updateState(t, e) {
|
|
273
292
|
const o = this.state, s = t.config ? u(u({}, o.config), t.config) : o.config;
|
|
274
|
-
this.state =
|
|
293
|
+
this.state = m(u(u({}, this.state), t), { config: s }), !S(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: e });
|
|
275
294
|
}
|
|
276
295
|
addEventListener() {
|
|
277
296
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -297,7 +316,7 @@ class At extends L {
|
|
|
297
316
|
render(t) {
|
|
298
317
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
299
318
|
return;
|
|
300
|
-
const e =
|
|
319
|
+
const e = m(u({}, this.state.config), {
|
|
301
320
|
visible: this.state.visible,
|
|
302
321
|
duration: t != null ? t : 0,
|
|
303
322
|
panoIndex: this.panoIndex,
|
|
@@ -312,5 +331,5 @@ class At extends L {
|
|
|
312
331
|
}
|
|
313
332
|
}
|
|
314
333
|
export {
|
|
315
|
-
|
|
334
|
+
Nt as Controller
|
|
316
335
|
};
|
|
@@ -37,12 +37,31 @@ import "../constant.js";
|
|
|
37
37
|
import "../../base/BasePluginWithData.js";
|
|
38
38
|
import "../../base/BasePlugin.js";
|
|
39
39
|
import "../../shared-utils/Subscribe.js";
|
|
40
|
+
import "@realsee/five";
|
|
41
|
+
import "hammerjs";
|
|
42
|
+
import "@tweenjs/tween.js";
|
|
43
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
45
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
48
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
49
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
52
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
56
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
57
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
58
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
40
59
|
import "../../shared-utils/five/changeMode.js";
|
|
41
60
|
import "../../shared-utils/nearlyEqual.js";
|
|
42
61
|
import "../../shared-utils/getPxmm.js";
|
|
43
62
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
44
|
-
const
|
|
63
|
+
const fo = (o, r) => new t(o, r);
|
|
45
64
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
65
|
+
fo as TopviewFloorplanPlugin,
|
|
66
|
+
fo as default
|
|
48
67
|
};
|
package/libs/floorplan/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import "../vendor/svelte/internal/index.js";
|
|
2
2
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
3
3
|
import "three";
|
|
4
|
+
import "@realsee/five";
|
|
5
|
+
import "hammerjs";
|
|
6
|
+
import "@tweenjs/tween.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
9
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|