@realsee/dnalogel 2.1.2-alpha.1 → 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/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 +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +327 -1
- package/libs/CSS3DRenderPlugin/Controller.js +83 -1
- package/libs/CSS3DRenderPlugin/index.js +5 -1
- package/libs/CSS3DRenderPlugin/typing.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -1
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +10 -1
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -1
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +6 -1
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +87 -1
- package/libs/CameraMovementPlugin/index.js +3 -1
- package/libs/CameraMovementPlugin/typing.js +5 -1
- package/libs/CruisePlugin/Controller.js +484 -1
- package/libs/CruisePlugin/index.js +5 -1
- package/libs/CruisePlugin/utils/coordinatesAngle.js +8 -1
- package/libs/CruisePlugin/utils/coordinatesToVector.js +12 -1
- package/libs/CruisePlugin/utils/formatRad.js +7 -1
- package/libs/CruisePlugin/utils/linerValue.js +7 -1
- package/libs/CruisePlugin/utils/safeCall.js +28 -1
- package/libs/CruisePlugin/utils/sleep.js +10 -1
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +10 -1
- package/libs/GuideLinePlugin/Controller.js +143 -1
- package/libs/GuideLinePlugin/index.js +5 -1
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +13 -1
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +273 -1
- package/libs/ItemLabelPlugin/ItemLabelItem.js +133 -2
- package/libs/ItemLabelPlugin/Plugin.js +75 -2
- package/libs/ItemLabelPlugin/index.js +12 -1
- package/libs/ItemLabelPlugin/typings.js +4 -1
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +4 -1
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -1
- package/libs/ItemLabelPlugin/utils/isImpacted.js +10 -1
- package/libs/ItemLabelPlugin/utils/parseData.js +21 -1
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +21 -1
- package/libs/ModelChassisCompassPlugin/Plugin.js +70 -1
- package/libs/ModelChassisCompassPlugin/index.js +2 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +77 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -1
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +213 -1
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +42 -2
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +73 -2
- package/libs/ModelItemLabelPlugin/events.type.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +12 -1
- package/libs/ModelItemLabelPlugin/typings.js +4 -1
- package/libs/ModelItemLabelPlugin/utils/parseData.js +19 -1
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -1
- package/libs/ModelRoomLabelPlugin/Controller.js +60 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +45 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +163 -1
- package/libs/ModelRoomLabelPlugin/index.js +9 -1
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +16 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +163 -1
- package/libs/ModelTVVideoPlugin/index.js +2 -1
- package/libs/ModelTVVideoPlugin/typings.js +4 -1
- package/libs/ModelTVVideoPlugin/utils/parseData.js +20 -1
- package/libs/ModelViewPlugin/Plugin.js +106 -1
- package/libs/ModelViewPlugin/index.js +2 -1
- package/libs/Object3DHelperPlugin/Controller.js +145 -1
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +31 -1
- package/libs/Object3DHelperPlugin/index.js +5 -1
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -1
- package/libs/PanoCompassPlugin/Controller.js +224 -1
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +24 -1
- package/libs/PanoCompassPlugin/index.js +5 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +58 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +59 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +219 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +65 -1
- package/libs/PanoDoorLabelPlugin/index.js +5 -1
- package/libs/PanoDoorLabelPlugin/utils.js +23 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +102 -1
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +125 -1
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -1
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +90 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +154 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +140 -1
- package/libs/PanoMeasurePlugin/Model/index.js +92 -1
- package/libs/PanoMeasurePlugin/Model/line.js +56 -1
- package/libs/PanoMeasurePlugin/Model/point.js +30 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +47 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +5 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +67 -3
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +28 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +41 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +12 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +48 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +8 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +62 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +6 -2
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -1
- package/libs/PanoMeasurePlugin/index.js +10 -1
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -1
- package/libs/PanoMeasurePlugin/utils/constants.js +36 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +62 -1
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +15 -1
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -1
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -1
- package/libs/PanoMeasurePlugin/utils/ironbox.js +4 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -1
- package/libs/PanoMeasurePlugin/utils/line.js +17 -1
- package/libs/PanoMeasurePlugin/utils/math.js +12 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +33 -3
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +8 -1
- package/libs/PanoRulerPlugin/Plugin.js +262 -2
- package/libs/PanoRulerPlugin/index.js +2 -1
- package/libs/PanoRulerPlugin/style.js +5 -2
- package/libs/PanoRulerProPlugin/Controller.js +93 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +128 -1
- package/libs/PanoRulerProPlugin/RulerItems.js +183 -1
- package/libs/PanoRulerProPlugin/index.js +5 -1
- package/libs/PanoSpatialTagPlugin/Components/origins.js +82 -1
- package/libs/PanoSpatialTagPlugin/Components/tag.js +125 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +246 -1
- package/libs/PanoSpatialTagPlugin/index.js +6 -1
- package/libs/PanoSpatialTagPlugin/store.js +5 -1
- package/libs/PanoSpatialTagPlugin/style.js +11 -1
- package/libs/PanoSpatialTagPlugin/typings.js +1 -1
- package/libs/PanoTagPlugin/Assets/Icon.js +6 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +103 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +166 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +90 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +400 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +139 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +180 -1
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +52 -1
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +52 -1
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +169 -1
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +124 -15
- package/libs/PanoTagPlugin/Components/Common/Text.js +131 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +140 -1
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +73 -1
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +214 -1
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +127 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +259 -1
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +106 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +134 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +318 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +200 -1
- package/libs/PanoTagPlugin/Components/TagWrapper.js +191 -1
- package/libs/PanoTagPlugin/controller/TagCacheController.js +31 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +264 -1
- package/libs/PanoTagPlugin/controller/index.js +376 -1
- package/libs/PanoTagPlugin/index.js +5 -1
- package/libs/PanoTagPlugin/tag.config.js +43 -1
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +1 -1
- package/libs/PanoTagPlugin/typings/tag.js +7 -1
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -1
- package/libs/PanoTagPlugin/utils/checkRange.js +10 -1
- package/libs/PanoTagPlugin/utils/constants.js +7 -1
- package/libs/PanoTagPlugin/utils/debounce.js +12 -1
- package/libs/PanoTagPlugin/utils/doUtil.js +12 -1
- package/libs/PanoTagPlugin/utils/index.js +1 -1
- package/libs/PanoTagPlugin/utils/noTypecheck.js +4 -1
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +13 -1
- package/libs/PanoTagPlugin/utils/planeNormal.js +11 -1
- package/libs/PanoTagPlugin/utils/resizeObserver.js +17 -1
- package/libs/PanoTagPlugin/utils/search.js +15 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +13 -1
- package/libs/PanoTagPlugin/utils/throttle.js +11 -1
- package/libs/base/BasePlugin.js +18 -1
- package/libs/base/BasePluginWithData.js +6 -1
- package/libs/components/PaintBrush/Controller.js +308 -1
- package/libs/components/PaintBrush/Subscribe.js +47 -1
- package/libs/components/PaintBrush/index.js +45 -1
- package/libs/components/PaintBrush/style.js +5 -2
- package/libs/components/PaintBrush/tween.js +11 -1
- package/libs/components/PaintBrush/typings.js +4 -1
- package/libs/components/PaintBrush/utils.js +45 -1
- package/libs/components/index.js +2 -1
- package/libs/floorplan/Assets/camera.js +4 -1
- package/libs/floorplan/Assets/compass.js +4 -1
- package/libs/floorplan/Assets/floorplanExtraObject.js +4 -1
- package/libs/floorplan/Components/BaseImage.js +103 -1
- package/libs/floorplan/Components/Camera.js +62 -1
- package/libs/floorplan/Components/Compass.js +60 -1
- package/libs/floorplan/Components/CurrentFloor.js +256 -1
- package/libs/floorplan/Components/Main.js +283 -1
- package/libs/floorplan/Components/Normalmage.js +37 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +61 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +122 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +153 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +175 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +134 -1
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +139 -1
- package/libs/floorplan/Components/SvgImage.js +39 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +321 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +316 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +133 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +192 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +273 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -1
- package/libs/floorplan/constant.js +4 -1
- package/libs/floorplan/index.js +6 -1
- package/libs/floorplan/typings/floorplanData.js +1 -1
- package/libs/floorplan/typings/floorplanServerData.js +101 -1
- package/libs/floorplan/utils/constant.js +7 -1
- package/libs/floorplan/utils/correctFiveState.js +54 -1
- package/libs/floorplan/utils/formatData.js +104 -1
- package/libs/floorplan/utils/formatPosition.js +35 -1
- package/libs/index.js +346 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +151 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -1
- package/libs/shared-utils/Object3DHelper/Constants/color.js +20 -1
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -1
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +66 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +134 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -1
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -1
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -1
- package/libs/shared-utils/Object3DHelper/index.js +169 -1
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -1
- package/libs/shared-utils/Object3DHelper/utils/direction.js +22 -1
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -1
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -1
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -1
- package/libs/shared-utils/Subscribe.js +50 -1
- package/libs/shared-utils/animationFrame/BetterTween.js +26 -1
- package/libs/shared-utils/animationFrame/calculateProgress.js +6 -1
- package/libs/shared-utils/animationFrame/formatRad.js +11 -1
- package/libs/shared-utils/animationFrame/index.js +28 -1
- package/libs/shared-utils/animationFrame/tween.js +28 -1
- package/libs/shared-utils/changeModelCanvasOpacity.js +12 -1
- package/libs/shared-utils/createCanvasTextTexture.js +11 -1
- package/libs/shared-utils/createLine/index.js +9 -1
- package/libs/shared-utils/debounce.js +11 -1
- package/libs/shared-utils/equal.js +54 -1
- package/libs/shared-utils/filter.js +10 -1
- package/libs/shared-utils/five/changeMode.js +39 -1
- package/libs/shared-utils/getPxmm.js +20 -1
- package/libs/shared-utils/index.js +35 -1
- package/libs/shared-utils/isNil.js +10 -1
- package/libs/shared-utils/isTruelyObject.js +6 -1
- package/libs/shared-utils/math/Interval.js +23 -1
- package/libs/shared-utils/math/Rectangle.js +23 -1
- package/libs/shared-utils/math/index.js +1 -1
- package/libs/shared-utils/math/planimetry.js +43 -1
- package/libs/shared-utils/math/rad2Deg.js +6 -1
- package/libs/shared-utils/nearlyEqual.js +6 -1
- package/libs/shared-utils/nextFrame.js +6 -1
- package/libs/shared-utils/noop.js +5 -1
- package/libs/shared-utils/object3d2LocalMatrix.js +18 -1
- package/libs/shared-utils/removeArrayItem.js +8 -1
- package/libs/shared-utils/tap.js +6 -1
- package/libs/shared-utils/three/Assets/index.js +4 -1
- package/libs/shared-utils/three/FivePointSelector.js +49 -1
- package/libs/shared-utils/three/Magnifier.js +104 -1
- package/libs/shared-utils/three/PointDomHelper.js +60 -1
- package/libs/shared-utils/three/PointHelper.js +60 -3
- package/libs/shared-utils/three/getCoords.js +13 -1
- package/libs/shared-utils/three/getIntersect.js +8 -1
- package/libs/shared-utils/three/getRaycaster.js +12 -1
- package/libs/shared-utils/three/index.js +6 -1
- package/libs/shared-utils/three/loadTexture.js +28 -1
- package/libs/shared-utils/three/transformPositionToVector3.js +5 -1
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +24 -1
- package/libs/shared-utils/throttle.js +11 -1
- package/libs/shared-utils/tinyEJSrender.js +138 -14
- package/libs/shared-utils/to.js +28 -1
- package/libs/shared-utils/uuid.js +9 -1
- package/libs/vendor/swiper/components-shared/get-changed-params.js +29 -1
- package/libs/vendor/swiper/components-shared/get-params.js +23 -1
- package/libs/vendor/swiper/components-shared/mount-swiper.js +14 -1
- package/libs/vendor/swiper/components-shared/params-list.js +120 -1
- package/libs/vendor/swiper/components-shared/update-swiper.js +36 -1
- package/libs/vendor/swiper/components-shared/utils.js +32 -1
- package/libs/vendor/swiper/svelte/swiper-slide.js +182 -1
- package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -1
- package/libs/vendor/swiper/svelte/swiper.js +254 -1
- package/package.json +13 -181
- package/dist/index.es.js +0 -16650
- package/dist/index.js +0 -16650
- package/dist/index.umd.js +0 -556
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
var E = Object.defineProperty, O = Object.defineProperties;
|
|
2
|
+
var H = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var M = Object.getOwnPropertySymbols;
|
|
4
|
+
var W = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var k = (t, i, e) => i in t ? E(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e, m = (t, i) => {
|
|
6
|
+
for (var e in i || (i = {}))
|
|
7
|
+
W.call(i, e) && k(t, e, i[e]);
|
|
8
|
+
if (M)
|
|
9
|
+
for (var e of M(i))
|
|
10
|
+
B.call(i, e) && k(t, e, i[e]);
|
|
11
|
+
return t;
|
|
12
|
+
}, L = (t, i) => O(t, H(i));
|
|
13
|
+
var u = (t, i, e) => (k(t, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
|
+
import { Vector3 as z, Raycaster as R, Quaternion as j, Euler as _ } from "three";
|
|
15
|
+
import { Five as F } from "@realsee/five";
|
|
16
|
+
import { Controller as q } from "../chunks/es/BasePlugin.813e25f7.es.js";
|
|
17
|
+
import { SvelteComponent as N, init as U, safe_not_equal as G, append_styles as Q, element as x, space as X, attr as D, null_to_empty as T, insert as Y, append as I, listen as Z, noop as A, detach as J, binding_callbacks as K } from "svelte/internal";
|
|
18
|
+
import S from "classnames";
|
|
19
|
+
import "../chunks/es/Subscribe.c73e0f91.es.js";
|
|
20
|
+
class $ extends q {
|
|
21
|
+
constructor(e) {
|
|
22
|
+
super(e);
|
|
23
|
+
u(this, "state");
|
|
24
|
+
u(this, "container");
|
|
25
|
+
u(this, "enabled");
|
|
26
|
+
this.five = e, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
27
|
+
}
|
|
28
|
+
enable(e) {
|
|
29
|
+
this.enabled = !0, this.updateState(L(m({}, e), { userAction: !0 }));
|
|
30
|
+
}
|
|
31
|
+
disable(e) {
|
|
32
|
+
this.enabled = !1, this.updateState(L(m({}, e), { userAction: !0 }));
|
|
33
|
+
}
|
|
34
|
+
show(e) {
|
|
35
|
+
if (!!this.state.enabled)
|
|
36
|
+
return this.setState(L(m({}, this.state), { visible: !0 }), e), Promise.resolve();
|
|
37
|
+
}
|
|
38
|
+
hide(e) {
|
|
39
|
+
if (!!this.state.enabled)
|
|
40
|
+
return this.setState(L(m({}, this.state), { visible: !1 }), e), Promise.resolve();
|
|
41
|
+
}
|
|
42
|
+
dispose() {
|
|
43
|
+
this.container.remove();
|
|
44
|
+
}
|
|
45
|
+
setState(e, o) {
|
|
46
|
+
if (!this.enabled)
|
|
47
|
+
return;
|
|
48
|
+
const s = m({}, this.state);
|
|
49
|
+
this.state = m(m(m({}, this.state), e), o), this.stateChangedCallback(s, o);
|
|
50
|
+
}
|
|
51
|
+
get visible() {
|
|
52
|
+
return this.five.state.mode === F.Mode.Panorama;
|
|
53
|
+
}
|
|
54
|
+
appendTo(e) {
|
|
55
|
+
!this.enabled || (this.container = e, this.render());
|
|
56
|
+
}
|
|
57
|
+
updateState(e) {
|
|
58
|
+
this.setState(L(m({}, this.state), { enabled: this.enabled, visible: this.visible }), e);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function ee(t) {
|
|
62
|
+
Q(t, "svelte-wpy7pz", '.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}');
|
|
63
|
+
}
|
|
64
|
+
function te(t) {
|
|
65
|
+
let i, e, o, s, c, d, r, l;
|
|
66
|
+
return {
|
|
67
|
+
c() {
|
|
68
|
+
i = x("div"), e = x("div"), o = x("span"), o.textContent = `${t[8]}`, s = X(), c = x("i"), D(o, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), D(c, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), D(e, "class", d = T(S("plugin-DoorLabelPlugin-cnt", t[0].toward)) + " svelte-wpy7pz"), D(e, "style", `transform: ${t[6] || "initial"};pointer-events: ${t[5] ? "auto" : "none"};opacity: ${t[5] ? 1 : 0}`), D(e, "data-camera-toward", t[7]), D(i, "style", `left: ${t[3] || 0}%;top: ${t[4] || 0}%;opacity: ${t[5] ? 1 : 0}`), D(i, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
|
|
69
|
+
},
|
|
70
|
+
m(p, n) {
|
|
71
|
+
Y(p, i, n), I(i, e), I(e, o), I(e, s), I(e, c), t[10](i), r || (l = Z(e, "click", t[9]), r = !0);
|
|
72
|
+
},
|
|
73
|
+
p(p, [n]) {
|
|
74
|
+
n & 1 && d !== (d = T(S("plugin-DoorLabelPlugin-cnt", p[0].toward)) + " svelte-wpy7pz") && D(e, "class", d);
|
|
75
|
+
},
|
|
76
|
+
i: A,
|
|
77
|
+
o: A,
|
|
78
|
+
d(p) {
|
|
79
|
+
p && J(i), t[10](null), r = !1, l();
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function ie(t, i, e) {
|
|
84
|
+
let { props: o } = i, { onClick: s } = i, c, { left: d, top: r, inSight: l, transform: p, panoIndex: n, cameraToward: a, name: h } = o, g = 0;
|
|
85
|
+
const v = () => {
|
|
86
|
+
if (!d || !r || !l || !c)
|
|
87
|
+
return;
|
|
88
|
+
const f = c.current.clientWidth / window.innerWidth * 100, b = c.current.clientHeight / window.innerHeight * 100;
|
|
89
|
+
if (d <= f / 2 || d >= 100 - f / 2 || r <= b / 2 || r >= 100 - b / 2)
|
|
90
|
+
return;
|
|
91
|
+
n !== g && (console.log("panoDoorLabelPlugin", n, "\u89E6\u53D1\u57CB\u70B9"), g = n);
|
|
92
|
+
}, P = (f) => {
|
|
93
|
+
s && s();
|
|
94
|
+
};
|
|
95
|
+
function w(f) {
|
|
96
|
+
K[f ? "unshift" : "push"](() => {
|
|
97
|
+
c = f, e(2, c);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
return t.$$set = (f) => {
|
|
101
|
+
"props" in f && e(0, o = f.props), "onClick" in f && e(1, s = f.onClick);
|
|
102
|
+
}, v(), [
|
|
103
|
+
o,
|
|
104
|
+
s,
|
|
105
|
+
c,
|
|
106
|
+
d,
|
|
107
|
+
r,
|
|
108
|
+
l,
|
|
109
|
+
p,
|
|
110
|
+
a,
|
|
111
|
+
h,
|
|
112
|
+
P,
|
|
113
|
+
w
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
class oe extends N {
|
|
117
|
+
constructor(i) {
|
|
118
|
+
super(), U(this, i, ie, te, G, { props: 0, onClick: 1 }, ee);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function ne(t, i) {
|
|
122
|
+
const e = Math.abs(t.top + t.height / 2 - i.top - i.height / 2), o = Math.abs(t.left + t.width / 2 - i.left - i.width / 2), s = (t.height + i.height) / 2, c = (t.width + i.width) / 2;
|
|
123
|
+
return !(e > s && o > c);
|
|
124
|
+
}
|
|
125
|
+
function se(t) {
|
|
126
|
+
const { camera: i } = t, e = i.getWorldDirection(new z());
|
|
127
|
+
let o = Math.atan(e.z / e.x) * 180 / Math.PI, s = "";
|
|
128
|
+
return e.x < 0 && (o += 180), o < 0 && (o += 360), o > 315 || o <= 45 ? s = "right" : o > 45 && o <= 135 ? s = "back" : o > 135 && o <= 225 ? s = "left" : o > 225 && o <= 315 && (s = "forward"), s;
|
|
129
|
+
}
|
|
130
|
+
function re(t, i) {
|
|
131
|
+
return Math.sqrt(Math.pow(t.z - i.z, 2) + Math.pow(t.x - i.x, 2));
|
|
132
|
+
}
|
|
133
|
+
function ae(t) {
|
|
134
|
+
const i = Math.PI / 4;
|
|
135
|
+
return t > -i && t <= i ? "left" : t > i * 3 || t <= -i * 3 ? "right" : t > -i * 3 && t <= -i ? "forward" : t > i && t <= i * 3 ? "back" : "";
|
|
136
|
+
}
|
|
137
|
+
const le = { userAction: !0 };
|
|
138
|
+
class ce extends $ {
|
|
139
|
+
constructor(e) {
|
|
140
|
+
super(e);
|
|
141
|
+
u(this, "MinVisibledistance", 1.8);
|
|
142
|
+
u(this, "MaxVisibledistance", 5);
|
|
143
|
+
u(this, "OffsetHeight", -1.3);
|
|
144
|
+
u(this, "rooms");
|
|
145
|
+
u(this, "floorplanServerData");
|
|
146
|
+
u(this, "doorLabelItems");
|
|
147
|
+
u(this, "visibleLabelMap", /* @__PURE__ */ new Map());
|
|
148
|
+
u(this, "labelItems", []);
|
|
149
|
+
u(this, "doorLabels");
|
|
150
|
+
u(this, "roomObservers");
|
|
151
|
+
u(this, "loadData", (e, o) => {
|
|
152
|
+
o && (this.MaxVisibledistance = o.MaxVisibledistance, this.MinVisibledistance = o.MinVisibledistance, this.OffsetHeight = o.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((s) => {
|
|
153
|
+
s.$destroy();
|
|
154
|
+
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, this.five.once("panoArrived", () => {
|
|
155
|
+
console.log("doorplugin", "panoArrived"), this.initData();
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
u(this, "initRoomObservers", () => {
|
|
159
|
+
var c, d;
|
|
160
|
+
const e = this.floorplanServerData.computed_data.floor_datas || [], s = (((d = (c = this.five) == null ? void 0 : c.work) == null ? void 0 : d.observers) || []).map((r) => {
|
|
161
|
+
const l = r.panoIndex, p = r.floorIndex, n = e == null ? void 0 : e.find((a) => a.floor_index === p);
|
|
162
|
+
if (n) {
|
|
163
|
+
const a = n.rooms.find((h) => h.observer_indexs.includes(l));
|
|
164
|
+
if (a)
|
|
165
|
+
return { panoIndex: l, floorIndex: p, name: a.name };
|
|
166
|
+
}
|
|
167
|
+
}).filter(Boolean);
|
|
168
|
+
this.roomObservers = s;
|
|
169
|
+
});
|
|
170
|
+
u(this, "hideAllLabels", () => {
|
|
171
|
+
this.labelItems.forEach((e) => {
|
|
172
|
+
e.visible = !1, e.inSight = !1;
|
|
173
|
+
}), this.render();
|
|
174
|
+
});
|
|
175
|
+
u(this, "fixDoorVisibleAndPosition", () => {
|
|
176
|
+
this.initRoomObservers();
|
|
177
|
+
const { panoIndex: e } = this.five;
|
|
178
|
+
if (!this.visible || this.five.model.empty || e === null || !this.roomObservers.find((r) => r.panoIndex === e))
|
|
179
|
+
return;
|
|
180
|
+
const o = this.roomObservers.find((r) => r.panoIndex === e), c = this.five.work.observers.find((r) => r.panoIndex === e).position.clone(), d = (() => {
|
|
181
|
+
if (this.visibleLabelMap.has(e))
|
|
182
|
+
return this.visibleLabelMap.get(e);
|
|
183
|
+
{
|
|
184
|
+
const r = [];
|
|
185
|
+
return this.doorLabels.forEach((l, p) => {
|
|
186
|
+
if (l.roomName === o.name)
|
|
187
|
+
return;
|
|
188
|
+
const n = l.position.clone(), a = n.distanceTo(c);
|
|
189
|
+
if (a < this.MinVisibledistance || a > this.MaxVisibledistance)
|
|
190
|
+
return;
|
|
191
|
+
const h = new R(), g = n.clone().sub(c).normalize();
|
|
192
|
+
h.set(c, g);
|
|
193
|
+
const [v] = this.five.model.intersectRaycaster(h);
|
|
194
|
+
v && v.distance + 0.1 < a || r.push(p);
|
|
195
|
+
}), this.visibleLabelMap.set(e, r), r;
|
|
196
|
+
}
|
|
197
|
+
})();
|
|
198
|
+
this.labelItems.forEach((r, l) => {
|
|
199
|
+
r.visible = d.includes(l);
|
|
200
|
+
}), this.fixDoorPosition();
|
|
201
|
+
});
|
|
202
|
+
u(this, "fixDoorPosition", () => {
|
|
203
|
+
const { panoIndex: e, camera: o } = this.five;
|
|
204
|
+
if (e === null)
|
|
205
|
+
return;
|
|
206
|
+
if (this.five.currentMode !== "Panorama")
|
|
207
|
+
return this.hideAllLabels();
|
|
208
|
+
const s = this.five.getElement(), c = s.clientWidth, d = s.clientHeight, r = o.getWorldDirection(new z()), l = [], p = [...this.labelItems];
|
|
209
|
+
if (p.forEach((n, a) => {
|
|
210
|
+
if (n.visible) {
|
|
211
|
+
const h = o.position.distanceTo(n.position), g = n.position.clone().add(new z(0, this.OffsetHeight, 0)), P = g.clone().sub(o.position).normalize().angleTo(r), w = g.clone().project(o), f = (w.x + 1) / 2.2 * 100, b = (-w.y + 1) / 2.2 * 100, y = f >= 0 && f <= 100 && b >= 0 && b <= 100 && h > this.MinVisibledistance && h <= this.MaxVisibledistance;
|
|
212
|
+
n.left = f, n.top = b, n.inSight = y && P < Math.PI / 2, n.cameraToward = se(this.five), y ? l.push({ disFromCameraToLabel: h, left: f, top: b, index: a }) : n.transform = "translate(-50%, -50%)";
|
|
213
|
+
} else
|
|
214
|
+
n.inSight = !1;
|
|
215
|
+
}), l.length > 1) {
|
|
216
|
+
let n = 0;
|
|
217
|
+
l.sort((a, h) => h.disFromCameraToLabel - a.disFromCameraToLabel);
|
|
218
|
+
for (let a = 1; a < l.length; a++) {
|
|
219
|
+
const { index: h, left: g, top: v } = l[a - 1], { index: P, left: w, top: f } = l[a], b = this.container.children[h], y = this.container.children[P];
|
|
220
|
+
if (!b || !y)
|
|
221
|
+
return;
|
|
222
|
+
const C = {
|
|
223
|
+
left: c * g / 100,
|
|
224
|
+
top: d * v / 100,
|
|
225
|
+
width: b.children[0].clientWidth,
|
|
226
|
+
height: b.children[0].clientHeight
|
|
227
|
+
}, V = {
|
|
228
|
+
left: c * w / 100,
|
|
229
|
+
top: d * f / 100,
|
|
230
|
+
width: y.children[0].clientWidth,
|
|
231
|
+
height: y.children[0].clientHeight
|
|
232
|
+
};
|
|
233
|
+
ne(C, V) && (n++, p[h].transform = `translate(-50%, ${(n - 1) * 100 - 50}%)`, p[P].transform = `translate(-50%, ${n * 100 - 50}%)`);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
this.labelItems = p, this.render();
|
|
237
|
+
});
|
|
238
|
+
u(this, "onClick", (e, o) => {
|
|
239
|
+
if (!this.roomObservers)
|
|
240
|
+
return;
|
|
241
|
+
const { work: s } = this.five;
|
|
242
|
+
let c, d, r = 1 / 0;
|
|
243
|
+
for (let l = 0; l < s.observers.length; l++) {
|
|
244
|
+
if (this.roomObservers[l].name !== e)
|
|
245
|
+
continue;
|
|
246
|
+
const n = s.observers[l].standingPosition, a = o.distanceTo(n);
|
|
247
|
+
a < r && (c = l, d = n.clone().sub(o).normalize(), r = a);
|
|
248
|
+
}
|
|
249
|
+
if (d !== null && c !== null) {
|
|
250
|
+
const l = {};
|
|
251
|
+
if (r > 0) {
|
|
252
|
+
const n = new z(0, 0, -1), a = d.clone(), h = new j();
|
|
253
|
+
h.setFromUnitVectors(n, a);
|
|
254
|
+
const g = new _();
|
|
255
|
+
g.setFromQuaternion(h, "YXZ"), l.longitude = g.y;
|
|
256
|
+
}
|
|
257
|
+
this.five.emit("wantsToMoveToPano", c, {}, !0) || this.five.moveToPano(c, { longitude: l.longitude });
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
u(this, "initData", () => {
|
|
261
|
+
var c;
|
|
262
|
+
this.doorLabels = [];
|
|
263
|
+
const e = this.five.panoIndex, o = this.floorplanServerData.computed_data.observers[e].floor_index, s = o !== void 0 && ((c = this.floorplanServerData.computed_data.floor_datas[o]) == null ? void 0 : c.rooms);
|
|
264
|
+
this.rooms = s, this.rooms && this.rooms.length > 0 && this.rooms.forEach((d) => {
|
|
265
|
+
var p;
|
|
266
|
+
const r = (p = this.floorplanServerData.computed_data.doors) == null ? void 0 : p.filter((n) => !!(n && n.name === d.name)), l = this.five.work.observers.filter((n, a) => !!d.observer_indexs.find((h) => h === a));
|
|
267
|
+
r && r.forEach((n) => {
|
|
268
|
+
const a = n.position;
|
|
269
|
+
let h = 1 / 0, g;
|
|
270
|
+
l.forEach((P) => {
|
|
271
|
+
const w = P.standingPosition, f = {
|
|
272
|
+
x: w.x,
|
|
273
|
+
y: w.y,
|
|
274
|
+
z: w.z
|
|
275
|
+
}, b = re(a, f);
|
|
276
|
+
b < h && (h = b, g = f);
|
|
277
|
+
}), g && (a.y = g.y + 0.01);
|
|
278
|
+
const v = new z(a.x, a.y, a.z);
|
|
279
|
+
v.add(new z(-0.2, 1.8, 0).applyEuler(new _(0, n.rad, 0))), this.doorLabels.push({
|
|
280
|
+
roomName: d.name,
|
|
281
|
+
name: n.name,
|
|
282
|
+
position: v,
|
|
283
|
+
toward: ae(n.rad)
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
}), this.labelItems = this.doorLabels.map((d) => L(m({}, d), {
|
|
287
|
+
left: 0,
|
|
288
|
+
top: 0,
|
|
289
|
+
visible: !1,
|
|
290
|
+
inSight: !1,
|
|
291
|
+
transform: "",
|
|
292
|
+
cameraToward: ""
|
|
293
|
+
})), console.log("doorplugin", "labelItems", this.labelItems), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("modelLoaded", this.fixDoorVisibleAndPosition), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
stateChangedCallback(e, o) {
|
|
297
|
+
if (this.hooks.hasListener("stateChange")) {
|
|
298
|
+
const s = {
|
|
299
|
+
state: this.state,
|
|
300
|
+
prevState: e,
|
|
301
|
+
userAction: o ? o.userAction : le.userAction
|
|
302
|
+
};
|
|
303
|
+
this.hooks.emit("stateChange", s);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
render() {
|
|
307
|
+
if (!this.enabled) {
|
|
308
|
+
this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((e) => {
|
|
309
|
+
e == null || e.$destroy();
|
|
310
|
+
}), this.doorLabels = void 0;
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
this.doorLabelItems && this.doorLabelItems.forEach((e) => {
|
|
314
|
+
e.$destroy();
|
|
315
|
+
}), this.doorLabelItems = [], this.labelItems.forEach((e) => {
|
|
316
|
+
this.doorLabelItems.push(
|
|
317
|
+
new oe({
|
|
318
|
+
target: this.container,
|
|
319
|
+
props: {
|
|
320
|
+
props: e,
|
|
321
|
+
onClick: () => {
|
|
322
|
+
this.onClick(e.name, e.position);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
})
|
|
326
|
+
);
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
initState() {
|
|
330
|
+
return { enabled: !0, visible: !0 };
|
|
331
|
+
}
|
|
332
|
+
dispose() {
|
|
333
|
+
this.five && (this.five.off("wantsToMoveToPano", this.hideAllLabels), this.five.off("modelLoaded", this.fixDoorVisibleAndPosition), this.five.off("panoArrived", this.fixDoorVisibleAndPosition), this.five.off("initAnimationEnded", this.fixDoorPosition), this.five.off("cameraUpdate", this.fixDoorPosition), this.five.off("mouseWheel", this.fixDoorPosition), this.five.off("pinchGesture", this.fixDoorPosition), super.dispose());
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
const me = (t) => new ce(t);
|
|
337
|
+
export {
|
|
338
|
+
me as PanoDoorLabelPlugin,
|
|
339
|
+
me as default
|
|
340
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var S=Object.defineProperty,T=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var x=(t,i,e)=>i in t?S(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,v=(t,i)=>{for(var e in i||(i={}))C.call(i,e)&&x(t,e,i[e]);if(I)for(var e of I(i))E.call(i,e)&&x(t,e,i[e]);return t},z=(t,i)=>T(t,A(i));var g=(t,i,e)=>(x(t,typeof i!="symbol"?i+"":i,e),e);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("three"),O=require("@realsee/five"),j=require("../chunks/cjs/BasePlugin.57e5204f.cjs.js"),d=require("svelte/internal"),H=require("classnames");require("../chunks/cjs/Subscribe.5398d5c6.cjs.js");const W=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},k=W(H);class q extends j.Controller{constructor(e){super(e);g(this,"state");g(this,"container");g(this,"enabled");this.five=e,this.five.once("dispose",this.dispose),this.enabled=!0,this.state=this.initState()}enable(e){this.enabled=!0,this.updateState(z(v({},e),{userAction:!0}))}disable(e){this.enabled=!1,this.updateState(z(v({},e),{userAction:!0}))}show(e){if(!!this.state.enabled)return this.setState(z(v({},this.state),{visible:!0}),e),Promise.resolve()}hide(e){if(!!this.state.enabled)return this.setState(z(v({},this.state),{visible:!1}),e),Promise.resolve()}dispose(){this.container.remove()}setState(e,o){if(!this.enabled)return;const s=v({},this.state);this.state=v(v(v({},this.state),e),o),this.stateChangedCallback(s,o)}get visible(){return this.five.state.mode===O.Five.Mode.Panorama}appendTo(e){!this.enabled||(this.container=e,this.render())}updateState(e){this.setState(z(v({},this.state),{enabled:this.enabled,visible:this.visible}),e)}}function B(t){d.append_styles(t,"svelte-wpy7pz",'.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}')}function R(t){let i,e,o,s,c,h,r,l;return{c(){i=d.element("div"),e=d.element("div"),o=d.element("span"),o.textContent=`${t[8]}`,s=d.space(),c=d.element("i"),d.attr(o,"class","plugin-DoorLabelPlugin-txt svelte-wpy7pz"),d.attr(c,"class","plugin-DoorLabelPlugin-icon svelte-wpy7pz"),d.attr(e,"class",h=d.null_to_empty(k.default("plugin-DoorLabelPlugin-cnt",t[0].toward))+" svelte-wpy7pz"),d.attr(e,"style",`transform: ${t[6]||"initial"};pointer-events: ${t[5]?"auto":"none"};opacity: ${t[5]?1:0}`),d.attr(e,"data-camera-toward",t[7]),d.attr(i,"style",`left: ${t[3]||0}%;top: ${t[4]||0}%;opacity: ${t[5]?1:0}`),d.attr(i,"class","plugin-DoorLabelPlugin-item svelte-wpy7pz")},m(u,n){d.insert(u,i,n),d.append(i,e),d.append(e,o),d.append(e,s),d.append(e,c),t[10](i),r||(l=d.listen(e,"click",t[9]),r=!0)},p(u,[n]){n&1&&h!==(h=d.null_to_empty(k.default("plugin-DoorLabelPlugin-cnt",u[0].toward))+" svelte-wpy7pz")&&d.attr(e,"class",h)},i:d.noop,o:d.noop,d(u){u&&d.detach(i),t[10](null),r=!1,l()}}}function F(t,i,e){let{props:o}=i,{onClick:s}=i,c,{left:h,top:r,inSight:l,transform:u,panoIndex:n,cameraToward:a,name:p}=o,b=0;const w=()=>{if(!h||!r||!l||!c)return;const f=c.current.clientWidth/window.innerWidth*100,m=c.current.clientHeight/window.innerHeight*100;if(h<=f/2||h>=100-f/2||r<=m/2||r>=100-m/2)return;n!==b&&(console.log("panoDoorLabelPlugin",n,"\u89E6\u53D1\u57CB\u70B9"),b=n)},D=f=>{s&&s()};function P(f){d.binding_callbacks[f?"unshift":"push"](()=>{c=f,e(2,c)})}return t.$$set=f=>{"props"in f&&e(0,o=f.props),"onClick"in f&&e(1,s=f.onClick)},w(),[o,s,c,h,r,l,u,a,p,D,P]}class N extends d.SvelteComponent{constructor(i){super(),d.init(this,i,F,R,d.safe_not_equal,{props:0,onClick:1},B)}}function U(t,i){const e=Math.abs(t.top+t.height/2-i.top-i.height/2),o=Math.abs(t.left+t.width/2-i.left-i.width/2),s=(t.height+i.height)/2,c=(t.width+i.width)/2;return!(e>s&&o>c)}function G(t){const{camera:i}=t,e=i.getWorldDirection(new y.Vector3);let o=Math.atan(e.z/e.x)*180/Math.PI,s="";return e.x<0&&(o+=180),o<0&&(o+=360),o>315||o<=45?s="right":o>45&&o<=135?s="back":o>135&&o<=225?s="left":o>225&&o<=315&&(s="forward"),s}function Q(t,i){return Math.sqrt(Math.pow(t.z-i.z,2)+Math.pow(t.x-i.x,2))}function X(t){const i=Math.PI/4;return t>-i&&t<=i?"left":t>i*3||t<=-i*3?"right":t>-i*3&&t<=-i?"forward":t>i&&t<=i*3?"back":""}const Y={userAction:!0};class Z extends q{constructor(e){super(e);g(this,"MinVisibledistance",1.8);g(this,"MaxVisibledistance",5);g(this,"OffsetHeight",-1.3);g(this,"rooms");g(this,"floorplanServerData");g(this,"doorLabelItems");g(this,"visibleLabelMap",new Map);g(this,"labelItems",[]);g(this,"doorLabels");g(this,"roomObservers");g(this,"loadData",(e,o)=>{o&&(this.MaxVisibledistance=o.MaxVisibledistance,this.MinVisibledistance=o.MinVisibledistance,this.OffsetHeight=o.OffsetHeight),this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(s=>{s.$destroy()}),this.labelItems=[],this.doorLabels=[],this.doorLabelItems=[],this.floorplanServerData=e,this.five.once("panoArrived",()=>{console.log("doorplugin","panoArrived"),this.initData()})});g(this,"initRoomObservers",()=>{var c,h;const e=this.floorplanServerData.computed_data.floor_datas||[],s=(((h=(c=this.five)==null?void 0:c.work)==null?void 0:h.observers)||[]).map(r=>{const l=r.panoIndex,u=r.floorIndex,n=e==null?void 0:e.find(a=>a.floor_index===u);if(n){const a=n.rooms.find(p=>p.observer_indexs.includes(l));if(a)return{panoIndex:l,floorIndex:u,name:a.name}}}).filter(Boolean);this.roomObservers=s});g(this,"hideAllLabels",()=>{this.labelItems.forEach(e=>{e.visible=!1,e.inSight=!1}),this.render()});g(this,"fixDoorVisibleAndPosition",()=>{this.initRoomObservers();const{panoIndex:e}=this.five;if(!this.visible||this.five.model.empty||e===null||!this.roomObservers.find(r=>r.panoIndex===e))return;const o=this.roomObservers.find(r=>r.panoIndex===e),c=this.five.work.observers.find(r=>r.panoIndex===e).position.clone(),h=(()=>{if(this.visibleLabelMap.has(e))return this.visibleLabelMap.get(e);{const r=[];return this.doorLabels.forEach((l,u)=>{if(l.roomName===o.name)return;const n=l.position.clone(),a=n.distanceTo(c);if(a<this.MinVisibledistance||a>this.MaxVisibledistance)return;const p=new y.Raycaster,b=n.clone().sub(c).normalize();p.set(c,b);const[w]=this.five.model.intersectRaycaster(p);w&&w.distance+.1<a||r.push(u)}),this.visibleLabelMap.set(e,r),r}})();this.labelItems.forEach((r,l)=>{r.visible=h.includes(l)}),this.fixDoorPosition()});g(this,"fixDoorPosition",()=>{const{panoIndex:e,camera:o}=this.five;if(e===null)return;if(this.five.currentMode!=="Panorama")return this.hideAllLabels();const s=this.five.getElement(),c=s.clientWidth,h=s.clientHeight,r=o.getWorldDirection(new y.Vector3),l=[],u=[...this.labelItems];if(u.forEach((n,a)=>{if(n.visible){const p=o.position.distanceTo(n.position),b=n.position.clone().add(new y.Vector3(0,this.OffsetHeight,0)),D=b.clone().sub(o.position).normalize().angleTo(r),P=b.clone().project(o),f=(P.x+1)/2.2*100,m=(-P.y+1)/2.2*100,L=f>=0&&f<=100&&m>=0&&m<=100&&p>this.MinVisibledistance&&p<=this.MaxVisibledistance;n.left=f,n.top=m,n.inSight=L&&D<Math.PI/2,n.cameraToward=G(this.five),L?l.push({disFromCameraToLabel:p,left:f,top:m,index:a}):n.transform="translate(-50%, -50%)"}else n.inSight=!1}),l.length>1){let n=0;l.sort((a,p)=>p.disFromCameraToLabel-a.disFromCameraToLabel);for(let a=1;a<l.length;a++){const{index:p,left:b,top:w}=l[a-1],{index:D,left:P,top:f}=l[a],m=this.container.children[p],L=this.container.children[D];if(!m||!L)return;const M={left:c*b/100,top:h*w/100,width:m.children[0].clientWidth,height:m.children[0].clientHeight},V={left:c*P/100,top:h*f/100,width:L.children[0].clientWidth,height:L.children[0].clientHeight};U(M,V)&&(n++,u[p].transform=`translate(-50%, ${(n-1)*100-50}%)`,u[D].transform=`translate(-50%, ${n*100-50}%)`)}}this.labelItems=u,this.render()});g(this,"onClick",(e,o)=>{if(!this.roomObservers)return;const{work:s}=this.five;let c,h,r=1/0;for(let l=0;l<s.observers.length;l++){if(this.roomObservers[l].name!==e)continue;const n=s.observers[l].standingPosition,a=o.distanceTo(n);a<r&&(c=l,h=n.clone().sub(o).normalize(),r=a)}if(h!==null&&c!==null){const l={};if(r>0){const n=new y.Vector3(0,0,-1),a=h.clone(),p=new y.Quaternion;p.setFromUnitVectors(n,a);const b=new y.Euler;b.setFromQuaternion(p,"YXZ"),l.longitude=b.y}this.five.emit("wantsToMoveToPano",c,{},!0)||this.five.moveToPano(c,{longitude:l.longitude})}});g(this,"initData",()=>{var c;this.doorLabels=[];const e=this.five.panoIndex,o=this.floorplanServerData.computed_data.observers[e].floor_index,s=o!==void 0&&((c=this.floorplanServerData.computed_data.floor_datas[o])==null?void 0:c.rooms);this.rooms=s,this.rooms&&this.rooms.length>0&&this.rooms.forEach(h=>{var u;const r=(u=this.floorplanServerData.computed_data.doors)==null?void 0:u.filter(n=>!!(n&&n.name===h.name)),l=this.five.work.observers.filter((n,a)=>!!h.observer_indexs.find(p=>p===a));r&&r.forEach(n=>{const a=n.position;let p=1/0,b;l.forEach(D=>{const P=D.standingPosition,f={x:P.x,y:P.y,z:P.z},m=Q(a,f);m<p&&(p=m,b=f)}),b&&(a.y=b.y+.01);const w=new y.Vector3(a.x,a.y,a.z);w.add(new y.Vector3(-.2,1.8,0).applyEuler(new y.Euler(0,n.rad,0))),this.doorLabels.push({roomName:h.name,name:n.name,position:w,toward:X(n.rad)})})}),this.labelItems=this.doorLabels.map(h=>z(v({},h),{left:0,top:0,visible:!1,inSight:!1,transform:"",cameraToward:""})),console.log("doorplugin","labelItems",this.labelItems),this.five.on("wantsToMoveToPano",this.hideAllLabels),this.five.on("modelLoaded",this.fixDoorVisibleAndPosition),this.five.on("panoArrived",this.fixDoorVisibleAndPosition),this.five.on("initAnimationEnded",this.fixDoorPosition),this.five.on("cameraUpdate",this.fixDoorPosition),this.five.on("mouseWheel",this.fixDoorPosition),this.five.on("pinchGesture",this.fixDoorPosition),this.fixDoorVisibleAndPosition()})}stateChangedCallback(e,o){if(this.hooks.hasListener("stateChange")){const s={state:this.state,prevState:e,userAction:o?o.userAction:Y.userAction};this.hooks.emit("stateChange",s)}}render(){if(!this.enabled){this.doorLabelItems&&this.doorLabelItems.length>0&&this.doorLabelItems.forEach(e=>{e==null||e.$destroy()}),this.doorLabels=void 0;return}this.doorLabelItems&&this.doorLabelItems.forEach(e=>{e.$destroy()}),this.doorLabelItems=[],this.labelItems.forEach(e=>{this.doorLabelItems.push(new N({target:this.container,props:{props:e,onClick:()=>{this.onClick(e.name,e.position)}}}))})}initState(){return{enabled:!0,visible:!0}}dispose(){this.five&&(this.five.off("wantsToMoveToPano",this.hideAllLabels),this.five.off("modelLoaded",this.fixDoorVisibleAndPosition),this.five.off("panoArrived",this.fixDoorVisibleAndPosition),this.five.off("initAnimationEnded",this.fixDoorPosition),this.five.off("cameraUpdate",this.fixDoorPosition),this.five.off("mouseWheel",this.fixDoorPosition),this.five.off("pinchGesture",this.fixDoorPosition),super.dispose())}}const _=t=>new Z(t);exports.PanoDoorLabelPlugin=_;exports.default=_;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Magnifier as f, PanoMeasurePlugin as g, PanoMeasurePlugin as l } from "../chunks/es/index.f74f4851.es.js";
|
|
2
|
+
import "hammerjs";
|
|
3
|
+
import "three";
|
|
4
|
+
import "@realsee/five";
|
|
5
|
+
import "../chunks/es/uuid.676cb2c8.es.js";
|
|
6
|
+
import "@realsee/five/line";
|
|
7
|
+
import "../chunks/es/throttle.db66bac3.es.js";
|
|
8
|
+
import "../chunks/es/filter.97ec06c4.es.js";
|
|
9
|
+
import "@tweenjs/tween.js";
|
|
10
|
+
import "../chunks/es/index.b8fdb59b.es.js";
|
|
11
|
+
export {
|
|
12
|
+
f as Magnifier,
|
|
13
|
+
g as PanoMeasurePlugin,
|
|
14
|
+
l as default
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/cjs/index.686e84d1.cjs.js");require("hammerjs");require("three");require("@realsee/five");require("../chunks/cjs/uuid.29ed9c88.cjs.js");require("@realsee/five/line");require("../chunks/cjs/throttle.86c209eb.cjs.js");require("../chunks/cjs/filter.cf9ebbb3.cjs.js");require("@tweenjs/tween.js");require("../chunks/cjs/index.7d2010ce.cjs.js");exports.Magnifier=e.Magnifier;exports.PanoMeasurePlugin=e.PanoMeasurePlugin;exports.default=e.PanoMeasurePlugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../chunks/es/Plugin.f4cf895f.es.js";
|
|
2
|
+
import { PanoRulerPlugin as t, PanoRulerPlugin as P } from "../chunks/es/Plugin.f4cf895f.es.js";
|
|
3
|
+
import "@realsee/five";
|
|
4
|
+
import "three";
|
|
5
|
+
import "../chunks/es/planimetry.b0b4a28d.es.js";
|
|
6
|
+
export {
|
|
7
|
+
t as PanoRulerPlugin,
|
|
8
|
+
P 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.609da4aa.cjs.js");require("@realsee/five");require("three");require("../chunks/cjs/planimetry.7fce816a.cjs.js");exports.PanoRulerPlugin=e.PanoRulerPlugin;exports.default=e.PanoRulerPlugin;
|