@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.10
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/README.md +3 -12
- package/dist/CSS3DRenderPlugin/index..js +88 -0
- package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
- package/dist/CameraMovementPlugin/index..js +11 -0
- package/dist/CameraMovementPlugin/index.cjs.js +1 -0
- package/dist/CruisePlugin/index..js +527 -0
- package/dist/CruisePlugin/index.cjs.js +1 -0
- package/dist/GuideLinePlugin/index..js +214 -0
- package/dist/GuideLinePlugin/index.cjs.js +1 -0
- package/dist/ItemLabelPlugin/index..js +508 -0
- package/dist/ItemLabelPlugin/index.cjs.js +10 -0
- package/dist/ModelChassisCompassPlugin/index..js +9 -0
- package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
- package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
- package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
- package/dist/ModelItemLabelPlugin/index..js +334 -0
- package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
- package/dist/ModelRoomLabelPlugin/index..js +274 -0
- package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
- package/dist/ModelTVVideoPlugin/index..js +12 -0
- package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
- package/dist/ModelViewPlugin/index..js +8 -0
- package/dist/ModelViewPlugin/index.cjs.js +1 -0
- package/dist/Object3DHelperPlugin/index..js +1414 -0
- package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
- package/dist/PanoCompassPlugin/index..js +258 -0
- package/dist/PanoCompassPlugin/index.cjs.js +1 -0
- package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
- package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
- package/dist/PanoDoorLabelPlugin/index..js +340 -0
- package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
- package/dist/PanoMeasurePlugin/index..js +15 -0
- package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
- package/dist/PanoRulerPlugin/index..js +9 -0
- package/dist/PanoRulerPlugin/index.cjs.js +1 -0
- package/dist/PanoRulerProPlugin/index..js +395 -0
- package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
- package/dist/PanoSpatialTagPlugin/index..js +15 -0
- package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
- package/dist/PanoTagPlugin/index..js +4522 -0
- package/dist/PanoTagPlugin/index.cjs.js +17 -0
- package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
- package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
- package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
- package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
- package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
- package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
- package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
- package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
- package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
- package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
- package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
- package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
- package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
- package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
- package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
- package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
- package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
- package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
- package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
- package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
- package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
- package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
- package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
- package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
- package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
- package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
- package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
- package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
- package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
- package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
- package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
- package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
- package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
- package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
- package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
- package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
- package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
- package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
- package/dist/chunks/es/index.a273f06e.es.js +532 -0
- package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
- package/dist/chunks/es/index.f74f4851.es.js +1787 -0
- package/dist/chunks/es/isNil.212842d9.es.js +10 -0
- package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
- package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
- package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
- package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
- package/dist/components/PaintBrush/index..js +6 -0
- package/dist/components/PaintBrush/index.cjs.js +1 -0
- package/dist/components/index..js +7 -0
- package/dist/components/index.cjs.js +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
- package/dist/index..js +530 -0
- package/dist/index.cjs.js +3 -543
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +6 -11
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -5
- package/libs/CSS3DRenderPlugin/Controller.js +6 -7
- package/libs/CSS3DRenderPlugin/index.js +3 -4
- package/libs/CSS3DRenderPlugin/typing.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -3
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -2
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +16 -17
- package/libs/CameraMovementPlugin/index.js +3 -0
- package/libs/CruisePlugin/Controller.js +4 -4
- package/libs/CruisePlugin/index.js +3 -6
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +3 -4
- package/libs/GuideLinePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -32
- package/libs/ItemLabelPlugin/Plugin.js +5 -6
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
- package/libs/ModelChassisCompassPlugin/index.js +2 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +22 -23
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +4 -3
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +5 -6
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +11 -10
- package/libs/ModelRoomLabelPlugin/index.js +0 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -2
- package/libs/ModelTVVideoPlugin/index.js +2 -0
- package/libs/ModelViewPlugin/Plugin.js +1 -2
- package/libs/ModelViewPlugin/index.js +2 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +6 -7
- package/libs/Object3DHelperPlugin/index.js +1 -6
- package/libs/PanoCompassPlugin/index.js +3 -4
- package/libs/PanoCursorRaycasterPlugin/index.js +7 -8
- package/libs/PanoDoorLabelPlugin/index.js +1 -2
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +17 -17
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +9 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +8 -8
- package/libs/PanoMeasurePlugin/Model/index.js +3 -3
- package/libs/PanoMeasurePlugin/Model/line.js +11 -11
- package/libs/PanoMeasurePlugin/Model/point.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +3 -4
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +2 -2
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +0 -1
- package/libs/PanoMeasurePlugin/utils/math.js +1 -2
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoRulerPlugin/Plugin.js +2 -3
- package/libs/PanoRulerPlugin/index.js +2 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerProPlugin/Controller.js +15 -15
- package/libs/PanoRulerProPlugin/RulerItems.js +7 -4
- package/libs/PanoRulerProPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -3
- package/libs/PanoSpatialTagPlugin/index.js +6 -0
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +43 -36
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +88 -78
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -4
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +30 -27
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +20 -14
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +114 -92
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +71 -52
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +62 -50
- package/libs/PanoTagPlugin/Components/Tag/index.js +92 -63
- package/libs/PanoTagPlugin/Components/TagContainer.js +108 -64
- package/libs/PanoTagPlugin/Components/TagWrapper.js +113 -75
- package/libs/PanoTagPlugin/controller/index.js +0 -1
- package/libs/PanoTagPlugin/index.js +3 -7
- package/libs/PanoTagPlugin/tag.config.js +1 -2
- package/libs/PanoTagPlugin/typings/controller.js +1 -0
- package/libs/PanoTagPlugin/typings/index.js +1 -0
- package/libs/PanoTagPlugin/utils/constants.js +1 -2
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/index.js +1 -0
- package/libs/components/PaintBrush/Controller.js +3 -3
- package/libs/components/PaintBrush/style.js +1 -1
- package/libs/components/PaintBrush/tween.js +4 -4
- package/libs/components/index.js +2 -0
- package/libs/floorplan/Components/Camera.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +51 -41
- package/libs/floorplan/Components/Main.js +41 -22
- package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +37 -36
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +7 -7
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -65
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -5
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/index.js +6 -0
- package/libs/floorplan/typings/floorplanData.js +1 -0
- package/libs/floorplan/utils/correctFiveState.js +19 -19
- package/libs/floorplan/utils/formatData.js +16 -16
- package/libs/floorplan/utils/formatPosition.js +7 -7
- package/libs/index.js +344 -90
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -3
- package/libs/shared-utils/Object3DHelper/Constants/color.js +0 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -0
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
- package/libs/shared-utils/animationFrame/index.js +13 -16
- package/libs/shared-utils/animationFrame/tween.js +0 -2
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
- package/libs/shared-utils/createCanvasTextTexture.js +6 -6
- package/libs/shared-utils/createLine/index.js +3 -3
- package/libs/shared-utils/debounce.js +5 -5
- package/libs/shared-utils/equal.js +16 -16
- package/libs/shared-utils/filter.js +1 -1
- package/libs/shared-utils/five/changeMode.js +14 -14
- package/libs/shared-utils/getPxmm.js +7 -8
- package/libs/shared-utils/index.js +33 -29
- package/libs/shared-utils/isTruelyObject.js +1 -1
- package/libs/shared-utils/math/index.js +1 -0
- package/libs/shared-utils/math/planimetry.js +1 -6
- package/libs/shared-utils/math/rad2Deg.js +3 -3
- package/libs/shared-utils/nearlyEqual.js +3 -3
- package/libs/shared-utils/noop.js +1 -1
- package/libs/shared-utils/object3d2LocalMatrix.js +6 -7
- package/libs/shared-utils/removeArrayItem.js +5 -5
- package/libs/shared-utils/tap.js +3 -3
- package/libs/shared-utils/three/index.js +6 -0
- package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +12 -12
- package/libs/shared-utils/throttle.js +2 -2
- package/libs/shared-utils/tinyEJSrender.js +7 -7
- package/libs/shared-utils/to.js +14 -15
- package/libs/shared-utils/uuid.js +0 -1
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-changed-params.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-params.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/mount-swiper.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/params-list.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/update-swiper.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/utils.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper-slide.js +1 -1
- package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper.js +1 -1
- package/package.json +19 -17
- package/dist/index.es.js +0 -16650
- package/dist/index.js +0 -16650
- package/dist/index.umd.js +0 -556
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
var qe = Object.defineProperty, Le = Object.defineProperties;
|
|
2
|
+
var Me = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var K = Object.getOwnPropertySymbols;
|
|
4
|
+
var ze = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Q = (n, t, e) => t in n ? qe(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, M = (n, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
ze.call(t, e) && Q(n, e, t[e]);
|
|
8
|
+
if (K)
|
|
9
|
+
for (var e of K(t))
|
|
10
|
+
xe.call(t, e) && Q(n, e, t[e]);
|
|
11
|
+
return n;
|
|
12
|
+
}, E = (n, t) => Le(n, Me(t));
|
|
13
|
+
import { Five as F, Subscribe as Ee } from "@realsee/five";
|
|
14
|
+
import { SvelteComponent as se, init as re, safe_not_equal as ae, append_styles as de, element as x, space as B, attr as y, null_to_empty as O, set_style as z, insert as P, append as C, listen as ce, noop as N, detach as V, binding_callbacks as Ce, text as G, set_data as Y, add_render_callback as Pe, add_resize_listener as Ve, group_outros as me, update_keyed_each as Fe, outro_and_destroy_block as Oe, check_outros as ue, transition_in as j, transition_out as U, empty as $, create_component as De, mount_component as Re, destroy_component as je } from "svelte/internal";
|
|
15
|
+
import { beforeUpdate as Se, onMount as Te, onDestroy as Ue } from "svelte";
|
|
16
|
+
import * as fe from "three";
|
|
17
|
+
import D from "classnames";
|
|
18
|
+
import { debounce as Ae } from "../chunks/es/debounce.ef83f417.es.js";
|
|
19
|
+
function We(n) {
|
|
20
|
+
de(n, "svelte-gduhqw", `.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
|
|
21
|
+
}to{opacity:1
|
|
22
|
+
}}`);
|
|
23
|
+
}
|
|
24
|
+
function Xe(n) {
|
|
25
|
+
let t, e, i, a = (n[0].code || n[0].id) + "", o, l, c, s = n[0].name + "", m, f = n[0].icon && ee(n);
|
|
26
|
+
return {
|
|
27
|
+
c() {
|
|
28
|
+
f && f.c(), t = B(), e = x("div"), i = x("span"), o = G(a), l = B(), c = x("span"), m = G(s), y(i, "class", "item-model svelte-gduhqw"), y(c, "class", "item-name svelte-gduhqw"), y(e, "class", "item-label-text svelte-gduhqw");
|
|
29
|
+
},
|
|
30
|
+
m(d, b) {
|
|
31
|
+
f && f.m(d, b), P(d, t, b), P(d, e, b), C(e, i), C(i, o), C(e, l), C(e, c), C(c, m);
|
|
32
|
+
},
|
|
33
|
+
p(d, b) {
|
|
34
|
+
d[0].icon ? f ? f.p(d, b) : (f = ee(d), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), b & 1 && a !== (a = (d[0].code || d[0].id) + "") && Y(o, a), b & 1 && s !== (s = d[0].name + "") && Y(m, s);
|
|
35
|
+
},
|
|
36
|
+
d(d) {
|
|
37
|
+
f && f.d(d), d && V(t), d && V(e);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function Be(n) {
|
|
42
|
+
let t;
|
|
43
|
+
return {
|
|
44
|
+
c() {
|
|
45
|
+
t = x("div");
|
|
46
|
+
},
|
|
47
|
+
m(e, i) {
|
|
48
|
+
P(e, t, i), n[6](t);
|
|
49
|
+
},
|
|
50
|
+
p: N,
|
|
51
|
+
d(e) {
|
|
52
|
+
e && V(t), n[6](null);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function ee(n) {
|
|
57
|
+
let t, e, i, a, o;
|
|
58
|
+
return {
|
|
59
|
+
c() {
|
|
60
|
+
t = x("div"), e = x("div"), y(e, "class", "icon svelte-gduhqw"), y(e, "style", i = `background-image: url(${n[0].icon})`), y(t, "class", "icon-wrap svelte-gduhqw");
|
|
61
|
+
},
|
|
62
|
+
m(l, c) {
|
|
63
|
+
P(l, t, c), C(t, e), a || (o = ce(t, "click", n[7]), a = !0);
|
|
64
|
+
},
|
|
65
|
+
p(l, c) {
|
|
66
|
+
c & 1 && i !== (i = `background-image: url(${l[0].icon})`) && y(e, "style", i);
|
|
67
|
+
},
|
|
68
|
+
d(l) {
|
|
69
|
+
l && V(t), a = !1, o();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function Ne(n) {
|
|
74
|
+
let t, e, i, a, o, l, c, s, m, f;
|
|
75
|
+
function d(h, p) {
|
|
76
|
+
return p & 1 && (i = null), i == null && (i = !!Boolean(typeof h[0].render == "function")), i ? Be : Xe;
|
|
77
|
+
}
|
|
78
|
+
let b = d(n, -1), k = b(n);
|
|
79
|
+
return {
|
|
80
|
+
c() {
|
|
81
|
+
t = x("div"), e = x("div"), k.c(), o = B(), l = x("div"), y(e, "class", a = O(D("item-label-item__text-wrap", {
|
|
82
|
+
"item-label-item__custom": Boolean(typeof n[0].render == "function")
|
|
83
|
+
})) + " svelte-gduhqw"), z(e, "bottom", `${n[0].strokeLength}px`), y(l, "class", c = O(D("item-label-item__bar", { anchor: n[1] })) + " svelte-gduhqw"), z(l, "height", `${n[0].strokeLength}px`), y(t, "class", s = O(D("item-label-item", { fold: n[0].isFold })) + " svelte-gduhqw"), z(t, "z-index", n[0].zIndex, !1), z(t, "transform", n[0].transform, !1);
|
|
84
|
+
},
|
|
85
|
+
m(h, p) {
|
|
86
|
+
P(h, t, p), C(t, e), k.m(e, null), C(t, o), C(t, l), m || (f = ce(e, "click", n[4]), m = !0);
|
|
87
|
+
},
|
|
88
|
+
p(h, [p]) {
|
|
89
|
+
b === (b = d(h, p)) && k ? k.p(h, p) : (k.d(1), k = b(h), k && (k.c(), k.m(e, null))), p & 1 && a !== (a = O(D("item-label-item__text-wrap", {
|
|
90
|
+
"item-label-item__custom": Boolean(typeof h[0].render == "function")
|
|
91
|
+
})) + " svelte-gduhqw") && y(e, "class", a), p & 1 && z(e, "bottom", `${h[0].strokeLength}px`), p & 2 && c !== (c = O(D("item-label-item__bar", { anchor: h[1] })) + " svelte-gduhqw") && y(l, "class", c), p & 1 && z(l, "height", `${h[0].strokeLength}px`), p & 1 && s !== (s = O(D("item-label-item", { fold: h[0].isFold })) + " svelte-gduhqw") && y(t, "class", s), p & 1 && z(t, "z-index", h[0].zIndex, !1), p & 1 && z(t, "transform", h[0].transform, !1);
|
|
92
|
+
},
|
|
93
|
+
i: N,
|
|
94
|
+
o: N,
|
|
95
|
+
d(h) {
|
|
96
|
+
h && V(t), k.d(), m = !1, f();
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function Ze(n, t, e) {
|
|
101
|
+
let { itemLabel: i } = t, { hooks: a } = t, { anchorEnabled: o } = t, { onIconClick: l } = t;
|
|
102
|
+
function c() {
|
|
103
|
+
a.emit("onLabelClick", i);
|
|
104
|
+
}
|
|
105
|
+
let s;
|
|
106
|
+
function m(d) {
|
|
107
|
+
Ce[d ? "unshift" : "push"](() => {
|
|
108
|
+
s = d, e(3, s);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
const f = (d) => l(i);
|
|
112
|
+
return n.$$set = (d) => {
|
|
113
|
+
"itemLabel" in d && e(0, i = d.itemLabel), "hooks" in d && e(5, a = d.hooks), "anchorEnabled" in d && e(1, o = d.anchorEnabled), "onIconClick" in d && e(2, l = d.onIconClick);
|
|
114
|
+
}, n.$$.update = () => {
|
|
115
|
+
if (n.$$.dirty & 9 && typeof i.render == "function" && s && s.children.length === 0) {
|
|
116
|
+
const d = i.render(i);
|
|
117
|
+
d && s.appendChild(d);
|
|
118
|
+
}
|
|
119
|
+
}, [
|
|
120
|
+
i,
|
|
121
|
+
o,
|
|
122
|
+
l,
|
|
123
|
+
s,
|
|
124
|
+
c,
|
|
125
|
+
a,
|
|
126
|
+
m,
|
|
127
|
+
f
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
class He extends se {
|
|
131
|
+
constructor(t) {
|
|
132
|
+
super(), re(
|
|
133
|
+
this,
|
|
134
|
+
t,
|
|
135
|
+
Ze,
|
|
136
|
+
Ne,
|
|
137
|
+
ae,
|
|
138
|
+
{
|
|
139
|
+
itemLabel: 0,
|
|
140
|
+
hooks: 5,
|
|
141
|
+
anchorEnabled: 1,
|
|
142
|
+
onIconClick: 2
|
|
143
|
+
},
|
|
144
|
+
We
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const { Raycaster: Je, Vector3: ct } = fe, te = (n, t, e, i) => {
|
|
149
|
+
const a = t.clone().sub(e).normalize(), o = new Je();
|
|
150
|
+
o.set(e, a);
|
|
151
|
+
const [l] = n.model.intersectRaycaster(o);
|
|
152
|
+
return l && l.distance + 0.01 < i;
|
|
153
|
+
};
|
|
154
|
+
var R = /* @__PURE__ */ ((n) => (n.SMALL = "small", n.MIDLLE = "middle", n.LARGE = "large", n.EXTRA_LARGE = "x-large", n))(R || {});
|
|
155
|
+
const Ke = (n, t) => {
|
|
156
|
+
switch (t) {
|
|
157
|
+
case R.SMALL:
|
|
158
|
+
return Math.ceil(-27.78 * n + 85);
|
|
159
|
+
case R.MIDLLE:
|
|
160
|
+
return Math.ceil(-38.9 * n + 130);
|
|
161
|
+
case R.LARGE:
|
|
162
|
+
return Math.ceil(-44.44 * n + 140);
|
|
163
|
+
case R.EXTRA_LARGE:
|
|
164
|
+
return Math.ceil(-92.59 * n + 300);
|
|
165
|
+
}
|
|
166
|
+
}, Qe = (n) => `translate(${n[0]}px, ${n[1]}px)`;
|
|
167
|
+
function ne(n) {
|
|
168
|
+
return n.map((t) => M({
|
|
169
|
+
observerIndex: void 0,
|
|
170
|
+
visible: !1,
|
|
171
|
+
isFold: !1
|
|
172
|
+
}, t));
|
|
173
|
+
}
|
|
174
|
+
function Ge(n) {
|
|
175
|
+
de(n, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
176
|
+
}
|
|
177
|
+
function oe(n, t, e) {
|
|
178
|
+
const i = n.slice();
|
|
179
|
+
return i[30] = t[e], i;
|
|
180
|
+
}
|
|
181
|
+
function ie(n) {
|
|
182
|
+
let t, e;
|
|
183
|
+
return t = new He({
|
|
184
|
+
props: {
|
|
185
|
+
itemLabel: n[30],
|
|
186
|
+
hooks: n[0],
|
|
187
|
+
anchorEnabled: n[2],
|
|
188
|
+
onIconClick: n[6]
|
|
189
|
+
}
|
|
190
|
+
}), {
|
|
191
|
+
c() {
|
|
192
|
+
De(t.$$.fragment);
|
|
193
|
+
},
|
|
194
|
+
m(i, a) {
|
|
195
|
+
Re(t, i, a), e = !0;
|
|
196
|
+
},
|
|
197
|
+
p(i, a) {
|
|
198
|
+
const o = {};
|
|
199
|
+
a[0] & 2 && (o.itemLabel = i[30]), a[0] & 1 && (o.hooks = i[0]), a[0] & 4 && (o.anchorEnabled = i[2]), t.$set(o);
|
|
200
|
+
},
|
|
201
|
+
i(i) {
|
|
202
|
+
e || (j(t.$$.fragment, i), e = !0);
|
|
203
|
+
},
|
|
204
|
+
o(i) {
|
|
205
|
+
U(t.$$.fragment, i), e = !1;
|
|
206
|
+
},
|
|
207
|
+
d(i) {
|
|
208
|
+
je(t, i);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function le(n, t) {
|
|
213
|
+
let e, i, a, o = t[30].visible && ie(t);
|
|
214
|
+
return {
|
|
215
|
+
key: n,
|
|
216
|
+
first: null,
|
|
217
|
+
c() {
|
|
218
|
+
e = $(), o && o.c(), i = $(), this.first = e;
|
|
219
|
+
},
|
|
220
|
+
m(l, c) {
|
|
221
|
+
P(l, e, c), o && o.m(l, c), P(l, i, c), a = !0;
|
|
222
|
+
},
|
|
223
|
+
p(l, c) {
|
|
224
|
+
t = l, t[30].visible ? o ? (o.p(t, c), c[0] & 2 && j(o, 1)) : (o = ie(t), o.c(), j(o, 1), o.m(i.parentNode, i)) : o && (me(), U(o, 1, 1, () => {
|
|
225
|
+
o = null;
|
|
226
|
+
}), ue());
|
|
227
|
+
},
|
|
228
|
+
i(l) {
|
|
229
|
+
a || (j(o), a = !0);
|
|
230
|
+
},
|
|
231
|
+
o(l) {
|
|
232
|
+
U(o), a = !1;
|
|
233
|
+
},
|
|
234
|
+
d(l) {
|
|
235
|
+
l && V(e), o && o.d(l), l && V(i);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function Ye(n) {
|
|
240
|
+
let t, e = [], i = /* @__PURE__ */ new Map(), a, o, l = n[1];
|
|
241
|
+
const c = (s) => s[30].id;
|
|
242
|
+
for (let s = 0; s < l.length; s += 1) {
|
|
243
|
+
let m = oe(n, l, s), f = c(m);
|
|
244
|
+
i.set(f, e[s] = le(f, m));
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
c() {
|
|
248
|
+
t = x("div");
|
|
249
|
+
for (let s = 0; s < e.length; s += 1)
|
|
250
|
+
e[s].c();
|
|
251
|
+
y(t, "class", "item-labels-container svelte-gk8s47"), Pe(() => n[12].call(t)), z(t, "opacity", n[5] ? 1 : 0, !1);
|
|
252
|
+
},
|
|
253
|
+
m(s, m) {
|
|
254
|
+
P(s, t, m);
|
|
255
|
+
for (let f = 0; f < e.length; f += 1)
|
|
256
|
+
e[f].m(t, null);
|
|
257
|
+
a = Ve(t, n[12].bind(t)), o = !0;
|
|
258
|
+
},
|
|
259
|
+
p(s, m) {
|
|
260
|
+
m[0] & 71 && (l = s[1], me(), e = Fe(e, m, c, 1, s, l, i, t, Oe, le, null, oe), ue()), m[0] & 32 && z(t, "opacity", s[5] ? 1 : 0, !1);
|
|
261
|
+
},
|
|
262
|
+
i(s) {
|
|
263
|
+
if (!o) {
|
|
264
|
+
for (let m = 0; m < l.length; m += 1)
|
|
265
|
+
j(e[m]);
|
|
266
|
+
o = !0;
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
o(s) {
|
|
270
|
+
for (let m = 0; m < e.length; m += 1)
|
|
271
|
+
U(e[m]);
|
|
272
|
+
o = !1;
|
|
273
|
+
},
|
|
274
|
+
d(s) {
|
|
275
|
+
s && V(t);
|
|
276
|
+
for (let m = 0; m < e.length; m += 1)
|
|
277
|
+
e[m].d();
|
|
278
|
+
a();
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
let $e = 11;
|
|
283
|
+
function et(n, t, e) {
|
|
284
|
+
const { Raycaster: i, Vector3: a } = fe;
|
|
285
|
+
let { five: o } = t, { modelOcclusionEnable: l } = t, { itemLabels: c } = t, { hooks: s } = t, { displayStrategyType: m } = t, { maxVisibleDistance: f } = t, d = null, b = null, k = (o == null ? void 0 : o.currentMode) === F.Mode.Panorama, h, p, q = [], A = !0;
|
|
286
|
+
const be = (u, w) => {
|
|
287
|
+
const _ = u.camera.position.clone(), v = new a(w.modelPosition[0], w.modelPosition[1], w.modelPosition[2]), r = v.distanceTo(_);
|
|
288
|
+
return f !== void 0 && u.state.mode === F.Mode.Panorama && r > f ? !1 : te(u, v.clone().sub(_).normalize(), _, r);
|
|
289
|
+
}, he = (u) => {
|
|
290
|
+
const { camera: w, model: _ } = o, { x: v, y: r, z: g } = u.clone().project(w), L = (v + 1) / 2, I = (2 - (r + 1)) / 2, X = Math.abs(g) < 1 && [L, I].every((J) => J < 1 && J >= 0);
|
|
291
|
+
return Boolean(X);
|
|
292
|
+
}, ge = (u, w) => {
|
|
293
|
+
const _ = new a(w.modelPosition[0], w.modelPosition[1], w.modelPosition[2]), v = u.project2d(_), r = v == null ? void 0 : v.x, g = v == null ? void 0 : v.y;
|
|
294
|
+
return [r, g];
|
|
295
|
+
}, pe = (u, w) => {
|
|
296
|
+
const _ = w.map((r) => {
|
|
297
|
+
if (u.state.panoIndex !== r.panoIndex)
|
|
298
|
+
return E(M({}, r), { visible: !1 });
|
|
299
|
+
const g = ge(u, r);
|
|
300
|
+
r.name.length * $e;
|
|
301
|
+
const L = Ke(r.modelPosition[1], m), I = u.currentMode === F.Mode.Panorama ? he(new a(r.position[0], r.position[1], r.position[2])) : !0, W = l ? be(u, r) : !1, T = I && !W;
|
|
302
|
+
if (!T)
|
|
303
|
+
return E(M({}, r), { visible: T });
|
|
304
|
+
q.push(g);
|
|
305
|
+
const X = Qe(g);
|
|
306
|
+
return E(M({}, r), {
|
|
307
|
+
visible: T,
|
|
308
|
+
transform: X,
|
|
309
|
+
strokeLength: L
|
|
310
|
+
});
|
|
311
|
+
}), v = _.filter(({ visible: r }) => r).map((r) => ({
|
|
312
|
+
itemLabelItem: r,
|
|
313
|
+
distance: new a(r.modelPosition[0], r.modelPosition[1], r.modelPosition[2]).clone().distanceTo(u.camera.position)
|
|
314
|
+
})).sort((r, g) => r.distance - g.distance);
|
|
315
|
+
return _.map((r) => {
|
|
316
|
+
const g = v.findIndex((L) => L.itemLabelItem.id === r.id);
|
|
317
|
+
return g !== void 0 ? E(M({}, r), { zIndex: g * 10 }) : r;
|
|
318
|
+
});
|
|
319
|
+
}, S = () => {
|
|
320
|
+
q = [], e(1, b = pe(o, b));
|
|
321
|
+
}, Z = () => {
|
|
322
|
+
e(5, A = !1), ve();
|
|
323
|
+
}, ve = Ae(
|
|
324
|
+
() => {
|
|
325
|
+
e(5, A = !0), S();
|
|
326
|
+
},
|
|
327
|
+
300
|
|
328
|
+
), H = () => {
|
|
329
|
+
o.once("renderFrame", S);
|
|
330
|
+
}, we = () => {
|
|
331
|
+
window.addEventListener("resize", H, !1);
|
|
332
|
+
}, _e = () => {
|
|
333
|
+
d !== c && (e(1, b = ne(c)), d = c, S());
|
|
334
|
+
}, ke = (u, w) => {
|
|
335
|
+
let _ = [];
|
|
336
|
+
for (let r = 0; r < w.length; r++) {
|
|
337
|
+
const { position: g, panoIndex: L } = w[r], I = u.distanceTo(g);
|
|
338
|
+
(f === void 0 || I <= f || o.state.mode !== F.Mode.Panorama) && _.push({ panoIndex: L, obVector: g, distance: I });
|
|
339
|
+
}
|
|
340
|
+
_ = _.sort((r, g) => r.distance - g.distance);
|
|
341
|
+
let v;
|
|
342
|
+
for (let r = 0; r < _.length; r++) {
|
|
343
|
+
const { obVector: g, distance: L, panoIndex: I } = _[r];
|
|
344
|
+
if (!te(o, u, g, L)) {
|
|
345
|
+
v = I;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return typeof v == "number" ? w[v] : void 0;
|
|
350
|
+
}, ye = (u) => {
|
|
351
|
+
if (o.state.mode === F.Mode.Panorama)
|
|
352
|
+
return;
|
|
353
|
+
const w = o.work.observers, _ = new a().fromArray(u.position), v = ke(_, w);
|
|
354
|
+
if (v && (u.observerIndex = v.panoIndex), typeof u.observerIndex == "number") {
|
|
355
|
+
const r = w[u.observerIndex], g = _.clone().sub(r.position).normalize(), L = {
|
|
356
|
+
longitude: Math.PI + Math.atan2(g.x, g.z),
|
|
357
|
+
latitude: Math.acos(g.y / g.length()) - Math.PI / 2
|
|
358
|
+
};
|
|
359
|
+
o.setState(E(M({}, L), {
|
|
360
|
+
mode: F.Mode.Panorama,
|
|
361
|
+
panoIndex: u.observerIndex
|
|
362
|
+
})), o.once("initAnimationEnded", () => {
|
|
363
|
+
e(1, b = b.map((I) => E(M({}, I), {
|
|
364
|
+
isFold: I.id !== u.id
|
|
365
|
+
}))), o.once("cameraUpdate", () => {
|
|
366
|
+
e(1, b = b.map((I) => E(M({}, I), { isFold: !1 })));
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
Se(() => {
|
|
372
|
+
_e();
|
|
373
|
+
}), Te(() => {
|
|
374
|
+
e(1, b = ne(c)), d = c, S(), we(), o.on("cameraUpdate", Z);
|
|
375
|
+
}), Ue(() => {
|
|
376
|
+
o.off("cameraUpdate", Z), window.removeEventListener("resize", H, !1);
|
|
377
|
+
});
|
|
378
|
+
function Ie() {
|
|
379
|
+
h = this.clientWidth, p = this.clientHeight, e(3, h), e(4, p);
|
|
380
|
+
}
|
|
381
|
+
return n.$$set = (u) => {
|
|
382
|
+
"five" in u && e(7, o = u.five), "modelOcclusionEnable" in u && e(8, l = u.modelOcclusionEnable), "itemLabels" in u && e(9, c = u.itemLabels), "hooks" in u && e(0, s = u.hooks), "displayStrategyType" in u && e(10, m = u.displayStrategyType), "maxVisibleDistance" in u && e(11, f = u.maxVisibleDistance);
|
|
383
|
+
}, [
|
|
384
|
+
s,
|
|
385
|
+
b,
|
|
386
|
+
k,
|
|
387
|
+
h,
|
|
388
|
+
p,
|
|
389
|
+
A,
|
|
390
|
+
ye,
|
|
391
|
+
o,
|
|
392
|
+
l,
|
|
393
|
+
c,
|
|
394
|
+
m,
|
|
395
|
+
f,
|
|
396
|
+
Ie
|
|
397
|
+
];
|
|
398
|
+
}
|
|
399
|
+
class tt extends se {
|
|
400
|
+
constructor(t) {
|
|
401
|
+
super(), re(
|
|
402
|
+
this,
|
|
403
|
+
t,
|
|
404
|
+
et,
|
|
405
|
+
Ye,
|
|
406
|
+
ae,
|
|
407
|
+
{
|
|
408
|
+
five: 7,
|
|
409
|
+
modelOcclusionEnable: 8,
|
|
410
|
+
itemLabels: 9,
|
|
411
|
+
hooks: 0,
|
|
412
|
+
displayStrategyType: 10,
|
|
413
|
+
maxVisibleDistance: 11
|
|
414
|
+
},
|
|
415
|
+
Ge,
|
|
416
|
+
[-1, -1]
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function nt(n) {
|
|
421
|
+
return n.item_labels.map((t) => E(M({}, t), {
|
|
422
|
+
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
423
|
+
observerIndex: void 0
|
|
424
|
+
}));
|
|
425
|
+
}
|
|
426
|
+
const ot = void 0, mt = (n, t) => {
|
|
427
|
+
var b, k, h, p;
|
|
428
|
+
const e = {
|
|
429
|
+
container: document.createElement("div"),
|
|
430
|
+
data: null,
|
|
431
|
+
enabled: !0,
|
|
432
|
+
fiveModeEnabled: !0,
|
|
433
|
+
itemLabels: [],
|
|
434
|
+
wrapper: null,
|
|
435
|
+
app: void 0,
|
|
436
|
+
hooks: new Ee(),
|
|
437
|
+
modelOcclusionEnable: (b = t == null ? void 0 : t.modelOcclusionEnable) != null ? b : !0,
|
|
438
|
+
onlyVisibleInPanorama: (k = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? k : !0,
|
|
439
|
+
displayStrategyType: (h = t == null ? void 0 : t.displayStrategyType) != null ? h : R.SMALL,
|
|
440
|
+
maxVisibleDistance: (p = t == null ? void 0 : t.maxVisibleDistance) != null ? p : ot
|
|
441
|
+
};
|
|
442
|
+
e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
|
|
443
|
+
position: absolute;
|
|
444
|
+
left: 0;
|
|
445
|
+
top: 0;
|
|
446
|
+
width: 100%;
|
|
447
|
+
height: 100%;
|
|
448
|
+
z-index: 5;
|
|
449
|
+
`, e.container.style.pointerEvents = "none";
|
|
450
|
+
const i = (q) => (e.wrapper = q, q.appendChild(e.container), s(), !0), a = (q) => {
|
|
451
|
+
e.itemLabels = nt(q), s();
|
|
452
|
+
}, o = () => (e.enabled || (e.enabled = !0, s()), !0), l = () => (e.enabled && (e.enabled = !1, s()), !0), c = () => {
|
|
453
|
+
f(), e.container.remove();
|
|
454
|
+
}, s = () => {
|
|
455
|
+
var q;
|
|
456
|
+
if (!!e.wrapper) {
|
|
457
|
+
if (!e.enabled || !e.fiveModeEnabled) {
|
|
458
|
+
(q = e.app) == null || q.$destroy(), e.app = void 0;
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
e.app ? e.app.$set({
|
|
462
|
+
five: n,
|
|
463
|
+
itemLabels: e.itemLabels
|
|
464
|
+
}) : e.app = new tt({
|
|
465
|
+
target: e.container,
|
|
466
|
+
props: {
|
|
467
|
+
five: n,
|
|
468
|
+
modelOcclusionEnable: e.modelOcclusionEnable,
|
|
469
|
+
onlyVisibleInPanorama: e.onlyVisibleInPanorama,
|
|
470
|
+
itemLabels: e.itemLabels,
|
|
471
|
+
wrapper: e.wrapper,
|
|
472
|
+
hooks: e.hooks,
|
|
473
|
+
displayStrategyType: e.displayStrategyType,
|
|
474
|
+
maxVisibleDistance: e.maxVisibleDistance
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
}, m = () => {
|
|
479
|
+
n.on("modeChange", d), n.once("dispose", c);
|
|
480
|
+
}, f = () => {
|
|
481
|
+
n.off("modeChange", d);
|
|
482
|
+
}, d = (q) => {
|
|
483
|
+
if (q !== F.Mode.Panorama) {
|
|
484
|
+
e.fiveModeEnabled = !1, l();
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
n.once("initAnimationEnded", () => {
|
|
488
|
+
e.fiveModeEnabled = !0, o();
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
return m(), {
|
|
492
|
+
appendTo: i,
|
|
493
|
+
load: a,
|
|
494
|
+
enable: o,
|
|
495
|
+
disable: l,
|
|
496
|
+
dispose: c,
|
|
497
|
+
hooks: e.hooks
|
|
498
|
+
};
|
|
499
|
+
}, ut = {
|
|
500
|
+
name: "ItemLabelPlugin",
|
|
501
|
+
version: 0
|
|
502
|
+
};
|
|
503
|
+
export {
|
|
504
|
+
R as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
505
|
+
mt as ItemLabelPlugin,
|
|
506
|
+
mt as default,
|
|
507
|
+
ut as itemLabelPluginServerParams
|
|
508
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";var le=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var U=(o,t,e)=>t in o?le(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,M=(o,t)=>{for(var e in t||(t={}))de.call(t,e)&&U(o,e,t[e]);if(A)for(var e of A(t))ce.call(t,e)&&U(o,e,t[e]);return o},E=(o,t)=>ae(o,re(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("@realsee/five"),n=require("svelte/internal"),D=require("svelte"),ue=require("three"),me=require("classnames"),fe=require("../chunks/cjs/debounce.93dfb637.cjs.js"),be=o=>o&&typeof o=="object"&&"default"in o?o:{default:o};function he(o){if(o&&o.__esModule)return o;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const G=he(ue),x=be(me);function ge(o){n.append_styles(o,"svelte-gduhqw",`.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
|
|
2
|
+
}to{opacity:1
|
|
3
|
+
}}`)}function pe(o){let t,e,s,d=(o[0].code||o[0].id)+"",i,l,u,a=o[0].name+"",m,b=o[0].icon&&N(o);return{c(){b&&b.c(),t=n.space(),e=n.element("div"),s=n.element("span"),i=n.text(d),l=n.space(),u=n.element("span"),m=n.text(a),n.attr(s,"class","item-model svelte-gduhqw"),n.attr(u,"class","item-name svelte-gduhqw"),n.attr(e,"class","item-label-text svelte-gduhqw")},m(c,h){b&&b.m(c,h),n.insert(c,t,h),n.insert(c,e,h),n.append(e,s),n.append(s,i),n.append(e,l),n.append(e,u),n.append(u,m)},p(c,h){c[0].icon?b?b.p(c,h):(b=N(c),b.c(),b.m(t.parentNode,t)):b&&(b.d(1),b=null),h&1&&d!==(d=(c[0].code||c[0].id)+"")&&n.set_data(i,d),h&1&&a!==(a=c[0].name+"")&&n.set_data(m,a)},d(c){b&&b.d(c),c&&n.detach(t),c&&n.detach(e)}}}function _e(o){let t;return{c(){t=n.element("div")},m(e,s){n.insert(e,t,s),o[6](t)},p:n.noop,d(e){e&&n.detach(t),o[6](null)}}}function N(o){let t,e,s,d,i;return{c(){t=n.element("div"),e=n.element("div"),n.attr(e,"class","icon svelte-gduhqw"),n.attr(e,"style",s=`background-image: url(${o[0].icon})`),n.attr(t,"class","icon-wrap svelte-gduhqw")},m(l,u){n.insert(l,t,u),n.append(t,e),d||(i=n.listen(t,"click",o[7]),d=!0)},p(l,u){u&1&&s!==(s=`background-image: url(${l[0].icon})`)&&n.attr(e,"style",s)},d(l){l&&n.detach(t),d=!1,i()}}}function ve(o){let t,e,s,d,i,l,u,a,m,b;function c(g,_){return _&1&&(s=null),s==null&&(s=!!Boolean(typeof g[0].render=="function")),s?_e:pe}let h=c(o,-1),k=h(o);return{c(){t=n.element("div"),e=n.element("div"),k.c(),i=n.space(),l=n.element("div"),n.attr(e,"class",d=n.null_to_empty(x.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof o[0].render=="function")}))+" svelte-gduhqw"),n.set_style(e,"bottom",`${o[0].strokeLength}px`),n.attr(l,"class",u=n.null_to_empty(x.default("item-label-item__bar",{anchor:o[1]}))+" svelte-gduhqw"),n.set_style(l,"height",`${o[0].strokeLength}px`),n.attr(t,"class",a=n.null_to_empty(x.default("item-label-item",{fold:o[0].isFold}))+" svelte-gduhqw"),n.set_style(t,"z-index",o[0].zIndex,!1),n.set_style(t,"transform",o[0].transform,!1)},m(g,_){n.insert(g,t,_),n.append(t,e),k.m(e,null),n.append(t,i),n.append(t,l),m||(b=n.listen(e,"click",o[4]),m=!0)},p(g,[_]){h===(h=c(g,_))&&k?k.p(g,_):(k.d(1),k=h(g),k&&(k.c(),k.m(e,null))),_&1&&d!==(d=n.null_to_empty(x.default("item-label-item__text-wrap",{"item-label-item__custom":Boolean(typeof g[0].render=="function")}))+" svelte-gduhqw")&&n.attr(e,"class",d),_&1&&n.set_style(e,"bottom",`${g[0].strokeLength}px`),_&2&&u!==(u=n.null_to_empty(x.default("item-label-item__bar",{anchor:g[1]}))+" svelte-gduhqw")&&n.attr(l,"class",u),_&1&&n.set_style(l,"height",`${g[0].strokeLength}px`),_&1&&a!==(a=n.null_to_empty(x.default("item-label-item",{fold:g[0].isFold}))+" svelte-gduhqw")&&n.attr(t,"class",a),_&1&&n.set_style(t,"z-index",g[0].zIndex,!1),_&1&&n.set_style(t,"transform",g[0].transform,!1)},i:n.noop,o:n.noop,d(g){g&&n.detach(t),k.d(),m=!1,b()}}}function we(o,t,e){let{itemLabel:s}=t,{hooks:d}=t,{anchorEnabled:i}=t,{onIconClick:l}=t;function u(){d.emit("onLabelClick",s)}let a;function m(c){n.binding_callbacks[c?"unshift":"push"](()=>{a=c,e(3,a)})}const b=c=>l(s);return o.$$set=c=>{"itemLabel"in c&&e(0,s=c.itemLabel),"hooks"in c&&e(5,d=c.hooks),"anchorEnabled"in c&&e(1,i=c.anchorEnabled),"onIconClick"in c&&e(2,l=c.onIconClick)},o.$$.update=()=>{if(o.$$.dirty&9&&typeof s.render=="function"&&a&&a.children.length===0){const c=s.render(s);c&&a.appendChild(c)}},[s,i,l,a,u,d,m,b]}class ye extends n.SvelteComponent{constructor(t){super(),n.init(this,t,we,ve,n.safe_not_equal,{itemLabel:0,hooks:5,anchorEnabled:1,onIconClick:2},ge)}}const{Raycaster:ke,Vector3:Ve}=G,B=(o,t,e,s)=>{const d=t.clone().sub(e).normalize(),i=new ke;i.set(e,d);const[l]=o.model.intersectRaycaster(i);return l&&l.distance+.01<s};var z=(o=>(o.SMALL="small",o.MIDLLE="middle",o.LARGE="large",o.EXTRA_LARGE="x-large",o))(z||{});const Ie=(o,t)=>{switch(t){case z.SMALL:return Math.ceil(-27.78*o+85);case z.MIDLLE:return Math.ceil(-38.9*o+130);case z.LARGE:return Math.ceil(-44.44*o+140);case z.EXTRA_LARGE:return Math.ceil(-92.59*o+300)}},qe=o=>`translate(${o[0]}px, ${o[1]}px)`;function W(o){return o.map(t=>M({observerIndex:void 0,visible:!1,isFold:!1},t))}function Le(o){n.append_styles(o,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function X(o,t,e){const s=o.slice();return s[30]=t[e],s}function H(o){let t,e;return t=new ye({props:{itemLabel:o[30],hooks:o[0],anchorEnabled:o[2],onIconClick:o[6]}}),{c(){n.create_component(t.$$.fragment)},m(s,d){n.mount_component(t,s,d),e=!0},p(s,d){const i={};d[0]&2&&(i.itemLabel=s[30]),d[0]&1&&(i.hooks=s[0]),d[0]&4&&(i.anchorEnabled=s[2]),t.$set(i)},i(s){e||(n.transition_in(t.$$.fragment,s),e=!0)},o(s){n.transition_out(t.$$.fragment,s),e=!1},d(s){n.destroy_component(t,s)}}}function Z(o,t){let e,s,d,i=t[30].visible&&H(t);return{key:o,first:null,c(){e=n.empty(),i&&i.c(),s=n.empty(),this.first=e},m(l,u){n.insert(l,e,u),i&&i.m(l,u),n.insert(l,s,u),d=!0},p(l,u){t=l,t[30].visible?i?(i.p(t,u),u[0]&2&&n.transition_in(i,1)):(i=H(t),i.c(),n.transition_in(i,1),i.m(s.parentNode,s)):i&&(n.group_outros(),n.transition_out(i,1,1,()=>{i=null}),n.check_outros())},i(l){d||(n.transition_in(i),d=!0)},o(l){n.transition_out(i),d=!1},d(l){l&&n.detach(e),i&&i.d(l),l&&n.detach(s)}}}function Me(o){let t,e=[],s=new Map,d,i,l=o[1];const u=a=>a[30].id;for(let a=0;a<l.length;a+=1){let m=X(o,l,a),b=u(m);s.set(b,e[a]=Z(b,m))}return{c(){t=n.element("div");for(let a=0;a<e.length;a+=1)e[a].c();n.attr(t,"class","item-labels-container svelte-gk8s47"),n.add_render_callback(()=>o[12].call(t)),n.set_style(t,"opacity",o[5]?1:0,!1)},m(a,m){n.insert(a,t,m);for(let b=0;b<e.length;b+=1)e[b].m(t,null);d=n.add_resize_listener(t,o[12].bind(t)),i=!0},p(a,m){m[0]&71&&(l=a[1],n.group_outros(),e=n.update_keyed_each(e,m,u,1,a,l,s,t,n.outro_and_destroy_block,Z,null,X),n.check_outros()),m[0]&32&&n.set_style(t,"opacity",a[5]?1:0,!1)},i(a){if(!i){for(let m=0;m<l.length;m+=1)n.transition_in(e[m]);i=!0}},o(a){for(let m=0;m<e.length;m+=1)n.transition_out(e[m]);i=!1},d(a){a&&n.detach(t);for(let m=0;m<e.length;m+=1)e[m].d();d()}}}let Ee=11;function Pe(o,t,e){const{Raycaster:s,Vector3:d}=G;let{five:i}=t,{modelOcclusionEnable:l}=t,{itemLabels:u}=t,{hooks:a}=t,{displayStrategyType:m}=t,{maxVisibleDistance:b}=t,c=null,h=null,k=(i==null?void 0:i.currentMode)===P.Five.Mode.Panorama,g,_,q=[],O=!0;const K=(f,w)=>{const y=f.camera.position.clone(),v=new d(w.modelPosition[0],w.modelPosition[1],w.modelPosition[2]),r=v.distanceTo(y);return b!==void 0&&f.state.mode===P.Five.Mode.Panorama&&r>b?!1:B(f,v.clone().sub(y).normalize(),y,r)},Q=f=>{const{camera:w,model:y}=i,{x:v,y:r,z:p}=f.clone().project(w),L=(v+1)/2,I=(2-(r+1))/2,j=Math.abs(p)<1&&[L,I].every(T=>T<1&&T>=0);return Boolean(j)},Y=(f,w)=>{const y=new d(w.modelPosition[0],w.modelPosition[1],w.modelPosition[2]),v=f.project2d(y),r=v==null?void 0:v.x,p=v==null?void 0:v.y;return[r,p]},$=(f,w)=>{const y=w.map(r=>{if(f.state.panoIndex!==r.panoIndex)return E(M({},r),{visible:!1});const p=Y(f,r);r.name.length*Ee;const L=Ie(r.modelPosition[1],m),I=f.currentMode===P.Five.Mode.Panorama?Q(new d(r.position[0],r.position[1],r.position[2])):!0,V=l?K(f,r):!1,F=I&&!V;if(!F)return E(M({},r),{visible:F});q.push(p);const j=qe(p);return E(M({},r),{visible:F,transform:j,strokeLength:L})}),v=y.filter(({visible:r})=>r).map(r=>({itemLabelItem:r,distance:new d(r.modelPosition[0],r.modelPosition[1],r.modelPosition[2]).clone().distanceTo(f.camera.position)})).sort((r,p)=>r.distance-p.distance);return y.map(r=>{const p=v.findIndex(L=>L.itemLabelItem.id===r.id);return p!==void 0?E(M({},r),{zIndex:p*10}):r})},C=()=>{q=[],e(1,h=$(i,h))},S=()=>{e(5,O=!1),ee()},ee=fe.debounce(()=>{e(5,O=!0),C()},300),R=()=>{i.once("renderFrame",C)},te=()=>{window.addEventListener("resize",R,!1)},ne=()=>{c!==u&&(e(1,h=W(u)),c=u,C())},oe=(f,w)=>{let y=[];for(let r=0;r<w.length;r++){const{position:p,panoIndex:L}=w[r],I=f.distanceTo(p);(b===void 0||I<=b||i.state.mode!==P.Five.Mode.Panorama)&&y.push({panoIndex:L,obVector:p,distance:I})}y=y.sort((r,p)=>r.distance-p.distance);let v;for(let r=0;r<y.length;r++){const{obVector:p,distance:L,panoIndex:I}=y[r];if(!B(i,f,p,L)){v=I;break}}return typeof v=="number"?w[v]:void 0},ie=f=>{if(i.state.mode===P.Five.Mode.Panorama)return;const w=i.work.observers,y=new d().fromArray(f.position),v=oe(y,w);if(v&&(f.observerIndex=v.panoIndex),typeof f.observerIndex=="number"){const r=w[f.observerIndex],p=y.clone().sub(r.position).normalize(),L={longitude:Math.PI+Math.atan2(p.x,p.z),latitude:Math.acos(p.y/p.length())-Math.PI/2};i.setState(E(M({},L),{mode:P.Five.Mode.Panorama,panoIndex:f.observerIndex})),i.once("initAnimationEnded",()=>{e(1,h=h.map(I=>E(M({},I),{isFold:I.id!==f.id}))),i.once("cameraUpdate",()=>{e(1,h=h.map(I=>E(M({},I),{isFold:!1})))})})}};D.beforeUpdate(()=>{ne()}),D.onMount(()=>{e(1,h=W(u)),c=u,C(),te(),i.on("cameraUpdate",S)}),D.onDestroy(()=>{i.off("cameraUpdate",S),window.removeEventListener("resize",R,!1)});function se(){g=this.clientWidth,_=this.clientHeight,e(3,g),e(4,_)}return o.$$set=f=>{"five"in f&&e(7,i=f.five),"modelOcclusionEnable"in f&&e(8,l=f.modelOcclusionEnable),"itemLabels"in f&&e(9,u=f.itemLabels),"hooks"in f&&e(0,a=f.hooks),"displayStrategyType"in f&&e(10,m=f.displayStrategyType),"maxVisibleDistance"in f&&e(11,b=f.maxVisibleDistance)},[a,h,k,g,_,O,ie,i,l,u,m,b,se]}class ze extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Pe,Me,n.safe_not_equal,{five:7,modelOcclusionEnable:8,itemLabels:9,hooks:0,displayStrategyType:10,maxVisibleDistance:11},Le,[-1,-1])}}function xe(o){return o.item_labels.map(t=>E(M({},t),{modelPosition:[t.position[0],t.position[1],t.position[2]],observerIndex:void 0}))}const Ce=void 0,J=(o,t)=>{var h,k,g,_;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:!0,itemLabels:[],wrapper:null,app:void 0,hooks:new P.Subscribe,modelOcclusionEnable:(h=t==null?void 0:t.modelOcclusionEnable)!=null?h:!0,onlyVisibleInPanorama:(k=t==null?void 0:t.onlyVisibleInPanorama)!=null?k:!0,displayStrategyType:(g=t==null?void 0:t.displayStrategyType)!=null?g:z.SMALL,maxVisibleDistance:(_=t==null?void 0:t.maxVisibleDistance)!=null?_:Ce};e.container.setAttribute("class","item-label-plugin-container"),e.container.style.cssText=`
|
|
4
|
+
position: absolute;
|
|
5
|
+
left: 0;
|
|
6
|
+
top: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
z-index: 5;
|
|
10
|
+
`,e.container.style.pointerEvents="none";const s=q=>(e.wrapper=q,q.appendChild(e.container),a(),!0),d=q=>{e.itemLabels=xe(q),a()},i=()=>(e.enabled||(e.enabled=!0,a()),!0),l=()=>(e.enabled&&(e.enabled=!1,a()),!0),u=()=>{b(),e.container.remove()},a=()=>{var q;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(q=e.app)==null||q.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:o,itemLabels:e.itemLabels}):e.app=new ze({target:e.container,props:{five:o,modelOcclusionEnable:e.modelOcclusionEnable,onlyVisibleInPanorama:e.onlyVisibleInPanorama,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType,maxVisibleDistance:e.maxVisibleDistance}})}},m=()=>{o.on("modeChange",c),o.once("dispose",u)},b=()=>{o.off("modeChange",c)},c=q=>{if(q!==P.Five.Mode.Panorama){e.fiveModeEnabled=!1,l();return}o.once("initAnimationEnded",()=>{e.fiveModeEnabled=!0,i()})};return m(),{appendTo:s,load:d,enable:i,disable:l,dispose:u,hooks:e.hooks}},Fe={name:"ItemLabelPlugin",version:0};exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=z;exports.ItemLabelPlugin=J;exports.default=J;exports.itemLabelPluginServerParams=Fe;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../chunks/es/Plugin.a98418f0.es.js";
|
|
2
|
+
import { ModelChassisCompassPlugin as r, ModelChassisCompassPlugin as t } from "../chunks/es/Plugin.a98418f0.es.js";
|
|
3
|
+
import "three";
|
|
4
|
+
import "three/examples/jsm/loaders/FBXLoader";
|
|
5
|
+
import "../chunks/es/transfromToMeshBasicMaterial.849ee069.es.js";
|
|
6
|
+
export {
|
|
7
|
+
r as ModelChassisCompassPlugin,
|
|
8
|
+
t as default
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/cjs/Plugin.5f616fb3.cjs.js");require("three");require("three/examples/jsm/loaders/FBXLoader");require("../chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js");exports.ModelChassisCompassPlugin=e.ModelChassisCompassPlugin;exports.default=e.ModelChassisCompassPlugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../chunks/es/Plugin.ae4ee6f8.es.js";
|
|
2
|
+
import { ModelEntryDoorGuidePlugin as u, ModelEntryDoorGuidePlugin as m } from "../chunks/es/Plugin.ae4ee6f8.es.js";
|
|
3
|
+
import "three";
|
|
4
|
+
import "three/examples/jsm/loaders/FBXLoader";
|
|
5
|
+
import "../chunks/es/transfromToMeshBasicMaterial.849ee069.es.js";
|
|
6
|
+
export {
|
|
7
|
+
u as ModelEntryDoorGuidePlugin,
|
|
8
|
+
m as default
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/cjs/Plugin.9971108a.cjs.js");require("three");require("three/examples/jsm/loaders/FBXLoader");require("../chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js");exports.ModelEntryDoorGuidePlugin=e.ModelEntryDoorGuidePlugin;exports.default=e.ModelEntryDoorGuidePlugin;
|