@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,66 @@
|
|
|
1
|
+
var f = (t, r, e) => new Promise((i, n) => {
|
|
2
|
+
var u = (a) => {
|
|
3
|
+
try {
|
|
4
|
+
d(e.next(a));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
n(c);
|
|
7
|
+
}
|
|
8
|
+
}, o = (a) => {
|
|
9
|
+
try {
|
|
10
|
+
d(e.throw(a));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
n(c);
|
|
13
|
+
}
|
|
14
|
+
}, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(u, o);
|
|
15
|
+
d((e = e.apply(t, r)).next());
|
|
16
|
+
});
|
|
17
|
+
import { nearlyEqual as M, changeMode as E } from "./changeModelCanvasOpacity.45ef9fd6.es.js";
|
|
18
|
+
function m(t) {
|
|
19
|
+
return f(this, null, function* () {
|
|
20
|
+
try {
|
|
21
|
+
return [null, yield t];
|
|
22
|
+
} catch (r) {
|
|
23
|
+
return r instanceof Error ? [r, null] : [new Error(""), null];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
var s = /* @__PURE__ */ ((t) => (t.UnknownError = "UnknownError", t.DataNotLoaded = "DataNotLoaded", t.BreakOffByHide = "BreakOffByHide", t.BreakOffByDisable = "BreakOffByDisable", t.ModelNotLoaded = "ModelNotLoaded", t.ChangeModeError = "ChangeModeError", t.UpdateCameraError = "UpdateCameraError", t))(s || {});
|
|
28
|
+
const B = 500, _ = 80;
|
|
29
|
+
function g(t, r) {
|
|
30
|
+
if (t.currentMode !== r.mode)
|
|
31
|
+
return !1;
|
|
32
|
+
const { latitude: e, longitude: i, fov: n } = r, { latitude: u, longitude: o } = t.getCurrentState(), d = t.camera.fov;
|
|
33
|
+
return !(!M(e, u, 2) || !M(i, o, 2) || n !== d);
|
|
34
|
+
}
|
|
35
|
+
function k(t, r, e = !0) {
|
|
36
|
+
return f(this, null, function* () {
|
|
37
|
+
if (g(t, r) === !0)
|
|
38
|
+
return;
|
|
39
|
+
const n = t.getCurrentState();
|
|
40
|
+
if (n.mode !== r.mode) {
|
|
41
|
+
const [l] = yield m(E(t, [r.mode, r, void 0, e]));
|
|
42
|
+
if (l)
|
|
43
|
+
throw new Error(s.ChangeModeError);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const { latitude: u, longitude: o, fov: d } = n, a = Math.min(
|
|
47
|
+
1e3,
|
|
48
|
+
Math.max(
|
|
49
|
+
200,
|
|
50
|
+
Math.abs(u - Math.PI / 2) * 1e3,
|
|
51
|
+
(o > Math.PI ? 2 * Math.PI - o : o) * 500,
|
|
52
|
+
Math.abs(d - r.fov) * 10
|
|
53
|
+
)
|
|
54
|
+
), [c] = yield m(t.updateCamera(r, a, e));
|
|
55
|
+
if (c)
|
|
56
|
+
throw new Error(s.UpdateCameraError);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
_ as FIVE_CAMERA_DEFAULT_FOV,
|
|
61
|
+
s as FloorplanErrorType,
|
|
62
|
+
B as SHOW_ANIME_DURATION,
|
|
63
|
+
g as checkShowState,
|
|
64
|
+
k as correctFiveState,
|
|
65
|
+
m as to
|
|
66
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function u(r) {
|
|
2
|
+
return Object.prototype.toString.call(r) === "[object Object]";
|
|
3
|
+
}
|
|
4
|
+
function s(r, e) {
|
|
5
|
+
return r === e ? !0 : typeof r != typeof e ? !1 : !!(Number.isNaN(r) && Number.isNaN(e));
|
|
6
|
+
}
|
|
7
|
+
function o(r, e) {
|
|
8
|
+
const t = Object.getOwnPropertyNames(r), n = Object.getOwnPropertyNames(e);
|
|
9
|
+
if (t.length !== n.length)
|
|
10
|
+
return !1;
|
|
11
|
+
for (let f = 0, l = t.length; f < l; f++) {
|
|
12
|
+
const i = t[f];
|
|
13
|
+
if (!s(r[i], e[i]))
|
|
14
|
+
return !1;
|
|
15
|
+
}
|
|
16
|
+
return !0;
|
|
17
|
+
}
|
|
18
|
+
function c(r, e) {
|
|
19
|
+
if (r.length !== e.length)
|
|
20
|
+
return !1;
|
|
21
|
+
for (let t = 0, n = r.length; t < n; t++)
|
|
22
|
+
if (!s(r[t], e[t]))
|
|
23
|
+
return !1;
|
|
24
|
+
return !0;
|
|
25
|
+
}
|
|
26
|
+
function p(r, e) {
|
|
27
|
+
return s(r, e) ? !0 : u(r) && u(e) ? o(r, e) : Array.isArray(r) && Array.isArray(e) ? c(r, e) : !1;
|
|
28
|
+
}
|
|
29
|
+
function a(r, e) {
|
|
30
|
+
return s(r, e) ? !0 : u(r) && u(e) ? g(r, e) : Array.isArray(r) && Array.isArray(e) ? y(r, e) : !1;
|
|
31
|
+
}
|
|
32
|
+
function y(r, e) {
|
|
33
|
+
if (r.length !== e.length)
|
|
34
|
+
return !1;
|
|
35
|
+
for (let t = 0, n = r.length; t < n; t++)
|
|
36
|
+
if (!a(r[t], e[t]))
|
|
37
|
+
return !1;
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
40
|
+
function g(r, e) {
|
|
41
|
+
const t = Object.getOwnPropertyNames(r), n = Object.getOwnPropertyNames(e);
|
|
42
|
+
if (t.length !== n.length)
|
|
43
|
+
return !1;
|
|
44
|
+
for (let f = 0, l = t.length; f < l; f++) {
|
|
45
|
+
const i = t[f];
|
|
46
|
+
if (!a(r[i], e[i]))
|
|
47
|
+
return !1;
|
|
48
|
+
}
|
|
49
|
+
return !0;
|
|
50
|
+
}
|
|
51
|
+
function b(r, e, t = { deep: !1 }) {
|
|
52
|
+
return t.deep ? a(r, e) : p(r, e);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
b as equal
|
|
56
|
+
};
|
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
var w = (o, e, t) => new Promise((n, r) => {
|
|
2
|
+
var i = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
s(t.next(l));
|
|
5
|
+
} catch (a) {
|
|
6
|
+
r(a);
|
|
7
|
+
}
|
|
8
|
+
}, f = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
s(t.throw(l));
|
|
11
|
+
} catch (a) {
|
|
12
|
+
r(a);
|
|
13
|
+
}
|
|
14
|
+
}, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, f);
|
|
15
|
+
s((t = t.apply(o, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { SvelteComponent as h, init as d, safe_not_equal as P, append_styles as y, element as x, src_url_equal as b, attr as c, insert as g, noop as m, detach as p, HtmlTag as R, space as O, append as B, group_outros as k, transition_out as v, check_outros as C, transition_in as A, create_component as _, mount_component as I, destroy_component as D, svg_element as N, listen as G, run_all as E, update_keyed_each as H, outro_and_destroy_block as L, assign as Q, empty as z, get_spread_update as J } from "svelte/internal";
|
|
18
|
+
const we = "data:image/png;base64,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";
|
|
19
|
+
function K(o) {
|
|
20
|
+
y(o, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
21
|
+
}
|
|
22
|
+
function U(o) {
|
|
23
|
+
let e, t;
|
|
24
|
+
return {
|
|
25
|
+
c() {
|
|
26
|
+
e = x("img"), b(e.src, t = o[0]) || c(e, "src", t), c(e, "alt", "floorplan iamge"), c(e, "class", "svelte-1gfoniz");
|
|
27
|
+
},
|
|
28
|
+
m(n, r) {
|
|
29
|
+
g(n, e, r);
|
|
30
|
+
},
|
|
31
|
+
p(n, [r]) {
|
|
32
|
+
r & 1 && !b(e.src, t = n[0]) && c(e, "src", t);
|
|
33
|
+
},
|
|
34
|
+
i: m,
|
|
35
|
+
o: m,
|
|
36
|
+
d(n) {
|
|
37
|
+
n && p(e);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function Y(o, e, t) {
|
|
42
|
+
let { url: n } = e;
|
|
43
|
+
return o.$$set = (r) => {
|
|
44
|
+
"url" in r && t(0, n = r.url);
|
|
45
|
+
}, [n];
|
|
46
|
+
}
|
|
47
|
+
class W extends h {
|
|
48
|
+
constructor(e) {
|
|
49
|
+
super(), d(this, e, Y, U, P, { url: 0 }, K);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function j(o) {
|
|
53
|
+
y(o, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
54
|
+
}
|
|
55
|
+
function T(o) {
|
|
56
|
+
let e, t, n, r;
|
|
57
|
+
return {
|
|
58
|
+
c() {
|
|
59
|
+
e = x("div"), t = new R(!1), n = O(), r = new R(!1), t.a = n, r.a = null, c(e, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
60
|
+
},
|
|
61
|
+
m(i, f) {
|
|
62
|
+
g(i, e, f), t.m(o[1], e), B(e, n), r.m(o[0], e);
|
|
63
|
+
},
|
|
64
|
+
p(i, [f]) {
|
|
65
|
+
f & 1 && r.p(i[0]);
|
|
66
|
+
},
|
|
67
|
+
i: m,
|
|
68
|
+
o: m,
|
|
69
|
+
d(i) {
|
|
70
|
+
i && p(e);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function S(o, e, t) {
|
|
75
|
+
let { content: n } = e;
|
|
76
|
+
const r = `
|
|
77
|
+
<style>
|
|
78
|
+
svg [type='lineGroup'] path {
|
|
79
|
+
fill: #ffffff;
|
|
80
|
+
stroke: #ffffff;
|
|
81
|
+
}
|
|
82
|
+
svg [type='lineItemGroup'] g g g g {
|
|
83
|
+
stroke: #ffffff;
|
|
84
|
+
}</style>
|
|
85
|
+
`;
|
|
86
|
+
return o.$$set = (i) => {
|
|
87
|
+
"content" in i && t(0, n = i.content);
|
|
88
|
+
}, [n, r];
|
|
89
|
+
}
|
|
90
|
+
class F extends h {
|
|
91
|
+
constructor(e) {
|
|
92
|
+
super(), d(this, e, S, T, P, { content: 0 }, j);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function Z(o) {
|
|
96
|
+
y(o, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
97
|
+
}
|
|
98
|
+
function X(o) {
|
|
99
|
+
let e, t;
|
|
100
|
+
return e = new W({ props: { url: o[1].url } }), {
|
|
101
|
+
c() {
|
|
102
|
+
_(e.$$.fragment);
|
|
103
|
+
},
|
|
104
|
+
m(n, r) {
|
|
105
|
+
I(e, n, r), t = !0;
|
|
106
|
+
},
|
|
107
|
+
p(n, r) {
|
|
108
|
+
const i = {};
|
|
109
|
+
r & 2 && (i.url = n[1].url), e.$set(i);
|
|
110
|
+
},
|
|
111
|
+
i(n) {
|
|
112
|
+
t || (A(e.$$.fragment, n), t = !0);
|
|
113
|
+
},
|
|
114
|
+
o(n) {
|
|
115
|
+
v(e.$$.fragment, n), t = !1;
|
|
116
|
+
},
|
|
117
|
+
d(n) {
|
|
118
|
+
D(e, n);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function V(o) {
|
|
123
|
+
let e, t;
|
|
124
|
+
return e = new F({
|
|
125
|
+
props: { content: o[0] }
|
|
126
|
+
}), {
|
|
127
|
+
c() {
|
|
128
|
+
_(e.$$.fragment);
|
|
129
|
+
},
|
|
130
|
+
m(n, r) {
|
|
131
|
+
I(e, n, r), t = !0;
|
|
132
|
+
},
|
|
133
|
+
p(n, r) {
|
|
134
|
+
const i = {};
|
|
135
|
+
r & 1 && (i.content = n[0]), e.$set(i);
|
|
136
|
+
},
|
|
137
|
+
i(n) {
|
|
138
|
+
t || (A(e.$$.fragment, n), t = !0);
|
|
139
|
+
},
|
|
140
|
+
o(n) {
|
|
141
|
+
v(e.$$.fragment, n), t = !1;
|
|
142
|
+
},
|
|
143
|
+
d(n) {
|
|
144
|
+
D(e, n);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function $(o) {
|
|
149
|
+
let e, t, n, r;
|
|
150
|
+
const i = [V, X], f = [];
|
|
151
|
+
function s(l, a) {
|
|
152
|
+
return l[0] ? 0 : l[1] ? 1 : -1;
|
|
153
|
+
}
|
|
154
|
+
return ~(t = s(o)) && (n = f[t] = i[t](o)), {
|
|
155
|
+
c() {
|
|
156
|
+
e = x("div"), n && n.c(), c(e, "class", "floorplan-plugin__base-image svelte-ozpg4a");
|
|
157
|
+
},
|
|
158
|
+
m(l, a) {
|
|
159
|
+
g(l, e, a), ~t && f[t].m(e, null), r = !0;
|
|
160
|
+
},
|
|
161
|
+
p(l, [a]) {
|
|
162
|
+
let u = t;
|
|
163
|
+
t = s(l), t === u ? ~t && f[t].p(l, a) : (n && (k(), v(f[u], 1, 1, () => {
|
|
164
|
+
f[u] = null;
|
|
165
|
+
}), C()), ~t ? (n = f[t], n ? n.p(l, a) : (n = f[t] = i[t](l), n.c()), A(n, 1), n.m(e, null)) : n = null);
|
|
166
|
+
},
|
|
167
|
+
i(l) {
|
|
168
|
+
r || (A(n), r = !0);
|
|
169
|
+
},
|
|
170
|
+
o(l) {
|
|
171
|
+
v(n), r = !1;
|
|
172
|
+
},
|
|
173
|
+
d(l) {
|
|
174
|
+
l && p(e), ~t && f[t].d();
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function ee(o, e, t) {
|
|
179
|
+
let n, r, { floorIndex: i } = e, { floorplanData: f } = e;
|
|
180
|
+
return o.$$set = (s) => {
|
|
181
|
+
"floorIndex" in s && t(2, i = s.floorIndex), "floorplanData" in s && t(3, f = s.floorplanData);
|
|
182
|
+
}, o.$$.update = () => {
|
|
183
|
+
var s, l;
|
|
184
|
+
o.$$.dirty & 12 && t(1, n = f.outlines[i]), o.$$.dirty & 12 && t(0, r = (l = (s = f.outlines) == null ? void 0 : s[i]) == null ? void 0 : l.svgContent);
|
|
185
|
+
}, [r, n, i, f];
|
|
186
|
+
}
|
|
187
|
+
class xe extends h {
|
|
188
|
+
constructor(e) {
|
|
189
|
+
super(), d(this, e, ee, $, P, { floorIndex: 2, floorplanData: 3 }, Z);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function oe(o, e = {}) {
|
|
193
|
+
let t = "";
|
|
194
|
+
const { needZ: n, needA: r } = e;
|
|
195
|
+
return (n ? o.slice().concat(o[0]) : o.slice()).forEach((f, s) => {
|
|
196
|
+
const { x: l, y: a } = e.format ? e.format(f) : f, u = l + "," + a;
|
|
197
|
+
return s === 0 ? (t += "M" + u, t) : r != null && r[s] ? (t += "A" + r[s] + "," + u, t) : (t += "L" + u, t);
|
|
198
|
+
}), t + (n ? "Z" : "");
|
|
199
|
+
}
|
|
200
|
+
function ne({ x: o, y: e }, t) {
|
|
201
|
+
const { max: n, min: r } = t;
|
|
202
|
+
return { x: o - r.x, y: n.y - e };
|
|
203
|
+
}
|
|
204
|
+
function te(o, e) {
|
|
205
|
+
const t = o.x * 1e3 + e.bounding.origin.x, n = -o.z * 1e3 + e.bounding.origin.y;
|
|
206
|
+
return { x: t, y: n };
|
|
207
|
+
}
|
|
208
|
+
function re(o, e) {
|
|
209
|
+
const t = e.bounding, n = t.max.x - t.min.x, r = t.max.y - t.min.y;
|
|
210
|
+
return {
|
|
211
|
+
x: (o.x - t.min.x) / n,
|
|
212
|
+
y: (t.max.y - o.y) / r
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function le(o, e) {
|
|
216
|
+
return Math.max(
|
|
217
|
+
...e.work.observers.map((n) => o.z >= n.standingPosition.z ? n.floorIndex : 0)
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
function ie(o) {
|
|
221
|
+
y(o, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
222
|
+
}
|
|
223
|
+
function se(o) {
|
|
224
|
+
let e, t, n;
|
|
225
|
+
return {
|
|
226
|
+
c() {
|
|
227
|
+
e = N("path"), c(e, "d", o[2]), c(e, "fill", "#fff"), c(e, "class", "svelte-19uvvss");
|
|
228
|
+
},
|
|
229
|
+
m(r, i) {
|
|
230
|
+
g(r, e, i), t || (n = [
|
|
231
|
+
G(e, "mouseenter", o[0]),
|
|
232
|
+
G(e, "mouseleave", o[1])
|
|
233
|
+
], t = !0);
|
|
234
|
+
},
|
|
235
|
+
p: m,
|
|
236
|
+
i: m,
|
|
237
|
+
o: m,
|
|
238
|
+
d(r) {
|
|
239
|
+
r && p(e), t = !1, E(n);
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function fe(o, e, t) {
|
|
244
|
+
let { room: n } = e, { floorplanData: r } = e, { hoveredRoom: i } = e;
|
|
245
|
+
function f() {
|
|
246
|
+
i.set(n);
|
|
247
|
+
}
|
|
248
|
+
function s() {
|
|
249
|
+
i.set(void 0);
|
|
250
|
+
}
|
|
251
|
+
const { bounding: l } = r, a = oe(n.path, {
|
|
252
|
+
needZ: !0,
|
|
253
|
+
format: (u) => ne(u, l)
|
|
254
|
+
});
|
|
255
|
+
return o.$$set = (u) => {
|
|
256
|
+
"room" in u && t(3, n = u.room), "floorplanData" in u && t(4, r = u.floorplanData), "hoveredRoom" in u && t(5, i = u.hoveredRoom);
|
|
257
|
+
}, [f, s, a, n, r, i];
|
|
258
|
+
}
|
|
259
|
+
class ae extends h {
|
|
260
|
+
constructor(e) {
|
|
261
|
+
super(), d(
|
|
262
|
+
this,
|
|
263
|
+
e,
|
|
264
|
+
fe,
|
|
265
|
+
se,
|
|
266
|
+
P,
|
|
267
|
+
{
|
|
268
|
+
room: 3,
|
|
269
|
+
floorplanData: 4,
|
|
270
|
+
hoveredRoom: 5
|
|
271
|
+
},
|
|
272
|
+
ie
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
function ue(o) {
|
|
277
|
+
y(o, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
|
|
278
|
+
}
|
|
279
|
+
function q(o, e, t) {
|
|
280
|
+
const n = o.slice();
|
|
281
|
+
return n[5] = e[t], n;
|
|
282
|
+
}
|
|
283
|
+
function M(o, e) {
|
|
284
|
+
let t, n, r;
|
|
285
|
+
const i = [
|
|
286
|
+
{
|
|
287
|
+
room: e[5],
|
|
288
|
+
floorplanData: e[1],
|
|
289
|
+
hoveredRoom: e[2]
|
|
290
|
+
}
|
|
291
|
+
];
|
|
292
|
+
let f = {};
|
|
293
|
+
for (let s = 0; s < i.length; s += 1)
|
|
294
|
+
f = Q(f, i[s]);
|
|
295
|
+
return n = new ae({ props: f }), {
|
|
296
|
+
key: o,
|
|
297
|
+
first: null,
|
|
298
|
+
c() {
|
|
299
|
+
t = z(), _(n.$$.fragment), this.first = t;
|
|
300
|
+
},
|
|
301
|
+
m(s, l) {
|
|
302
|
+
g(s, t, l), I(n, s, l), r = !0;
|
|
303
|
+
},
|
|
304
|
+
p(s, l) {
|
|
305
|
+
e = s;
|
|
306
|
+
const a = l & 7 ? J(i, [
|
|
307
|
+
{
|
|
308
|
+
room: e[5],
|
|
309
|
+
floorplanData: e[1],
|
|
310
|
+
hoveredRoom: e[2]
|
|
311
|
+
}
|
|
312
|
+
]) : {};
|
|
313
|
+
n.$set(a);
|
|
314
|
+
},
|
|
315
|
+
i(s) {
|
|
316
|
+
r || (A(n.$$.fragment, s), r = !0);
|
|
317
|
+
},
|
|
318
|
+
o(s) {
|
|
319
|
+
v(n.$$.fragment, s), r = !1;
|
|
320
|
+
},
|
|
321
|
+
d(s) {
|
|
322
|
+
s && p(t), D(n, s);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function ce(o) {
|
|
327
|
+
let e, t, n = [], r = /* @__PURE__ */ new Map(), i, f = o[1].floorDatas[o[0]].rooms;
|
|
328
|
+
const s = (l) => l[5].id;
|
|
329
|
+
for (let l = 0; l < f.length; l += 1) {
|
|
330
|
+
let a = q(o, f, l), u = s(a);
|
|
331
|
+
r.set(u, n[l] = M(u, a));
|
|
332
|
+
}
|
|
333
|
+
return {
|
|
334
|
+
c() {
|
|
335
|
+
e = x("div"), t = N("svg");
|
|
336
|
+
for (let l = 0; l < n.length; l += 1)
|
|
337
|
+
n[l].c();
|
|
338
|
+
c(t, "width", "100%"), c(t, "height", "100%"), c(t, "viewBox", `0 0 ${o[3]} ${o[4]}`), c(t, "class", "svelte-1kqo6e4"), c(e, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
|
|
339
|
+
},
|
|
340
|
+
m(l, a) {
|
|
341
|
+
g(l, e, a), B(e, t);
|
|
342
|
+
for (let u = 0; u < n.length; u += 1)
|
|
343
|
+
n[u].m(t, null);
|
|
344
|
+
i = !0;
|
|
345
|
+
},
|
|
346
|
+
p(l, [a]) {
|
|
347
|
+
a & 7 && (f = l[1].floorDatas[l[0]].rooms, k(), n = H(n, a, s, 1, l, f, r, t, L, M, null, q), C());
|
|
348
|
+
},
|
|
349
|
+
i(l) {
|
|
350
|
+
if (!i) {
|
|
351
|
+
for (let a = 0; a < f.length; a += 1)
|
|
352
|
+
A(n[a]);
|
|
353
|
+
i = !0;
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
o(l) {
|
|
357
|
+
for (let a = 0; a < n.length; a += 1)
|
|
358
|
+
v(n[a]);
|
|
359
|
+
i = !1;
|
|
360
|
+
},
|
|
361
|
+
d(l) {
|
|
362
|
+
l && p(e);
|
|
363
|
+
for (let a = 0; a < n.length; a += 1)
|
|
364
|
+
n[a].d();
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function me(o, e, t) {
|
|
369
|
+
let { floorIndex: n } = e, { floorplanData: r } = e, { hoveredRoom: i } = e;
|
|
370
|
+
const f = r.bounding.max.x - r.bounding.min.x, s = r.bounding.max.y - r.bounding.min.y;
|
|
371
|
+
return o.$$set = (l) => {
|
|
372
|
+
"floorIndex" in l && t(0, n = l.floorIndex), "floorplanData" in l && t(1, r = l.floorplanData), "hoveredRoom" in l && t(2, i = l.hoveredRoom);
|
|
373
|
+
}, [n, r, i, f, s];
|
|
374
|
+
}
|
|
375
|
+
class _e extends h {
|
|
376
|
+
constructor(e) {
|
|
377
|
+
super(), d(
|
|
378
|
+
this,
|
|
379
|
+
e,
|
|
380
|
+
me,
|
|
381
|
+
ce,
|
|
382
|
+
P,
|
|
383
|
+
{
|
|
384
|
+
floorIndex: 0,
|
|
385
|
+
floorplanData: 1,
|
|
386
|
+
hoveredRoom: 2
|
|
387
|
+
},
|
|
388
|
+
ue
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
const ve = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";
|
|
393
|
+
function Ae(o) {
|
|
394
|
+
return w(this, null, function* () {
|
|
395
|
+
const e = new Headers({ "Content-Type": "text/plain" }), t = function(r) {
|
|
396
|
+
return w(this, null, function* () {
|
|
397
|
+
const i = {
|
|
398
|
+
index: r.index,
|
|
399
|
+
url: r.url,
|
|
400
|
+
svgUrl: r.svg_url
|
|
401
|
+
};
|
|
402
|
+
if (r.svg_url) {
|
|
403
|
+
const f = yield fetch(r.svg_url, { headers: e }).then((s) => s.text());
|
|
404
|
+
i.svgContent = f;
|
|
405
|
+
}
|
|
406
|
+
return i;
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
return yield Promise.all(o.map(t));
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
function ge(o) {
|
|
413
|
+
return {
|
|
414
|
+
id: o.id,
|
|
415
|
+
size: o.size,
|
|
416
|
+
name: o.name,
|
|
417
|
+
path: o.path,
|
|
418
|
+
roomType: o.room_type,
|
|
419
|
+
floorType: o.floor_type,
|
|
420
|
+
roomLabel: {
|
|
421
|
+
position: o.room_label.position,
|
|
422
|
+
positionInImage: o.room_label.position_in_image
|
|
423
|
+
},
|
|
424
|
+
observerIndexs: o.observer_indexs
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
function pe(o) {
|
|
428
|
+
return {
|
|
429
|
+
floorName: o.floor_name,
|
|
430
|
+
floorIndex: o.floor_index,
|
|
431
|
+
rooms: o.rooms.map(ge),
|
|
432
|
+
rules: o.rules
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
function he(o) {
|
|
436
|
+
return {
|
|
437
|
+
index: o.index,
|
|
438
|
+
floorIndex: o.floor_index,
|
|
439
|
+
position: o.position,
|
|
440
|
+
positionInImage: o.position_in_image
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
function de(o) {
|
|
444
|
+
return {
|
|
445
|
+
rad: o.rad,
|
|
446
|
+
position: o.position,
|
|
447
|
+
positionInImage: o.position_in_image,
|
|
448
|
+
northRad: o.north_rad,
|
|
449
|
+
roomId: o.room_id,
|
|
450
|
+
floorIndex: o.floor_index
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function Ie(o) {
|
|
454
|
+
return w(this, null, function* () {
|
|
455
|
+
const e = yield Ae(o.outlines), t = o.computed_data.bounding, n = o.computed_data.floor_datas.map(pe), r = o.computed_data.entrance ? de(o.computed_data.entrance) : null;
|
|
456
|
+
return {
|
|
457
|
+
outlines: e,
|
|
458
|
+
entrance: r,
|
|
459
|
+
bounding: t,
|
|
460
|
+
floorDatas: n,
|
|
461
|
+
observers: o.computed_data.observers.map(he)
|
|
462
|
+
};
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
function De(o, e, t) {
|
|
466
|
+
return o.map((r) => {
|
|
467
|
+
const i = r.position, f = r.icon ? r.icon : {
|
|
468
|
+
url: ve,
|
|
469
|
+
width: 45,
|
|
470
|
+
height: 48
|
|
471
|
+
}, s = le(i, e), l = te(i, t), a = re(l, t);
|
|
472
|
+
return { floorIndex: s, icon: f, id: r.id, position: l, positionInImage: a };
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
export {
|
|
476
|
+
xe as BaseImage,
|
|
477
|
+
we as CAMERA_IMAGE,
|
|
478
|
+
_e as RoomHighlight,
|
|
479
|
+
Ie as formatData,
|
|
480
|
+
De as formatExtraObjects,
|
|
481
|
+
ne as formatFloorplanPoint,
|
|
482
|
+
oe as pathD
|
|
483
|
+
};
|