@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
|
@@ -28,16 +28,16 @@ var f = (h, o, e) => new Promise((t, i) => {
|
|
|
28
28
|
r((e = e.apply(h, o)).next());
|
|
29
29
|
});
|
|
30
30
|
import { to as M } from "../../shared-utils/to.js";
|
|
31
|
-
import x from "../../shared-utils/equal.js";
|
|
31
|
+
import { equal as x } from "../../shared-utils/equal.js";
|
|
32
32
|
import y from "../Components/Main.js";
|
|
33
|
-
import g from "../utils/formatData.js";
|
|
33
|
+
import { formatData as g } from "../utils/formatData.js";
|
|
34
34
|
import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
|
|
35
35
|
import { omit as L } from "../../shared-utils/filter.js";
|
|
36
|
-
import D from "../../shared-utils/getPxmm.js";
|
|
36
|
+
import { getPxmm as D } from "../../shared-utils/getPxmm.js";
|
|
37
37
|
import { FLOOR_PLAN_ATTACHED_TO as O } from "../constant.js";
|
|
38
38
|
import { Controller as k } from "../../base/BasePluginWithData.js";
|
|
39
|
-
import
|
|
40
|
-
import F from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
39
|
+
import { checkShowState as T, correctFiveState as B } from "../utils/correctFiveState.js";
|
|
40
|
+
import { changeModelCanvasOpacity as F } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
41
41
|
import { FIVE_CAMERA_DEFAULT_FOV as G, FloorplanErrorType as c, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
|
|
42
42
|
function W(h) {
|
|
43
43
|
const { latitude: o, longitude: e } = h, t = Math.abs(o - Math.PI / 2) > 5 * Math.PI / 180, i = e > 5 * (Math.PI / 180) && e < 355 * (Math.PI / 180);
|
|
@@ -81,7 +81,7 @@ class ee extends k {
|
|
|
81
81
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
82
82
|
}));
|
|
83
83
|
s(this, "updateSize", () => {
|
|
84
|
-
if (!this.data || !
|
|
84
|
+
if (!this.data || !T(this.five, this.showState) || !this.container || !this.wrapper)
|
|
85
85
|
return;
|
|
86
86
|
const { min: e, max: t } = this.data.bounding, i = t.x - e.x, n = t.y - e.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = D(this.five, this.wrapper, this.floorIndex, d), a = Math.ceil(i * r), u = Math.ceil(n * r);
|
|
87
87
|
this.size.width === a && this.size.height === u || (this.container.style.width = a + "px", this.container.style.height = u + "px", this.size = { width: a, height: u });
|
|
@@ -116,7 +116,7 @@ class ee extends k {
|
|
|
116
116
|
this.showRejection = (A) => {
|
|
117
117
|
r = !0, a = A;
|
|
118
118
|
};
|
|
119
|
-
const [u] = yield M(
|
|
119
|
+
const [u] = yield M(B(this.five, this.showState, i.userAction));
|
|
120
120
|
if (u)
|
|
121
121
|
throw u;
|
|
122
122
|
if (r)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent as w, init as y, safe_not_equal as k, append_styles as T, element as p, attr as g, set_style as l, insert as W, append as x, noop as I, detach as P } from "svelte/internal";
|
|
2
2
|
import { onMount as S } from "svelte";
|
|
3
3
|
import { CAMERA_IMAGE as b } from "../../Assets/camera.js";
|
|
4
|
-
import E from "../../../shared-utils/throttle.js";
|
|
4
|
+
import { throttle as E } from "../../../shared-utils/throttle.js";
|
|
5
5
|
function F(n) {
|
|
6
6
|
T(n, "svelte-1nqrlxd", ".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
7
7
|
}
|
|
@@ -2,6 +2,10 @@ import { SvelteComponent as E, init as O, safe_not_equal as C, assign as D, crea
|
|
|
2
2
|
import F from "./ExtraObjects.js";
|
|
3
3
|
import q from "../../../Components/BaseImage.js";
|
|
4
4
|
import B from "../../../Components/RoomHighlight/RoomHighlight.js";
|
|
5
|
+
import "../../../Components/Normalmage.js";
|
|
6
|
+
import "../../../Components/SvgImage.js";
|
|
7
|
+
import "../../../Components/RoomHighlight/Room.js";
|
|
8
|
+
import "../../../utils/formatPosition.js";
|
|
5
9
|
function x(f) {
|
|
6
10
|
let n, l;
|
|
7
11
|
const i = [
|
|
@@ -112,7 +116,7 @@ function S(f, n, l) {
|
|
|
112
116
|
r
|
|
113
117
|
];
|
|
114
118
|
}
|
|
115
|
-
class
|
|
119
|
+
class P extends E {
|
|
116
120
|
constructor(n) {
|
|
117
121
|
super(), O(this, n, S, N, C, {
|
|
118
122
|
five: 0,
|
|
@@ -125,5 +129,5 @@ class J extends E {
|
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
export {
|
|
128
|
-
|
|
132
|
+
P as default
|
|
129
133
|
};
|
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import { SvelteComponent as P, init as B, safe_not_equal as G, append_styles as J, empty as K, insert as I, transition_in as c, group_outros as C, transition_out as
|
|
1
|
+
import { SvelteComponent as P, init as B, safe_not_equal as G, append_styles as J, empty as K, insert as I, transition_in as c, group_outros as C, transition_out as h, check_outros as M, detach as k, element as S, attr as F, add_render_callback as L, add_resize_listener as Q, assign as z, create_component as E, space as R, set_style as q, mount_component as O, append as T, get_spread_update as U, destroy_component as H } from "svelte/internal";
|
|
2
2
|
import { onMount as V } from "svelte";
|
|
3
3
|
import X from "./Camera.js";
|
|
4
4
|
import Y from "./CurrentFloor/CurrentFloor.js";
|
|
5
|
+
import "../../Assets/camera.js";
|
|
6
|
+
import "../../../shared-utils/throttle.js";
|
|
7
|
+
import "./CurrentFloor/ExtraObjects.js";
|
|
8
|
+
import "../../Components/BaseImage.js";
|
|
9
|
+
import "../../Components/Normalmage.js";
|
|
10
|
+
import "../../Components/SvgImage.js";
|
|
11
|
+
import "../../Components/RoomHighlight/RoomHighlight.js";
|
|
12
|
+
import "../../Components/RoomHighlight/Room.js";
|
|
13
|
+
import "../../utils/formatPosition.js";
|
|
5
14
|
function Z(i) {
|
|
6
15
|
J(i, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
7
16
|
}
|
|
8
17
|
function W(i) {
|
|
9
|
-
let t, l,
|
|
18
|
+
let t, l, n, e = i[6] !== 0 && A(i);
|
|
10
19
|
return {
|
|
11
20
|
c() {
|
|
12
21
|
t = S("div"), e && e.c(), F(t, "class", "plugin-floorplan-radar svelte-1mvqyqq"), L(() => i[12].call(t));
|
|
13
22
|
},
|
|
14
23
|
m(o, f) {
|
|
15
|
-
I(o, t, f), e && e.m(t, null), l = Q(t, i[12].bind(t)),
|
|
24
|
+
I(o, t, f), e && e.m(t, null), l = Q(t, i[12].bind(t)), n = !0;
|
|
16
25
|
},
|
|
17
26
|
p(o, f) {
|
|
18
|
-
o[6] !== 0 ? e ? (e.p(o, f), f & 64 && c(e, 1)) : (e = A(o), e.c(), c(e, 1), e.m(t, null)) : e && (C(),
|
|
27
|
+
o[6] !== 0 ? e ? (e.p(o, f), f & 64 && c(e, 1)) : (e = A(o), e.c(), c(e, 1), e.m(t, null)) : e && (C(), h(e, 1, 1, () => {
|
|
19
28
|
e = null;
|
|
20
29
|
}), M());
|
|
21
30
|
},
|
|
22
31
|
i(o) {
|
|
23
|
-
|
|
32
|
+
n || (c(e), n = !0);
|
|
24
33
|
},
|
|
25
34
|
o(o) {
|
|
26
|
-
|
|
35
|
+
h(e), n = !1;
|
|
27
36
|
},
|
|
28
37
|
d(o) {
|
|
29
38
|
o && k(t), e && e.d(), l();
|
|
@@ -31,8 +40,8 @@ function W(i) {
|
|
|
31
40
|
};
|
|
32
41
|
}
|
|
33
42
|
function A(i) {
|
|
34
|
-
let t, l,
|
|
35
|
-
const
|
|
43
|
+
let t, l, n, e, o = `${i[8]}px`, f = `${i[11]}px`, u;
|
|
44
|
+
const p = [
|
|
36
45
|
{
|
|
37
46
|
five: i[0],
|
|
38
47
|
pxmm: i[9],
|
|
@@ -42,11 +51,11 @@ function A(i) {
|
|
|
42
51
|
extraObjects: i[5]
|
|
43
52
|
}
|
|
44
53
|
];
|
|
45
|
-
let
|
|
46
|
-
for (let
|
|
47
|
-
|
|
48
|
-
l = new Y({ props:
|
|
49
|
-
const
|
|
54
|
+
let _ = {};
|
|
55
|
+
for (let r = 0; r < p.length; r += 1)
|
|
56
|
+
_ = z(_, p[r]);
|
|
57
|
+
l = new Y({ props: _ });
|
|
58
|
+
const d = [
|
|
50
59
|
{
|
|
51
60
|
pxmm: i[9],
|
|
52
61
|
five: i[0],
|
|
@@ -54,111 +63,111 @@ function A(i) {
|
|
|
54
63
|
cameraImageUrl: i[4]
|
|
55
64
|
}
|
|
56
65
|
];
|
|
57
|
-
let
|
|
58
|
-
for (let
|
|
59
|
-
|
|
60
|
-
return e = new X({ props:
|
|
66
|
+
let s = {};
|
|
67
|
+
for (let r = 0; r < d.length; r += 1)
|
|
68
|
+
s = z(s, d[r]);
|
|
69
|
+
return e = new X({ props: s }), {
|
|
61
70
|
c() {
|
|
62
|
-
t = S("div"), E(l.$$.fragment),
|
|
71
|
+
t = S("div"), E(l.$$.fragment), n = R(), E(e.$$.fragment), F(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), q(t, "width", o, !1), q(t, "height", f, !1);
|
|
63
72
|
},
|
|
64
|
-
m(
|
|
65
|
-
I(
|
|
73
|
+
m(r, m) {
|
|
74
|
+
I(r, t, m), O(l, t, null), T(t, n), O(e, t, null), u = !0;
|
|
66
75
|
},
|
|
67
|
-
p(
|
|
68
|
-
const
|
|
76
|
+
p(r, m) {
|
|
77
|
+
const g = m & 1581 ? U(p, [
|
|
69
78
|
{
|
|
70
|
-
five:
|
|
71
|
-
pxmm:
|
|
72
|
-
floorIndex:
|
|
73
|
-
floorplanData:
|
|
74
|
-
hoverEnable:
|
|
75
|
-
extraObjects:
|
|
79
|
+
five: r[0],
|
|
80
|
+
pxmm: r[9],
|
|
81
|
+
floorIndex: r[10],
|
|
82
|
+
floorplanData: r[3],
|
|
83
|
+
hoverEnable: r[2],
|
|
84
|
+
extraObjects: r[5]
|
|
76
85
|
}
|
|
77
86
|
]) : {};
|
|
78
|
-
l.$set(
|
|
79
|
-
const v =
|
|
87
|
+
l.$set(g);
|
|
88
|
+
const v = m & 537 ? U(d, [
|
|
80
89
|
{
|
|
81
|
-
pxmm:
|
|
82
|
-
five:
|
|
83
|
-
floorplanData:
|
|
84
|
-
cameraImageUrl:
|
|
90
|
+
pxmm: r[9],
|
|
91
|
+
five: r[0],
|
|
92
|
+
floorplanData: r[3],
|
|
93
|
+
cameraImageUrl: r[4]
|
|
85
94
|
}
|
|
86
95
|
]) : {};
|
|
87
|
-
e.$set(v),
|
|
96
|
+
e.$set(v), m & 256 && o !== (o = `${r[8]}px`) && q(t, "width", o, !1), m & 2048 && f !== (f = `${r[11]}px`) && q(t, "height", f, !1);
|
|
88
97
|
},
|
|
89
|
-
i(
|
|
90
|
-
u || (c(l.$$.fragment,
|
|
98
|
+
i(r) {
|
|
99
|
+
u || (c(l.$$.fragment, r), c(e.$$.fragment, r), u = !0);
|
|
91
100
|
},
|
|
92
|
-
o(
|
|
93
|
-
|
|
101
|
+
o(r) {
|
|
102
|
+
h(l.$$.fragment, r), h(e.$$.fragment, r), u = !1;
|
|
94
103
|
},
|
|
95
|
-
d(
|
|
96
|
-
|
|
104
|
+
d(r) {
|
|
105
|
+
r && k(t), H(l), H(e);
|
|
97
106
|
}
|
|
98
107
|
};
|
|
99
108
|
}
|
|
100
109
|
function x(i) {
|
|
101
|
-
let t, l,
|
|
110
|
+
let t, l, n = i[1] && W(i);
|
|
102
111
|
return {
|
|
103
112
|
c() {
|
|
104
|
-
|
|
113
|
+
n && n.c(), t = K();
|
|
105
114
|
},
|
|
106
115
|
m(e, o) {
|
|
107
|
-
|
|
116
|
+
n && n.m(e, o), I(e, t, o), l = !0;
|
|
108
117
|
},
|
|
109
118
|
p(e, [o]) {
|
|
110
|
-
e[1] ?
|
|
111
|
-
|
|
119
|
+
e[1] ? n ? (n.p(e, o), o & 2 && c(n, 1)) : (n = W(e), n.c(), c(n, 1), n.m(t.parentNode, t)) : n && (C(), h(n, 1, 1, () => {
|
|
120
|
+
n = null;
|
|
112
121
|
}), M());
|
|
113
122
|
},
|
|
114
123
|
i(e) {
|
|
115
|
-
l || (c(
|
|
124
|
+
l || (c(n), l = !0);
|
|
116
125
|
},
|
|
117
126
|
o(e) {
|
|
118
|
-
|
|
127
|
+
h(n), l = !1;
|
|
119
128
|
},
|
|
120
129
|
d(e) {
|
|
121
|
-
|
|
130
|
+
n && n.d(e), e && k(t);
|
|
122
131
|
}
|
|
123
132
|
};
|
|
124
133
|
}
|
|
125
134
|
function $(i, t, l) {
|
|
126
|
-
let { five:
|
|
135
|
+
let { five: n } = t, { visible: e } = t, { hoverEnable: o } = t, { floorplanData: f } = t, { cameraImageUrl: u } = t, { extraObjects: p = [] } = t, _ = 0, d = 0, s = 0, r = 0, m = 0, g = 0;
|
|
127
136
|
function v(a) {
|
|
128
|
-
l(10,
|
|
137
|
+
l(10, d = n.work.observers[a].floorIndex);
|
|
129
138
|
}
|
|
130
|
-
V(() => (
|
|
131
|
-
|
|
139
|
+
V(() => (n.on("panoArrived", v), () => {
|
|
140
|
+
n.off("panoArrived", v);
|
|
132
141
|
}));
|
|
133
142
|
function N() {
|
|
134
|
-
|
|
143
|
+
s = this.clientWidth, r = this.clientHeight, l(6, s), l(7, r);
|
|
135
144
|
}
|
|
136
145
|
return i.$$set = (a) => {
|
|
137
|
-
"five" in a && l(0,
|
|
146
|
+
"five" in a && l(0, n = a.five), "visible" in a && l(1, e = a.visible), "hoverEnable" in a && l(2, o = a.hoverEnable), "floorplanData" in a && l(3, f = a.floorplanData), "cameraImageUrl" in a && l(4, u = a.cameraImageUrl), "extraObjects" in a && l(5, p = a.extraObjects);
|
|
138
147
|
}, i.$$.update = () => {
|
|
139
148
|
if (i.$$.dirty & 456) {
|
|
140
|
-
const a = Math.min(
|
|
149
|
+
const a = Math.min(s, r), { max: D, min: j } = f.bounding, b = D.x - j.x, y = D.y - j.y, w = function() {
|
|
141
150
|
return b > y ? [a, a / b * y] : [a / y * b, a];
|
|
142
151
|
}();
|
|
143
|
-
l(8,
|
|
152
|
+
l(8, m = w[0]), l(11, g = w[1]), l(9, _ = m / b);
|
|
144
153
|
}
|
|
145
154
|
}, [
|
|
146
|
-
|
|
155
|
+
n,
|
|
147
156
|
e,
|
|
148
157
|
o,
|
|
149
158
|
f,
|
|
150
159
|
u,
|
|
151
|
-
|
|
152
|
-
m,
|
|
153
|
-
n,
|
|
160
|
+
p,
|
|
154
161
|
s,
|
|
162
|
+
r,
|
|
163
|
+
m,
|
|
164
|
+
_,
|
|
155
165
|
d,
|
|
156
|
-
|
|
157
|
-
p,
|
|
166
|
+
g,
|
|
158
167
|
N
|
|
159
168
|
];
|
|
160
169
|
}
|
|
161
|
-
class
|
|
170
|
+
class _e extends P {
|
|
162
171
|
constructor(t) {
|
|
163
172
|
super(), B(
|
|
164
173
|
this,
|
|
@@ -179,5 +188,5 @@ class ie extends P {
|
|
|
179
188
|
}
|
|
180
189
|
}
|
|
181
190
|
export {
|
|
182
|
-
|
|
191
|
+
_e as default
|
|
183
192
|
};
|
|
@@ -28,10 +28,10 @@ var p = (r, i, t) => new Promise((e, s) => {
|
|
|
28
28
|
d((t = t.apply(r, i)).next());
|
|
29
29
|
});
|
|
30
30
|
import y from "./Components/Main.js";
|
|
31
|
-
import D from "../../shared-utils/equal.js";
|
|
31
|
+
import { equal as D } from "../../shared-utils/equal.js";
|
|
32
32
|
import { CAMERA_IMAGE as E } from "../Assets/camera.js";
|
|
33
33
|
import { Controller as C } from "../../base/BasePluginWithData.js";
|
|
34
|
-
import w,
|
|
34
|
+
import { formatData as w, formatExtraObjects as O } from "../utils/formatData.js";
|
|
35
35
|
class P extends C {
|
|
36
36
|
constructor(t, e) {
|
|
37
37
|
super(t);
|
|
@@ -28,16 +28,16 @@ var c = (h, n, e) => new Promise((t, i) => {
|
|
|
28
28
|
a((e = e.apply(h, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
|
-
import S from "../../shared-utils/equal.js";
|
|
31
|
+
import { equal as S } from "../../shared-utils/equal.js";
|
|
32
32
|
import y from "../Components/Main.js";
|
|
33
|
-
import m from "../utils/formatData.js";
|
|
33
|
+
import { formatData as m } from "../utils/formatData.js";
|
|
34
34
|
import { CAMERA_IMAGE as I } from "../Assets/camera.js";
|
|
35
35
|
import { omit as _ } from "../../shared-utils/filter.js";
|
|
36
36
|
import { FLOOR_PLAN_ATTACHED_TO as D } from "../constant.js";
|
|
37
37
|
import { Controller as L } from "../../base/BasePluginWithData.js";
|
|
38
|
-
import T from "../../shared-utils/five/changeMode.js";
|
|
39
|
-
import M,
|
|
40
|
-
import b from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
38
|
+
import { changeMode as T } from "../../shared-utils/five/changeMode.js";
|
|
39
|
+
import { getPxmm as M, getAttachedY as P } from "../../shared-utils/getPxmm.js";
|
|
40
|
+
import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
41
41
|
class j extends L {
|
|
42
42
|
constructor(e, t) {
|
|
43
43
|
super(e);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Controller as
|
|
2
|
-
const
|
|
1
|
+
import { Controller as n } from "./Controller.js";
|
|
2
|
+
const l = (o, r) => new n(o, r);
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
n as default
|
|
4
|
+
l as TopviewFloorplanPlugin
|
|
6
5
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m = (t, r, e) => new Promise((d, a) => {
|
|
2
2
|
var i = (o) => {
|
|
3
3
|
try {
|
|
4
4
|
u(e.next(o));
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
5
|
+
} catch (c) {
|
|
6
|
+
a(c);
|
|
7
7
|
}
|
|
8
8
|
}, n = (o) => {
|
|
9
9
|
try {
|
|
10
10
|
u(e.throw(o));
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
11
|
+
} catch (c) {
|
|
12
|
+
a(c);
|
|
13
13
|
}
|
|
14
|
-
}, u = (o) => o.done ?
|
|
14
|
+
}, u = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(i, n);
|
|
15
15
|
u((e = e.apply(t, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { to as
|
|
18
|
-
import { FloorplanErrorType as
|
|
19
|
-
import s from "../../shared-utils/nearlyEqual.js";
|
|
20
|
-
import p from "../../shared-utils/five/changeMode.js";
|
|
17
|
+
import { to as f } from "../../shared-utils/to.js";
|
|
18
|
+
import { FloorplanErrorType as l } from "./constant.js";
|
|
19
|
+
import { nearlyEqual as s } from "../../shared-utils/nearlyEqual.js";
|
|
20
|
+
import { changeMode as p } from "../../shared-utils/five/changeMode.js";
|
|
21
21
|
function g(t, r) {
|
|
22
22
|
if (t.currentMode !== r.mode)
|
|
23
23
|
return !1;
|
|
24
|
-
const { latitude: e, longitude:
|
|
25
|
-
return !(!s(e, i, 2) || !s(
|
|
24
|
+
const { latitude: e, longitude: d, fov: a } = r, { latitude: i, longitude: n } = t.getCurrentState(), u = t.camera.fov;
|
|
25
|
+
return !(!s(e, i, 2) || !s(d, n, 2) || a !== u);
|
|
26
26
|
}
|
|
27
27
|
function F(t, r, e = !0) {
|
|
28
|
-
return
|
|
28
|
+
return m(this, null, function* () {
|
|
29
29
|
if (g(t, r) === !0)
|
|
30
30
|
return;
|
|
31
31
|
const a = t.getCurrentState();
|
|
32
32
|
if (a.mode !== r.mode) {
|
|
33
|
-
const [M] = yield
|
|
33
|
+
const [M] = yield f(p(t, [r.mode, r, void 0, e]));
|
|
34
34
|
if (M)
|
|
35
|
-
throw new Error(
|
|
35
|
+
throw new Error(l.ChangeModeError);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
const { latitude: i, longitude: n, fov: u } = a, o = Math.min(
|
|
@@ -43,12 +43,12 @@ function F(t, r, e = !0) {
|
|
|
43
43
|
(n > Math.PI ? 2 * Math.PI - n : n) * 500,
|
|
44
44
|
Math.abs(u - r.fov) * 10
|
|
45
45
|
)
|
|
46
|
-
), [
|
|
47
|
-
if (
|
|
48
|
-
throw new Error(
|
|
46
|
+
), [c] = yield f(t.updateCamera(r, o, e));
|
|
47
|
+
if (c)
|
|
48
|
+
throw new Error(l.UpdateCameraError);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
52
|
g as checkShowState,
|
|
53
|
-
F as
|
|
53
|
+
F as correctFiveState
|
|
54
54
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var c = (o,
|
|
1
|
+
var c = (o, e, r) => new Promise((l, n) => {
|
|
2
2
|
var i = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
s(
|
|
4
|
+
s(r.next(t));
|
|
5
5
|
} catch (p) {
|
|
6
6
|
n(p);
|
|
7
7
|
}
|
|
8
8
|
}, m = (t) => {
|
|
9
9
|
try {
|
|
10
|
-
s(
|
|
10
|
+
s(r.throw(t));
|
|
11
11
|
} catch (p) {
|
|
12
12
|
n(p);
|
|
13
13
|
}
|
|
14
14
|
}, s = (t) => t.done ? l(t.value) : Promise.resolve(t.value).then(i, m);
|
|
15
|
-
s((
|
|
15
|
+
s((r = r.apply(o, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { FLOORPLAN_EXTRA_OBJECT_IMAGE as
|
|
18
|
-
import { getFloorIndexFromModelPosition as
|
|
17
|
+
import { FLOORPLAN_EXTRA_OBJECT_IMAGE as f } from "../Assets/floorplanExtraObject.js";
|
|
18
|
+
import { getFloorIndexFromModelPosition as a, modelPosition2FloorplanPosition as u, floorplanPosition2ImagePosition as _ } from "./formatPosition.js";
|
|
19
19
|
function I(o) {
|
|
20
20
|
return c(this, null, function* () {
|
|
21
|
-
const
|
|
21
|
+
const e = new Headers({ "Content-Type": "text/plain" }), r = function(n) {
|
|
22
22
|
return c(this, null, function* () {
|
|
23
23
|
const i = {
|
|
24
24
|
index: n.index,
|
|
@@ -26,13 +26,13 @@ function I(o) {
|
|
|
26
26
|
svgUrl: n.svg_url
|
|
27
27
|
};
|
|
28
28
|
if (n.svg_url) {
|
|
29
|
-
const m = yield fetch(n.svg_url, { headers:
|
|
29
|
+
const m = yield fetch(n.svg_url, { headers: e }).then((s) => s.text());
|
|
30
30
|
i.svgContent = m;
|
|
31
31
|
}
|
|
32
32
|
return i;
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
return yield Promise.all(o.map(
|
|
35
|
+
return yield Promise.all(o.map(r));
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function g(o) {
|
|
@@ -78,27 +78,27 @@ function v(o) {
|
|
|
78
78
|
}
|
|
79
79
|
function P(o) {
|
|
80
80
|
return c(this, null, function* () {
|
|
81
|
-
const
|
|
81
|
+
const e = yield I(o.outlines), r = o.computed_data.bounding, l = o.computed_data.floor_datas.map(x), n = o.computed_data.entrance ? v(o.computed_data.entrance) : null;
|
|
82
82
|
return {
|
|
83
|
-
outlines:
|
|
83
|
+
outlines: e,
|
|
84
84
|
entrance: n,
|
|
85
|
-
bounding:
|
|
85
|
+
bounding: r,
|
|
86
86
|
floorDatas: l,
|
|
87
87
|
observers: o.computed_data.observers.map(d)
|
|
88
88
|
};
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function y(o,
|
|
91
|
+
function y(o, e, r) {
|
|
92
92
|
return o.map((n) => {
|
|
93
93
|
const i = n.position, m = n.icon ? n.icon : {
|
|
94
|
-
url:
|
|
94
|
+
url: f,
|
|
95
95
|
width: 45,
|
|
96
96
|
height: 48
|
|
97
|
-
}, s =
|
|
97
|
+
}, s = a(i, e), t = u(i, r), p = _(t, r);
|
|
98
98
|
return { floorIndex: s, icon: m, id: n.id, position: t, positionInImage: p };
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
export {
|
|
102
|
-
P as
|
|
102
|
+
P as formatData,
|
|
103
103
|
y as formatExtraObjects
|
|
104
104
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a(o, t = {}) {
|
|
2
2
|
let n = "";
|
|
3
3
|
const { needZ: r, needA: i } = t;
|
|
4
|
-
return (r ? o.slice().concat(o[0]) : o.slice()).forEach((
|
|
5
|
-
const { x, y: s } = t.format ? t.format(
|
|
6
|
-
return e === 0 ? (n += "M" +
|
|
4
|
+
return (r ? o.slice().concat(o[0]) : o.slice()).forEach((u, e) => {
|
|
5
|
+
const { x, y: s } = t.format ? t.format(u) : u, c = x + "," + s;
|
|
6
|
+
return e === 0 ? (n += "M" + c, n) : i != null && i[e] ? (n += "A" + i[e] + "," + c, n) : (n += "L" + c, n);
|
|
7
7
|
}), n + (r ? "Z" : "");
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function f({ x: o, y: t }, n) {
|
|
10
10
|
const { max: r, min: i } = n;
|
|
11
11
|
return { x: o - i.x, y: r.y - t };
|
|
12
12
|
}
|
|
@@ -27,9 +27,9 @@ function g(o, t) {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
|
-
m as default,
|
|
31
30
|
l as floorplanPosition2ImagePosition,
|
|
31
|
+
f as formatFloorplanPoint,
|
|
32
32
|
g as getFloorIndexFromModelPosition,
|
|
33
33
|
d as modelPosition2FloorplanPosition,
|
|
34
|
-
|
|
34
|
+
a as pathD
|
|
35
35
|
};
|