@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
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var E = Object.getOwnPropertySymbols;
|
|
3
3
|
var F = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var C = (
|
|
4
|
+
var C = (s, o, e) => o in s ? R(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, b = (s, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
F.call(o, e) && C(
|
|
6
|
+
F.call(o, e) && C(s, e, o[e]);
|
|
7
7
|
if (E)
|
|
8
8
|
for (var e of E(o))
|
|
9
|
-
P.call(o, e) && C(
|
|
10
|
-
return
|
|
9
|
+
P.call(o, e) && C(s, e, o[e]);
|
|
10
|
+
return s;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var H = (
|
|
14
|
-
var
|
|
12
|
+
var m = (s, o, e) => (C(s, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var H = (s, o, e) => new Promise((t, r) => {
|
|
14
|
+
var i = (p) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
c(e.next(p));
|
|
17
17
|
} catch (f) {
|
|
18
18
|
r(f);
|
|
19
19
|
}
|
|
20
20
|
}, a = (p) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
c(e.throw(p));
|
|
23
23
|
} catch (f) {
|
|
24
24
|
r(f);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, c = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(i, a);
|
|
27
|
+
c((e = e.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Subscribe as j } from "@realsee/five";
|
|
30
30
|
import { Controller as y } from "../base/BasePlugin.js";
|
|
@@ -45,6 +45,11 @@ import { BoundingBoxController as q } from "../shared-utils/Object3DHelper/Contr
|
|
|
45
45
|
import { ScaleHelper as z } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
46
46
|
import { ScaleController as A } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
47
47
|
import "../shared-utils/Subscribe.js";
|
|
48
|
+
import "hammerjs";
|
|
49
|
+
import "@tweenjs/tween.js";
|
|
50
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
51
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
52
|
+
import "../shared-utils/animationFrame/index.js";
|
|
48
53
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
49
54
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
50
55
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
@@ -81,18 +86,18 @@ const S = "Object3DHelperPlugin", w = S, J = () => {
|
|
|
81
86
|
}, Q = () => {
|
|
82
87
|
console.error(`${w} is disabled`);
|
|
83
88
|
};
|
|
84
|
-
class
|
|
89
|
+
class Te extends y {
|
|
85
90
|
constructor(e) {
|
|
86
91
|
super(e);
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
m(this, "name", S);
|
|
93
|
+
m(this, "state", {
|
|
89
94
|
visible: !0,
|
|
90
95
|
enabled: !0,
|
|
91
96
|
disposed: !1
|
|
92
97
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
98
|
+
m(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
99
|
+
m(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
100
|
+
m(this, "css3DRender");
|
|
96
101
|
this.five = e, this.css3DRender = new U(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${S.toUpperCase()}_DEBUG__`]: this });
|
|
97
102
|
}
|
|
98
103
|
show(e) {
|
|
@@ -133,14 +138,14 @@ class ze extends y {
|
|
|
133
138
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
134
139
|
return;
|
|
135
140
|
}
|
|
136
|
-
const r = new _(),
|
|
141
|
+
const r = new _(), i = [], a = (g = this.five.getElement()) == null ? void 0 : g.parentElement, c = this.five.camera, { moveHelper: p = !0, rotateHelper: f = !0, scaleHelper: O = !0, boundingBoxHelper: B = !1 } = t, u = new j();
|
|
137
142
|
if (p) {
|
|
138
143
|
const n = new k(e), l = this.getConfig(t.moveHelper), d = new v(this.five, L, e, n, l, u);
|
|
139
|
-
r.addControllers({ moveController: d.helperController }),
|
|
144
|
+
r.addControllers({ moveController: d.helperController }), i.push(() => d.dispose());
|
|
140
145
|
}
|
|
141
146
|
if (f) {
|
|
142
147
|
const n = this.getConfig(t.rotateHelper), l = new x(e, b({ container: a }, n)), d = new v(this.five, $, e, l, n, u);
|
|
143
|
-
r.addControllers({ rotateController: d.helperController }),
|
|
148
|
+
r.addControllers({ rotateController: d.helperController }), i.push(() => d.dispose());
|
|
144
149
|
}
|
|
145
150
|
if (B) {
|
|
146
151
|
const n = new W(e), l = new v(this.five, q, e, n, void 0, u);
|
|
@@ -148,8 +153,8 @@ class ze extends y {
|
|
|
148
153
|
}
|
|
149
154
|
if (O)
|
|
150
155
|
if (e.isCSS3DObjectPlus && a) {
|
|
151
|
-
const n = new I(e, a,
|
|
152
|
-
r.addControllers({ scaleController: l.helperController }),
|
|
156
|
+
const n = new I(e, a, c, this.five.scene), l = new v(this.five, G, e, n, void 0, u);
|
|
157
|
+
r.addControllers({ scaleController: l.helperController }), i.push(() => l.dispose()), N(this.five).then(() => {
|
|
153
158
|
var d, D;
|
|
154
159
|
if (e.isCSS3DObjectPlus) {
|
|
155
160
|
const h = e;
|
|
@@ -161,9 +166,9 @@ class ze extends y {
|
|
|
161
166
|
});
|
|
162
167
|
} else {
|
|
163
168
|
const n = new z(e), l = new v(this.five, A, e, n, void 0, u);
|
|
164
|
-
r.addControllers({ scaleController: l.helperController }),
|
|
169
|
+
r.addControllers({ scaleController: l.helperController }), i.push(() => l.dispose());
|
|
165
170
|
}
|
|
166
|
-
return this.objectHelperMap.set(e, { helper: r, disposers:
|
|
171
|
+
return this.objectHelperMap.set(e, { helper: r, disposers: i }), r.controllers;
|
|
167
172
|
}
|
|
168
173
|
removeObject3DHelper(e) {
|
|
169
174
|
if (!this.objectHelperMap.has(e))
|
|
@@ -171,10 +176,10 @@ class ze extends y {
|
|
|
171
176
|
const { helper: t, disposers: r } = this.objectHelperMap.get(e);
|
|
172
177
|
if (!!t) {
|
|
173
178
|
if (e.isCSS3DObjectPlus) {
|
|
174
|
-
const
|
|
175
|
-
a && a.add(
|
|
179
|
+
const i = e, a = this.css3DObjectParentMap.get(i);
|
|
180
|
+
a && a.add(i), this.css3DRender.render(this.five.camera);
|
|
176
181
|
}
|
|
177
|
-
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((
|
|
182
|
+
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((i) => i == null ? void 0 : i());
|
|
178
183
|
}
|
|
179
184
|
}
|
|
180
185
|
handleEnable(e, t = !0) {
|
|
@@ -204,6 +209,6 @@ class ze extends y {
|
|
|
204
209
|
}
|
|
205
210
|
}
|
|
206
211
|
export {
|
|
207
|
-
|
|
212
|
+
Te as Object3DHelperController,
|
|
208
213
|
w as PLUGIN
|
|
209
214
|
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import "three";
|
|
2
2
|
import "../shared-utils/threex/domevents/index.js";
|
|
3
3
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
4
|
-
import { Object3DHelperController as
|
|
4
|
+
import { Object3DHelperController as ir, PLUGIN as er } from "./Controller.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "../base/BasePlugin.js";
|
|
7
7
|
import "../shared-utils/Subscribe.js";
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
11
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
12
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
13
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
8
|
+
import "hammerjs";
|
|
9
|
+
import "@tweenjs/tween.js";
|
|
14
10
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
15
11
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
16
12
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -23,6 +19,16 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
23
19
|
import "../shared-utils/three/centerPoint.js";
|
|
24
20
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
25
21
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
24
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
25
|
+
import "../shared-utils/animationFrame/index.js";
|
|
26
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
27
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
28
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
29
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
30
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
31
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
26
32
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
27
33
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
28
34
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
@@ -44,14 +50,13 @@ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
|
44
50
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
45
51
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
46
52
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
47
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
53
|
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
49
54
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
50
55
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
51
|
-
const
|
|
56
|
+
const tr = (r) => new o(r);
|
|
52
57
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
ir as Object3DHelperController,
|
|
59
|
+
tr as Object3DHelperPlugin,
|
|
60
|
+
er as PLUGIN,
|
|
61
|
+
tr as default
|
|
57
62
|
};
|
|
@@ -35,8 +35,8 @@ import { CSS3DRenderPlugin as F } from "../CSS3DRenderPlugin/index.js";
|
|
|
35
35
|
import { tweenProgress as W } from "../shared-utils/animationFrame/BetterTween.js";
|
|
36
36
|
import "../base/BasePlugin.js";
|
|
37
37
|
import "../shared-utils/Subscribe.js";
|
|
38
|
-
import "
|
|
39
|
-
import "
|
|
38
|
+
import "hammerjs";
|
|
39
|
+
import "@tweenjs/tween.js";
|
|
40
40
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
41
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
42
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -49,12 +49,14 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
49
49
|
import "../shared-utils/three/centerPoint.js";
|
|
50
50
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
52
|
-
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
53
52
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
54
|
-
import "
|
|
53
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
54
|
+
import "./Assets/roomInfoIcon.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
55
57
|
import "../shared-utils/animationFrame/index.js";
|
|
56
58
|
const v = { userAction: !0 };
|
|
57
|
-
class
|
|
59
|
+
class re extends A {
|
|
58
60
|
constructor(e, t) {
|
|
59
61
|
super(e);
|
|
60
62
|
i(this, "state", {
|
|
@@ -235,5 +237,5 @@ class se extends A {
|
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
239
|
export {
|
|
238
|
-
|
|
240
|
+
re as PanoCompassController
|
|
239
241
|
};
|
|
@@ -4,11 +4,8 @@ import "@realsee/five";
|
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "../shared-utils/three/loadTexture.js";
|
|
10
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
11
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
7
|
+
import "hammerjs";
|
|
8
|
+
import "@tweenjs/tween.js";
|
|
12
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
13
10
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
14
11
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -21,13 +18,18 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
21
18
|
import "../shared-utils/three/centerPoint.js";
|
|
22
19
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
23
20
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
25
21
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
26
23
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
27
|
-
import "@tweenjs/tween.js";
|
|
28
24
|
import "../shared-utils/animationFrame/index.js";
|
|
29
|
-
|
|
25
|
+
import "./getRoomInfoInstance.js";
|
|
26
|
+
import "./Assets/roomInfoIcon.js";
|
|
27
|
+
import "../shared-utils/three/loadTexture.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
30
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
31
|
+
const G = (o, r) => new t(o, r);
|
|
30
32
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
G as PanoCompassPlugin,
|
|
34
|
+
G as default
|
|
33
35
|
};
|
|
@@ -1,60 +1,79 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var l = Object.defineProperty, m = Object.defineProperties;
|
|
2
|
+
var d = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var o = (i, e, t) => e in i ? l(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import { Five as
|
|
15
|
-
import { Controller as
|
|
7
|
+
u.call(e, t) && o(i, t, e[t]);
|
|
8
|
+
if (h)
|
|
9
|
+
for (var t of h(e))
|
|
10
|
+
b.call(e, t) && o(i, t, e[t]);
|
|
11
|
+
return i;
|
|
12
|
+
}, r = (i, e) => m(i, d(e));
|
|
13
|
+
var a = (i, e, t) => (o(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import { Five as v } from "@realsee/five";
|
|
15
|
+
import { Controller as c } from "../base/BasePlugin.js";
|
|
16
16
|
import "../shared-utils/Subscribe.js";
|
|
17
|
-
|
|
17
|
+
import "hammerjs";
|
|
18
|
+
import "three";
|
|
19
|
+
import "@tweenjs/tween.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
22
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
29
|
+
import "../shared-utils/three/centerPoint.js";
|
|
30
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
32
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
33
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
34
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
35
|
+
import "../shared-utils/animationFrame/index.js";
|
|
36
|
+
class K extends c {
|
|
18
37
|
constructor(t) {
|
|
19
38
|
super(t);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
39
|
+
a(this, "state");
|
|
40
|
+
a(this, "container");
|
|
41
|
+
a(this, "enabled");
|
|
23
42
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
24
43
|
}
|
|
25
44
|
enable(t) {
|
|
26
|
-
this.enabled = !0, this.updateState(
|
|
45
|
+
this.enabled = !0, this.updateState(r(s({}, t), { userAction: !0 }));
|
|
27
46
|
}
|
|
28
47
|
disable(t) {
|
|
29
|
-
this.enabled = !1, this.updateState(
|
|
48
|
+
this.enabled = !1, this.updateState(r(s({}, t), { userAction: !0 }));
|
|
30
49
|
}
|
|
31
50
|
show(t) {
|
|
32
51
|
if (!!this.state.enabled)
|
|
33
|
-
return this.setState(
|
|
52
|
+
return this.setState(r(s({}, this.state), { visible: !0 }), t), Promise.resolve();
|
|
34
53
|
}
|
|
35
54
|
hide(t) {
|
|
36
55
|
if (!!this.state.enabled)
|
|
37
|
-
return this.setState(
|
|
56
|
+
return this.setState(r(s({}, this.state), { visible: !1 }), t), Promise.resolve();
|
|
38
57
|
}
|
|
39
58
|
dispose() {
|
|
40
59
|
this.container.remove();
|
|
41
60
|
}
|
|
42
|
-
setState(t,
|
|
61
|
+
setState(t, n) {
|
|
43
62
|
if (!this.enabled)
|
|
44
63
|
return;
|
|
45
|
-
const
|
|
46
|
-
this.state =
|
|
64
|
+
const p = s({}, this.state);
|
|
65
|
+
this.state = s(s(s({}, this.state), t), n), this.stateChangedCallback(p, n);
|
|
47
66
|
}
|
|
48
67
|
get visible() {
|
|
49
|
-
return this.five.state.mode ===
|
|
68
|
+
return this.five.state.mode === v.Mode.Panorama;
|
|
50
69
|
}
|
|
51
70
|
appendTo(t) {
|
|
52
71
|
!this.enabled || (this.container = t, this.render());
|
|
53
72
|
}
|
|
54
73
|
updateState(t) {
|
|
55
|
-
this.setState(
|
|
74
|
+
this.setState(r(s({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
|
|
56
75
|
}
|
|
57
76
|
}
|
|
58
77
|
export {
|
|
59
|
-
|
|
78
|
+
K as BasePanoPluginController
|
|
60
79
|
};
|
|
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, B = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var T = (
|
|
5
|
+
var T = (p, a, e) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[a] = e, H = (p, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
G.call(a, e) && T(
|
|
7
|
+
G.call(a, e) && T(p, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
N.call(a, e) && T(
|
|
11
|
-
return
|
|
12
|
-
}, W = (
|
|
13
|
-
var r = (
|
|
10
|
+
N.call(a, e) && T(p, e, a[e]);
|
|
11
|
+
return p;
|
|
12
|
+
}, W = (p, a) => B(p, U(a));
|
|
13
|
+
var r = (p, a, e) => (T(p, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
|
|
15
15
|
import { BasePanoPluginController as q } from "./BaseController.js";
|
|
16
16
|
import X from "./DoorLabelItem.js";
|
|
@@ -18,10 +18,28 @@ import { getCameraToward as Y, isTwoRectOverlaped as Z, getDistance as J, getTow
|
|
|
18
18
|
import "@realsee/five";
|
|
19
19
|
import "../base/BasePlugin.js";
|
|
20
20
|
import "../shared-utils/Subscribe.js";
|
|
21
|
+
import "hammerjs";
|
|
22
|
+
import "@tweenjs/tween.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
25
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
30
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
|
+
import "../shared-utils/three/centerPoint.js";
|
|
33
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
35
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
36
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
37
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
38
|
+
import "../shared-utils/animationFrame/index.js";
|
|
21
39
|
import "../vendor/svelte/internal/index.js";
|
|
22
40
|
import "classnames";
|
|
23
41
|
const ee = { userAction: !0 };
|
|
24
|
-
class
|
|
42
|
+
class Oe extends q {
|
|
25
43
|
constructor(e) {
|
|
26
44
|
super(e);
|
|
27
45
|
r(this, "MinVisibledistance", 1.8);
|
|
@@ -74,10 +92,10 @@ class fe extends q {
|
|
|
74
92
|
const i = s.position.clone(), t = i.distanceTo(l);
|
|
75
93
|
if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
|
|
76
94
|
return;
|
|
77
|
-
const c = new Q(),
|
|
78
|
-
c.set(l,
|
|
79
|
-
const [
|
|
80
|
-
|
|
95
|
+
const c = new Q(), v = i.clone().sub(l).normalize();
|
|
96
|
+
c.set(l, v);
|
|
97
|
+
const [b] = this.five.model.intersectRaycaster(c);
|
|
98
|
+
b && b.distance + 0.1 < t || o.push(f);
|
|
81
99
|
}), this.visibleLabelMap.set(e, o), o;
|
|
82
100
|
}
|
|
83
101
|
})();
|
|
@@ -86,7 +104,7 @@ class fe extends q {
|
|
|
86
104
|
}), this.fixDoorPosition();
|
|
87
105
|
});
|
|
88
106
|
r(this, "fixDoorPosition", () => {
|
|
89
|
-
var i, t, c,
|
|
107
|
+
var i, t, c, v, b, y, g, w, L, E, _, S;
|
|
90
108
|
const { panoIndex: e, camera: n } = this.five;
|
|
91
109
|
if (e === null)
|
|
92
110
|
return;
|
|
@@ -110,7 +128,7 @@ class fe extends q {
|
|
|
110
128
|
left: l * M / 100,
|
|
111
129
|
top: h * k / 100,
|
|
112
130
|
width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
|
|
113
|
-
height: (y = (
|
|
131
|
+
height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
|
|
114
132
|
}, F = {
|
|
115
133
|
left: l * O / 100,
|
|
116
134
|
top: h * P / 100,
|
|
@@ -137,8 +155,8 @@ class fe extends q {
|
|
|
137
155
|
if (o > 0) {
|
|
138
156
|
const i = new V(0, 0, -1), t = h.clone(), c = new j();
|
|
139
157
|
c.setFromUnitVectors(i, t);
|
|
140
|
-
const
|
|
141
|
-
|
|
158
|
+
const v = new z();
|
|
159
|
+
v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
|
|
142
160
|
}
|
|
143
161
|
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
|
|
144
162
|
}
|
|
@@ -152,20 +170,20 @@ class fe extends q {
|
|
|
152
170
|
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((i) => !!(i && i.name === h.name)), s = this.five.work.observers.filter((i, t) => !!h.observer_indexs.find((c) => c === t));
|
|
153
171
|
o && o.forEach((i) => {
|
|
154
172
|
const t = i.position;
|
|
155
|
-
let c = 1 / 0,
|
|
173
|
+
let c = 1 / 0, v;
|
|
156
174
|
s.forEach((y) => {
|
|
157
175
|
const g = y.standingPosition, w = {
|
|
158
176
|
x: g.x,
|
|
159
177
|
y: g.y,
|
|
160
178
|
z: g.z
|
|
161
179
|
}, L = J(t, w);
|
|
162
|
-
L < c && (c = L,
|
|
163
|
-
}),
|
|
164
|
-
const
|
|
165
|
-
|
|
180
|
+
L < c && (c = L, v = w);
|
|
181
|
+
}), v && (t.y = v.y + 0.01);
|
|
182
|
+
const b = new V(t.x, t.y, t.z);
|
|
183
|
+
b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
|
|
166
184
|
roomName: h.name,
|
|
167
185
|
name: i.name,
|
|
168
|
-
position:
|
|
186
|
+
position: b,
|
|
169
187
|
toward: K(i.rad)
|
|
170
188
|
});
|
|
171
189
|
});
|
|
@@ -220,5 +238,5 @@ class fe extends q {
|
|
|
220
238
|
}
|
|
221
239
|
}
|
|
222
240
|
export {
|
|
223
|
-
|
|
241
|
+
Oe as PanoDoorLabelPluginController
|
|
224
242
|
};
|
|
@@ -4,12 +4,30 @@ import "./BaseController.js";
|
|
|
4
4
|
import "@realsee/five";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
7
|
+
import "hammerjs";
|
|
8
|
+
import "@tweenjs/tween.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
+
import "../shared-utils/three/centerPoint.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
23
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import "../shared-utils/animationFrame/index.js";
|
|
7
25
|
import "./DoorLabelItem.js";
|
|
8
26
|
import "../vendor/svelte/internal/index.js";
|
|
9
27
|
import "classnames";
|
|
10
28
|
import "./utils.js";
|
|
11
|
-
const
|
|
29
|
+
const A = (o) => new r(o);
|
|
12
30
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
31
|
+
A as PanoDoorLabelPlugin,
|
|
32
|
+
A as default
|
|
15
33
|
};
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import "@realsee/five";
|
|
2
|
+
import "hammerjs";
|
|
3
|
+
import "three";
|
|
4
|
+
import "@tweenjs/tween.js";
|
|
5
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
6
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
7
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
8
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
9
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
11
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
12
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
13
|
+
import "../../shared-utils/Subscribe.js";
|
|
14
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
15
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
16
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
17
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
18
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
19
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
@@ -21,10 +21,15 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
23
23
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
24
|
+
import "hammerjs";
|
|
25
|
+
import "@tweenjs/tween.js";
|
|
26
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
27
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
28
|
+
import "../shared-utils/animationFrame/index.js";
|
|
24
29
|
import "../vendor/svelte/internal/index.js";
|
|
25
30
|
import "./store.js";
|
|
26
31
|
import "../vendor/svelte/store/index.js";
|
|
27
|
-
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
32
|
+
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", to = (n, s) => {
|
|
28
33
|
var k, z, q, B, G, J, K, Q;
|
|
29
34
|
let j = s == null ? void 0 : s.container, y = 1.4;
|
|
30
35
|
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, f = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
|
|
@@ -261,6 +266,6 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
261
266
|
};
|
|
262
267
|
};
|
|
263
268
|
export {
|
|
264
|
-
|
|
265
|
-
|
|
269
|
+
to as PanoSpatialTagPlugin,
|
|
270
|
+
to as default
|
|
266
271
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Plugin.js";
|
|
2
|
-
import { PanoSpatialTagPlugin as
|
|
2
|
+
import { PanoSpatialTagPlugin as G, PanoSpatialTagPlugin as H } from "./Plugin.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "@realsee/five";
|
|
5
5
|
import "../CSS3DRenderPlugin/index.js";
|
|
@@ -19,6 +19,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
19
19
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
+
import "hammerjs";
|
|
23
|
+
import "@tweenjs/tween.js";
|
|
24
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
25
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
26
|
+
import "../shared-utils/animationFrame/index.js";
|
|
22
27
|
import "./Components/origins.js";
|
|
23
28
|
import "../vendor/svelte/internal/index.js";
|
|
24
29
|
import "./store.js";
|
|
@@ -27,6 +32,6 @@ import "./Components/tag.js";
|
|
|
27
32
|
import "./style.js";
|
|
28
33
|
import "../shared-utils/tinyEJSrender.js";
|
|
29
34
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
G as PanoSpatialTagPlugin,
|
|
36
|
+
H as default
|
|
32
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent as te, init as le, safe_not_equal as ie, append_styles as se, element as p, create_component as re, space as T, text as L, attr as g, set_style as C, null_to_empty as D, toggle_class as Y, insert as k, mount_component as ne, append as d, set_data as S, transition_in as ae, transition_out as oe, detach as y, destroy_component as ce, src_url_equal as F, add_render_callback as fe, add_resize_listener as me, destroy_each as j } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import "@realsee/five";
|
|
2
3
|
import "hammerjs";
|
|
3
4
|
import "three";
|
|
4
|
-
import "@realsee/five";
|
|
5
5
|
import "@tweenjs/tween.js";
|
|
6
6
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
7
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
@@ -64,8 +64,8 @@ import "../../../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
64
64
|
import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
65
65
|
import "../../../vendor/svelte-carousel/src/utils/interval.js";
|
|
66
66
|
import "../Common/MediaItem.js";
|
|
67
|
-
import "hammerjs";
|
|
68
67
|
import "@realsee/five";
|
|
68
|
+
import "hammerjs";
|
|
69
69
|
import "@tweenjs/tween.js";
|
|
70
70
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
71
71
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|