@realsee/dnalogel 2.1.1 → 2.1.2-alpha.1
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/components/index.js +242 -569
- package/dist/index.cjs.js +58 -73
- package/dist/index.es.js +7842 -12958
- package/dist/index.js +7842 -12958
- package/dist/index.umd.js +46 -61
- package/docs/assets/highlight.css +3 -3
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +462 -619
- package/docs/classes/CruisePluginController.html +397 -23
- package/docs/classes/Magnifier.html +187 -9
- package/docs/classes/ModelRoomLabelController.html +149 -11
- package/docs/classes/Object3DHelperController.html +356 -0
- package/docs/classes/PaintBrush.html +260 -0
- package/docs/classes/PanoTagPluginController.html +940 -0
- package/docs/classes/Util.BetterTween.html +134 -0
- package/docs/classes/Util.FivePointSelector.html +144 -0
- package/docs/classes/Util.Interval.html +158 -0
- package/docs/classes/Util.Magnifier.html +196 -0
- package/docs/classes/Util.PointDomHelper.html +135 -0
- package/docs/classes/Util.PointHelper.html +127 -0
- package/docs/classes/Util.Rectangle.html +181 -0
- package/docs/enums/CameraMovementEffect.html +70 -3
- package/docs/enums/ContentType.html +116 -0
- package/docs/enums/DIRECTION.html +81 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +81 -1
- package/docs/enums/DimensionType.html +67 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +74 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +81 -1
- package/docs/enums/LinkType.html +67 -0
- package/docs/enums/PaintBrushTypeEnum.html +74 -0
- package/docs/enums/PointType.html +67 -0
- package/docs/enums/Rotation.html +77 -3
- package/docs/functions/CSS3DRenderPlugin.html +233 -0
- package/docs/functions/CameraMovementPlugin.html +237 -0
- package/docs/functions/CruisePlugin.html +233 -0
- package/docs/functions/GuideLinePlugin.html +235 -0
- package/docs/functions/ItemLabelPlugin.html +235 -0
- package/docs/functions/MapviewFloorplanPlugin.html +235 -0
- package/docs/functions/ModelChassisCompassPlugin.html +237 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +237 -0
- package/docs/functions/ModelFloorplanPlugin.html +235 -0
- package/docs/functions/ModelItemLabelPlugin.html +235 -0
- package/docs/functions/ModelRoomLabelPlugin.html +233 -0
- package/docs/functions/ModelTVVideoPlugin.html +235 -0
- package/docs/functions/ModelViewPlugin.html +237 -0
- package/docs/functions/Object3DHelperPlugin.html +233 -0
- package/docs/functions/PanoCompassPlugin.html +235 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +238 -0
- package/docs/functions/PanoDoorLabelPlugin.html +235 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +235 -0
- package/docs/functions/PanoMeasurePlugin.html +235 -0
- package/docs/functions/PanoRulerPlugin.html +237 -0
- package/docs/functions/PanoRulerProPlugin.html +237 -0
- package/docs/functions/PanoSpatialTagPlugin.html +237 -0
- package/docs/functions/PanoTagPlugin.html +249 -0
- package/docs/functions/TopviewFloorplanPlugin.html +235 -0
- package/docs/functions/Util.getCoordsFromClient.html +78 -0
- package/docs/functions/Util.getCoordsFromElement.html +78 -0
- package/docs/functions/Util.getFrameTime.html +70 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +78 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +78 -0
- package/docs/functions/Util.isNil.html +79 -0
- package/docs/functions/Util.nextFrame.html +73 -0
- package/docs/functions/Util.notNil.html +78 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +98 -0
- package/docs/functions/Util.tweenProgress.html +84 -0
- package/docs/functions/pluginFlag.html +233 -0
- package/docs/index.html +222 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +205 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +85 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +111 -17
- package/docs/interfaces/ContentTypeMap.html +212 -0
- package/docs/interfaces/FloorplanBounding.html +89 -10
- package/docs/interfaces/FloorplanData.html +95 -3
- package/docs/interfaces/FloorplanEntrance.html +114 -15
- package/docs/interfaces/FloorplanExtraObject.html +108 -7
- package/docs/interfaces/FloorplanExtraObject3D.html +99 -3
- package/docs/interfaces/FloorplanFloorData.html +88 -3
- package/docs/interfaces/FloorplanImagePosition.html +74 -3
- package/docs/interfaces/FloorplanObserver.html +92 -5
- package/docs/interfaces/FloorplanOutlineItem.html +88 -3
- package/docs/interfaces/FloorplanPosition.html +74 -3
- package/docs/interfaces/FloorplanRoomItem.html +134 -17
- package/docs/interfaces/FloorplanRoomLabelItem.html +78 -7
- package/docs/interfaces/FloorplanServerBounding.html +89 -10
- package/docs/interfaces/FloorplanServerComputedData.html +92 -1
- package/docs/interfaces/FloorplanServerData.html +74 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +92 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +78 -1
- package/docs/interfaces/FloorplanServerEntrance.html +114 -15
- package/docs/interfaces/FloorplanServerFloorData.html +88 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +74 -3
- package/docs/interfaces/FloorplanServerObserver.html +92 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +88 -3
- package/docs/interfaces/FloorplanServerPosition.html +74 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +145 -20
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +78 -7
- package/docs/interfaces/ItemLabelPluginData.html +64 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +149 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +85 -1
- package/docs/interfaces/LineJson.html +71 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +71 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +107 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +71 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +78 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +115 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +64 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +149 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +71 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +64 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +85 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +109 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +64 -1
- package/docs/interfaces/ModelViewPluginExportType.html +129 -1
- package/docs/interfaces/Object3DHelperState.html +78 -0
- package/docs/interfaces/OpenParameter.html +74 -3
- package/docs/interfaces/PaintBrushAction.html +118 -0
- package/docs/interfaces/PaintBrushConfigs.html +122 -0
- package/docs/interfaces/PaintBrushState.html +99 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +186 -11
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +227 -1
- package/docs/interfaces/PanoMeasureParameterType.html +128 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +138 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +87 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +78 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +114 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +84 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +71 -1
- package/docs/interfaces/PanoRulerProPluginState.html +78 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +241 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +230 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +114 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +96 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +192 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +92 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +113 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +99 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +92 -1
- package/docs/interfaces/Point.html +78 -1
- package/docs/interfaces/PointJson.html +78 -1
- package/docs/interfaces/Room.html +85 -1
- package/docs/interfaces/RoomInfo.html +71 -1
- package/docs/interfaces/RoomLabel.html +141 -13
- package/docs/interfaces/RoomRules.html +230 -1
- package/docs/interfaces/Rooms.html +230 -1
- package/docs/interfaces/Scissor.html +100 -0
- package/docs/interfaces/TagConfig.html +120 -0
- package/docs/interfaces/Tags.html +89 -0
- package/docs/interfaces/Util.MagnifierParameter.html +116 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +79 -0
- package/docs/modules/Util.html +91 -0
- package/docs/modules.html +425 -36
- package/docs/types/ArrayPosition.html +224 -0
- package/docs/types/CSS3DRenderExportType.html +224 -0
- package/docs/types/CSS3DRenderPluginExportType.html +224 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +224 -0
- package/docs/types/Color.html +224 -0
- package/docs/types/ContentTypeConfigKey.html +224 -0
- package/docs/types/ContentTypeConfigKeyArray.html +224 -0
- package/docs/types/Create3DDomContainerReturnType.html +224 -0
- package/docs/types/Create3DElementReturnType.html +224 -0
- package/docs/types/CruisePluginExportType.html +224 -0
- package/docs/types/Direction-1.html +224 -0
- package/docs/types/Direction4.html +224 -0
- package/docs/types/FloorplanRuleLabels.html +226 -0
- package/docs/types/FloorplanServerRuleLabels.html +224 -0
- package/docs/types/GuideLinePluginExportType.html +224 -0
- package/docs/types/HelperEventMap.html +314 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +224 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +224 -0
- package/docs/types/MediaData.html +224 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +224 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +224 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +224 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +224 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +224 -0
- package/docs/types/MoveArgs.html +226 -0
- package/docs/types/MoveOpts.html +226 -0
- package/docs/types/Object3DHelperEventMap.html +317 -0
- package/docs/types/ObjectFit.html +224 -0
- package/docs/types/PaintBrushEventMap.html +255 -0
- package/docs/types/PanoCompassPluginData.html +224 -0
- package/docs/types/PanoCompassPluginExportType.html +224 -0
- package/docs/types/PanoCompassPluginParameterType.html +224 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +224 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +224 -0
- package/docs/types/PanoMeasurePluginEvent.html +224 -0
- package/docs/types/PanoMeasureReturnType.html +224 -0
- package/docs/types/PanoSpatialTagPluginId.html +224 -0
- package/docs/types/PanoTagPluginExportInterface.html +224 -0
- package/docs/types/PanoTagPluginParamsInterface.html +224 -0
- package/docs/types/PlaneTag.html +233 -0
- package/docs/types/PointTag.html +235 -0
- package/docs/types/Position.html +224 -0
- package/docs/types/RotateArgs.html +226 -0
- package/docs/types/RotateOpts.html +226 -0
- package/docs/types/RuleLabelsKey.html +224 -0
- package/docs/types/RuleLabelsValue.html +224 -0
- package/docs/types/Tag.html +235 -0
- package/docs/types/Tag2D.html +233 -0
- package/docs/types/Tag3D.html +233 -0
- package/docs/types/TagId.html +224 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +224 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +224 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +226 -0
- package/docs/variables/PLUGIN.html +224 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +226 -0
- package/docs/variables/ROOM_TYPE_MAP.html +226 -0
- package/docs/variables/VERSION.html +224 -0
- package/docs/variables/itemLabelPluginServerParams.html +231 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +231 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +231 -0
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -300
- package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -3
- package/libs/CSS3DRenderPlugin/Controller.js +1 -81
- package/libs/CSS3DRenderPlugin/index.js +1 -14
- package/libs/CSS3DRenderPlugin/typing.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -13
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -71
- package/libs/CameraMovementPlugin/index.js +1 -15
- package/libs/CameraMovementPlugin/typing.js +1 -5
- package/libs/CruisePlugin/Controller.js +1 -440
- package/libs/CruisePlugin/index.js +1 -27
- package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -9
- package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
- package/libs/CruisePlugin/utils/formatRad.js +1 -7
- package/libs/CruisePlugin/utils/linerValue.js +1 -7
- package/libs/CruisePlugin/utils/safeCall.js +1 -12
- package/libs/CruisePlugin/utils/sleep.js +1 -10
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
- package/libs/GuideLinePlugin/Controller.js +1 -112
- package/libs/GuideLinePlugin/index.js +1 -15
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -118
- package/libs/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -254
- package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
- package/libs/ItemLabelPlugin/Plugin.js +2 -85
- package/libs/ItemLabelPlugin/index.js +1 -25
- package/libs/ItemLabelPlugin/typings.js +1 -4
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
- package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
- package/libs/ItemLabelPlugin/utils/parseData.js +1 -10
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -11
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -55
- package/libs/ModelChassisCompassPlugin/index.js +1 -10
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -66
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -11
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -196
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -79
- package/libs/ModelItemLabelPlugin/events.type.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +1 -21
- package/libs/ModelItemLabelPlugin/typings.js +1 -4
- package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -9
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -64
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -151
- package/libs/ModelRoomLabelPlugin/index.js +1 -16
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -157
- package/libs/ModelTVVideoPlugin/index.js +1 -19
- package/libs/ModelTVVideoPlugin/typings.js +1 -4
- package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
- package/libs/ModelViewPlugin/Plugin.js +1 -96
- package/libs/ModelViewPlugin/index.js +1 -8
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -137
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -35
- package/libs/Object3DHelperPlugin/index.js +1 -42
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -205
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
- package/libs/PanoCompassPlugin/index.js +1 -24
- package/libs/PanoCursorRaycasterPlugin/index.js +1 -60
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -50
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -215
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
- package/libs/PanoDoorLabelPlugin/index.d.ts +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -15
- package/libs/PanoDoorLabelPlugin/utils.d.ts +2 -2
- package/libs/PanoDoorLabelPlugin/utils.js +1 -23
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -63
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -114
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -138
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -101
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -169
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -167
- package/libs/PanoMeasurePlugin/Model/index.d.ts +4 -4
- package/libs/PanoMeasurePlugin/Model/index.js +1 -99
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/line.js +1 -60
- package/libs/PanoMeasurePlugin/Model/point.js +1 -30
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -70
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -123
- package/libs/PanoMeasurePlugin/index.js +1 -60
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
- package/libs/PanoMeasurePlugin/utils/constants.js +1 -23
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -16
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
- package/libs/PanoMeasurePlugin/utils/line.js +1 -18
- package/libs/PanoMeasurePlugin/utils/math.js +1 -13
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
- package/libs/PanoRulerPlugin/Plugin.js +3 -241
- package/libs/PanoRulerPlugin/index.js +1 -11
- package/libs/PanoRulerPlugin/style.js +2 -5
- package/libs/PanoRulerProPlugin/Controller.js +1 -74
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -118
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -181
- package/libs/PanoRulerProPlugin/index.js +1 -17
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -82
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -258
- package/libs/PanoSpatialTagPlugin/index.js +1 -24
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -1
- package/libs/PanoSpatialTagPlugin/store.js +1 -6
- package/libs/PanoSpatialTagPlugin/style.js +1 -11
- package/libs/PanoSpatialTagPlugin/typings.js +1 -1
- package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -163
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -91
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -3438
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -181
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -52
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -52
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -170
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -125
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -984
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -140
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -72
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -202
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -128
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -231
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -95
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -134
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -308
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -187
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -183
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -32
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -15
- package/libs/PanoTagPlugin/controller/index.js +1 -386
- package/libs/PanoTagPlugin/index.js +1 -71
- package/libs/PanoTagPlugin/tag.config.js +1 -44
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +1 -7
- package/libs/PanoTagPlugin/typings/tag.js +1 -7
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
- package/libs/PanoTagPlugin/utils/checkRange.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
- package/libs/PanoTagPlugin/utils/constants.js +1 -8
- package/libs/PanoTagPlugin/utils/debounce.js +1 -12
- package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
- package/libs/PanoTagPlugin/utils/index.js +1 -36
- package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
- package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
- package/libs/PanoTagPlugin/utils/search.js +1 -33
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
- package/libs/PanoTagPlugin/utils/throttle.js +1 -11
- package/libs/base/BasePlugin.js +1 -18
- package/libs/base/BasePluginWithData.js +1 -7
- package/libs/components/PaintBrush/Controller.d.ts +2 -2
- package/libs/components/PaintBrush/Controller.js +1 -309
- package/libs/components/PaintBrush/Subscribe.js +1 -47
- package/libs/components/PaintBrush/index.js +1 -52
- package/libs/components/PaintBrush/style.js +2 -5
- package/libs/components/PaintBrush/tween.js +1 -15
- package/libs/components/PaintBrush/typings.js +1 -4
- package/libs/components/PaintBrush/utils.d.ts +1 -1
- package/libs/components/PaintBrush/utils.js +1 -45
- package/libs/components/index.js +1 -13
- package/libs/env.d.ts +1 -0
- package/libs/floorplan/Assets/camera.js +1 -4
- package/libs/floorplan/Assets/compass.js +1 -4
- package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
- package/libs/floorplan/Components/BaseImage.js +1 -104
- package/libs/floorplan/Components/Camera.js +1 -62
- package/libs/floorplan/Components/Compass.js +1 -60
- package/libs/floorplan/Components/CurrentFloor.js +1 -255
- package/libs/floorplan/Components/Main.js +1 -282
- package/libs/floorplan/Components/Normalmage.js +1 -37
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -122
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -152
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -184
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
- package/libs/floorplan/Components/SvgImage.js +2 -39
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -322
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -49
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -318
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -49
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -133
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -191
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -146
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -26
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -265
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -46
- package/libs/floorplan/constant.js +1 -4
- package/libs/floorplan/index.js +1 -67
- package/libs/floorplan/typings/floorplanData.js +1 -1
- package/libs/floorplan/typings/floorplanServerData.js +1 -101
- package/libs/floorplan/utils/constant.js +1 -8
- package/libs/floorplan/utils/correctFiveState.js +1 -36
- package/libs/floorplan/utils/formatData.js +1 -82
- package/libs/floorplan/utils/formatPosition.js +1 -35
- package/libs/index.js +1 -330
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -155
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
- package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -29
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -74
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -117
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -142
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -81
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -31
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -31
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -103
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -143
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -137
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -30
- package/libs/shared-utils/Object3DHelper/index.js +1 -140
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
- package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -30
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -18
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -18
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -29
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -13
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -5
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
- package/libs/shared-utils/Subscribe.js +1 -50
- package/libs/shared-utils/animationFrame/BetterTween.js +1 -6
- package/libs/shared-utils/animationFrame/calculateProgress.js +1 -12
- package/libs/shared-utils/animationFrame/formatRad.js +1 -13
- package/libs/shared-utils/animationFrame/index.js +1 -51
- package/libs/shared-utils/animationFrame/tween.js +1 -30
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
- package/libs/shared-utils/createCanvasTextTexture.js +1 -11
- package/libs/shared-utils/createLine/index.js +1 -9
- package/libs/shared-utils/debounce.js +1 -11
- package/libs/shared-utils/equal.js +1 -54
- package/libs/shared-utils/filter.js +1 -30
- package/libs/shared-utils/five/changeMode.js +1 -21
- package/libs/shared-utils/getPxmm.js +1 -21
- package/libs/shared-utils/index.js +1 -45
- package/libs/shared-utils/isNil.js +1 -10
- package/libs/shared-utils/isTruelyObject.js +1 -6
- package/libs/shared-utils/math/Interval.js +1 -23
- package/libs/shared-utils/math/Rectangle.js +1 -23
- package/libs/shared-utils/math/index.js +1 -6
- package/libs/shared-utils/math/planimetry.d.ts +5 -5
- package/libs/shared-utils/math/planimetry.js +1 -135
- package/libs/shared-utils/math/rad2Deg.js +1 -6
- package/libs/shared-utils/nearlyEqual.js +1 -6
- package/libs/shared-utils/nextFrame.js +1 -6
- package/libs/shared-utils/noop.js +1 -5
- package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
- package/libs/shared-utils/removeArrayItem.d.ts +1 -1
- package/libs/shared-utils/removeArrayItem.js +1 -8
- package/libs/shared-utils/tap.js +1 -6
- package/libs/shared-utils/three/Assets/index.js +1 -5
- package/libs/shared-utils/three/FivePointSelector.d.ts +1 -1
- package/libs/shared-utils/three/FivePointSelector.js +1 -63
- package/libs/shared-utils/three/Magnifier.d.ts +2 -2
- package/libs/shared-utils/three/Magnifier.js +1 -104
- package/libs/shared-utils/three/PointDomHelper.js +1 -68
- package/libs/shared-utils/three/PointHelper.js +3 -60
- package/libs/shared-utils/three/getCoords.js +1 -13
- package/libs/shared-utils/three/getIntersect.d.ts +1 -1
- package/libs/shared-utils/three/getIntersect.js +1 -8
- package/libs/shared-utils/three/getRaycaster.d.ts +1 -1
- package/libs/shared-utils/three/getRaycaster.js +1 -12
- package/libs/shared-utils/three/index.js +1 -33
- package/libs/shared-utils/three/loadTexture.js +1 -10
- package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -13
- package/libs/shared-utils/throttle.js +1 -11
- package/libs/shared-utils/tinyEJSrender.js +14 -138
- package/libs/shared-utils/to.js +1 -11
- package/libs/shared-utils/uuid.js +1 -10
- package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
- package/libs/vendor/swiper/components-shared/get-params.js +1 -0
- package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/params-list.js +1 -0
- package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/utils.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
- package/libs/vendor/swiper/svelte/swiper.js +1 -0
- package/package.json +218 -31
- package/dist/style.css +0 -1
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
- package/libs/CruisePlugin/typing.js +0 -1
- package/libs/GuideLinePlugin/typing.js +0 -1
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
- package/libs/GuideLinePlugin/utils/polyline-normals.d.js +0 -1
- package/libs/ItemLabelPlugin/events.type.js +0 -1
- package/libs/ModelRoomLabelPlugin/typings.js +0 -1
- package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
- package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
- package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
- package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
- package/libs/Object3DHelperPlugin/typings.js +0 -1
- package/libs/PanoCompassPlugin/typings.js +0 -1
- package/libs/PanoDoorLabelPlugin/typings.js +0 -1
- package/libs/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/PanoMeasurePlugin/typings/index.js +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
- package/libs/PanoRulerPlugin/typings.js +0 -1
- package/libs/PanoRulerProPlugin/typings.js +0 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
- package/libs/TagComputer.2bc444dc.js +0 -315
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -11
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/typings/index.js +0 -1
- package/libs/floorplan/typings/utility.js +0 -1
- package/libs/hammer.b5b6115e.js +0 -882
- package/libs/index.164f1850.js +0 -641
- package/libs/index.5d5d1089.js +0 -34
- package/libs/index.6a0eead1.js +0 -12
- package/libs/index.ad783a2f.js +0 -31
- package/libs/index.dca207cb.js +0 -37
- package/libs/index.f2f85d71.js +0 -40
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -6
- package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
- package/libs/shared-utils/Object3DHelper/utils/negateScale.js +0 -7
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.js +0 -4
- package/libs/shared-utils/Preloader.d.ts +0 -6
- package/libs/shared-utils/Preloader.js +0 -18
- package/libs/shared-utils/formatRad.d.ts +0 -7
- package/libs/shared-utils/formatRad.js +0 -7
- package/libs/shared-utils/getRandomColor.d.ts +0 -1
- package/libs/shared-utils/getRandomColor.js +0 -6
- package/libs/shared-utils/logger.d.ts +0 -16
- package/libs/shared-utils/logger.js +0 -27
- package/libs/shared-utils/math/evenNumber.d.ts +0 -3
- package/libs/shared-utils/math/evenNumber.js +0 -7
- package/libs/shared-utils/px2rem.d.ts +0 -1
- package/libs/shared-utils/px2rem.js +0 -6
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +0 -6
- package/libs/shared-utils/three/getExtraModelLoader.js +0 -18
- package/libs/shared-utils/three/getNormal.d.ts +0 -2
- package/libs/shared-utils/three/getNormal.js +0 -7
- package/libs/shared-utils/three/getTextureLoader.d.ts +0 -6
- package/libs/shared-utils/three/getTextureLoader.js +0 -16
- package/libs/shared-utils/three/loadFbxObj.d.ts +0 -2
- package/libs/shared-utils/three/loadFbxObj.js +0 -16
- package/libs/shared-utils/vectorTocoordinates.d.ts +0 -7
- package/libs/shared-utils/vectorTocoordinates.js +0 -10
- package/libs/style.css +0 -1
- package/libs/tween.esm.bad2b2b4.js +0 -340
- package/libs/typings/math.type.js +0 -1
- package/libs/typings/utils.type.d.ts +0 -2
- package/libs/typings/utils.type.js +0 -1
|
@@ -1,72 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function x(a) {
|
|
3
|
-
w(a, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
4
|
-
}
|
|
5
|
-
function d(a, t, e) {
|
|
6
|
-
const l = a.slice();
|
|
7
|
-
return l[1] = t[e], l;
|
|
8
|
-
}
|
|
9
|
-
function m(a, t) {
|
|
10
|
-
let e, l, n = `${t[1].icon.width / 16}rem`, c = `${t[1].icon.height / 16}rem`, i, o = `${t[1].positionInImage.y * 100}%`, s = `${t[1].positionInImage.x * 100}%`;
|
|
11
|
-
return {
|
|
12
|
-
key: a,
|
|
13
|
-
first: null,
|
|
14
|
-
c() {
|
|
15
|
-
e = h("div"), l = h("div"), i = I(), _(l, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), r(l, "background-image", `url(${t[1].icon.url})`), r(l, "width", n), r(l, "height", c), _(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), r(e, "top", o), r(e, "left", s), this.first = e;
|
|
16
|
-
},
|
|
17
|
-
m(f, p) {
|
|
18
|
-
b(f, e, p), g(e, l), g(e, i);
|
|
19
|
-
},
|
|
20
|
-
p(f, p) {
|
|
21
|
-
t = f, p & 1 && r(l, "background-image", `url(${t[1].icon.url})`), p & 1 && n !== (n = `${t[1].icon.width / 16}rem`) && r(l, "width", n), p & 1 && c !== (c = `${t[1].icon.height / 16}rem`) && r(l, "height", c), p & 1 && o !== (o = `${t[1].positionInImage.y * 100}%`) && r(e, "top", o), p & 1 && s !== (s = `${t[1].positionInImage.x * 100}%`) && r(e, "left", s);
|
|
22
|
-
},
|
|
23
|
-
d(f) {
|
|
24
|
-
f && v(e);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function O(a) {
|
|
29
|
-
let t, e = [], l = /* @__PURE__ */ new Map(), n = a[0];
|
|
30
|
-
const c = (i) => i[1].id;
|
|
31
|
-
for (let i = 0; i < n.length; i += 1) {
|
|
32
|
-
let o = d(a, n, i), s = c(o);
|
|
33
|
-
l.set(s, e[i] = m(s, o));
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
c() {
|
|
37
|
-
t = h("div");
|
|
38
|
-
for (let i = 0; i < e.length; i += 1)
|
|
39
|
-
e[i].c();
|
|
40
|
-
_(t, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
|
|
41
|
-
},
|
|
42
|
-
m(i, o) {
|
|
43
|
-
b(i, t, o);
|
|
44
|
-
for (let s = 0; s < e.length; s += 1)
|
|
45
|
-
e[s].m(t, null);
|
|
46
|
-
},
|
|
47
|
-
p(i, [o]) {
|
|
48
|
-
o & 1 && (n = i[0], e = y(e, o, c, 1, i, n, l, t, z, m, null, d));
|
|
49
|
-
},
|
|
50
|
-
i: u,
|
|
51
|
-
o: u,
|
|
52
|
-
d(i) {
|
|
53
|
-
i && v(t);
|
|
54
|
-
for (let o = 0; o < e.length; o += 1)
|
|
55
|
-
e[o].d();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function q(a, t, e) {
|
|
60
|
-
let { extraObjects: l = [] } = t;
|
|
61
|
-
return a.$$set = (n) => {
|
|
62
|
-
"extraObjects" in n && e(0, l = n.extraObjects);
|
|
63
|
-
}, [l];
|
|
64
|
-
}
|
|
65
|
-
class B extends j {
|
|
66
|
-
constructor(t) {
|
|
67
|
-
super(), k(this, t, q, O, $, { extraObjects: 0 }, x);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
B as default
|
|
72
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal");function u(a){e.append_styles(a,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function _(a,l,t){const n=a.slice();return n[1]=l[t],n}function h(a,l){let t,n,o=`${l[1].icon.width/16}rem`,c=`${l[1].icon.height/16}rem`,i,s=`${l[1].positionInImage.y*100}%`,r=`${l[1].positionInImage.x*100}%`;return{key:a,first:null,c(){t=e.element("div"),n=e.element("div"),i=e.space(),e.attr(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),e.set_style(n,"background-image",`url(${l[1].icon.url})`),e.set_style(n,"width",o,!1),e.set_style(n,"height",c,!1),e.attr(t,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),e.set_style(t,"top",s,!1),e.set_style(t,"left",r,!1),this.first=t},m(p,f){e.insert(p,t,f),e.append(t,n),e.append(t,i)},p(p,f){l=p,f&1&&e.set_style(n,"background-image",`url(${l[1].icon.url})`),f&1&&o!==(o=`${l[1].icon.width/16}rem`)&&e.set_style(n,"width",o,!1),f&1&&c!==(c=`${l[1].icon.height/16}rem`)&&e.set_style(n,"height",c,!1),f&1&&s!==(s=`${l[1].positionInImage.y*100}%`)&&e.set_style(t,"top",s,!1),f&1&&r!==(r=`${l[1].positionInImage.x*100}%`)&&e.set_style(t,"left",r,!1)},d(p){p&&e.detach(t)}}}function g(a){let l,t=[],n=new Map,o=a[0];const c=i=>i[1].id;for(let i=0;i<o.length;i+=1){let s=_(a,o,i),r=c(s);n.set(r,t[i]=h(r,s))}return{c(){l=e.element("div");for(let i=0;i<t.length;i+=1)t[i].c();e.attr(l,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(i,s){e.insert(i,l,s);for(let r=0;r<t.length;r+=1)t[r].m(l,null)},p(i,[s]){s&1&&(o=i[0],t=e.update_keyed_each(t,s,c,1,i,o,n,l,e.destroy_block,h,null,_))},i:e.noop,o:e.noop,d(i){i&&e.detach(l);for(let s=0;s<t.length;s+=1)t[s].d()}}}function d(a,l,t){let{extraObjects:n=[]}=l;return a.$$set=o=>{"extraObjects"in o&&t(0,n=o.extraObjects)},[n]}class m extends e.SvelteComponent{constructor(l){super(),e.init(this,l,d,g,e.safe_not_equal,{extraObjects:0},u)}}exports.ExtraObjects=m;
|
|
@@ -1,191 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import X from "./Camera.js";
|
|
3
|
-
import Y from "./CurrentFloor/CurrentFloor.js";
|
|
4
|
-
import "../../Assets/camera.js";
|
|
5
|
-
import "../../../shared-utils/throttle.js";
|
|
6
|
-
import "./CurrentFloor/ExtraObjects.js";
|
|
7
|
-
import "../../Components/BaseImage.js";
|
|
8
|
-
import "../../Components/Normalmage.js";
|
|
9
|
-
import "../../Components/SvgImage.js";
|
|
10
|
-
import "../../Components/RoomHighlight/RoomHighlight.js";
|
|
11
|
-
import "../../Components/RoomHighlight/Room.js";
|
|
12
|
-
import "../../utils/formatPosition.js";
|
|
13
|
-
function Z(a) {
|
|
14
|
-
J(a, "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}");
|
|
15
|
-
}
|
|
16
|
-
function H(a) {
|
|
17
|
-
let t, l, r, e = a[6] !== 0 && S(a);
|
|
18
|
-
return {
|
|
19
|
-
c() {
|
|
20
|
-
t = C("div"), e && e.c(), M(t, "class", "plugin-floorplan-radar svelte-1mvqyqq"), Q(() => a[12].call(t));
|
|
21
|
-
},
|
|
22
|
-
m(i, s) {
|
|
23
|
-
I(i, t, s), e && e.m(t, null), l = R(t, a[12].bind(t)), r = !0;
|
|
24
|
-
},
|
|
25
|
-
p(i, s) {
|
|
26
|
-
i[6] !== 0 ? e ? (e.p(i, s), s & 64 && c(e, 1)) : (e = S(i), e.c(), c(e, 1), e.m(t, null)) : e && (F(), h(e, 1, 1, () => {
|
|
27
|
-
e = null;
|
|
28
|
-
}), W());
|
|
29
|
-
},
|
|
30
|
-
i(i) {
|
|
31
|
-
r || (c(e), r = !0);
|
|
32
|
-
},
|
|
33
|
-
o(i) {
|
|
34
|
-
h(e), r = !1;
|
|
35
|
-
},
|
|
36
|
-
d(i) {
|
|
37
|
-
i && k(t), e && e.d(), l();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function S(a) {
|
|
42
|
-
let t, l, r, e, i = `${a[8]}px`, s = `${a[11]}px`, u;
|
|
43
|
-
const p = [
|
|
44
|
-
{
|
|
45
|
-
five: a[0],
|
|
46
|
-
pxmm: a[9],
|
|
47
|
-
floorIndex: a[10],
|
|
48
|
-
floorplanData: a[3],
|
|
49
|
-
hoverEnable: a[2],
|
|
50
|
-
extraObjects: a[5]
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
let _ = {};
|
|
54
|
-
for (let n = 0; n < p.length; n += 1)
|
|
55
|
-
_ = z(_, p[n]);
|
|
56
|
-
l = new Y({ props: _ });
|
|
57
|
-
const d = [
|
|
58
|
-
{
|
|
59
|
-
pxmm: a[9],
|
|
60
|
-
five: a[0],
|
|
61
|
-
floorplanData: a[3],
|
|
62
|
-
cameraImageUrl: a[4]
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
let m = {};
|
|
66
|
-
for (let n = 0; n < d.length; n += 1)
|
|
67
|
-
m = z(m, d[n]);
|
|
68
|
-
return e = new X({ props: m }), {
|
|
69
|
-
c() {
|
|
70
|
-
t = C("div"), E(l.$$.fragment), r = T(), E(e.$$.fragment), M(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), q(t, "width", i), q(t, "height", s);
|
|
71
|
-
},
|
|
72
|
-
m(n, f) {
|
|
73
|
-
I(n, t, f), O(l, t, null), V(t, r), O(e, t, null), u = !0;
|
|
74
|
-
},
|
|
75
|
-
p(n, f) {
|
|
76
|
-
const g = f & 1581 ? U(p, [
|
|
77
|
-
{
|
|
78
|
-
five: n[0],
|
|
79
|
-
pxmm: n[9],
|
|
80
|
-
floorIndex: n[10],
|
|
81
|
-
floorplanData: n[3],
|
|
82
|
-
hoverEnable: n[2],
|
|
83
|
-
extraObjects: n[5]
|
|
84
|
-
}
|
|
85
|
-
]) : {};
|
|
86
|
-
l.$set(g);
|
|
87
|
-
const v = f & 537 ? U(d, [
|
|
88
|
-
{
|
|
89
|
-
pxmm: n[9],
|
|
90
|
-
five: n[0],
|
|
91
|
-
floorplanData: n[3],
|
|
92
|
-
cameraImageUrl: n[4]
|
|
93
|
-
}
|
|
94
|
-
]) : {};
|
|
95
|
-
e.$set(v), f & 256 && i !== (i = `${n[8]}px`) && q(t, "width", i), f & 2048 && s !== (s = `${n[11]}px`) && q(t, "height", s);
|
|
96
|
-
},
|
|
97
|
-
i(n) {
|
|
98
|
-
u || (c(l.$$.fragment, n), c(e.$$.fragment, n), u = !0);
|
|
99
|
-
},
|
|
100
|
-
o(n) {
|
|
101
|
-
h(l.$$.fragment, n), h(e.$$.fragment, n), u = !1;
|
|
102
|
-
},
|
|
103
|
-
d(n) {
|
|
104
|
-
n && k(t), A(l), A(e);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function x(a) {
|
|
109
|
-
let t, l, r = a[1] && H(a);
|
|
110
|
-
return {
|
|
111
|
-
c() {
|
|
112
|
-
r && r.c(), t = K();
|
|
113
|
-
},
|
|
114
|
-
m(e, i) {
|
|
115
|
-
r && r.m(e, i), I(e, t, i), l = !0;
|
|
116
|
-
},
|
|
117
|
-
p(e, [i]) {
|
|
118
|
-
e[1] ? r ? (r.p(e, i), i & 2 && c(r, 1)) : (r = H(e), r.c(), c(r, 1), r.m(t.parentNode, t)) : r && (F(), h(r, 1, 1, () => {
|
|
119
|
-
r = null;
|
|
120
|
-
}), W());
|
|
121
|
-
},
|
|
122
|
-
i(e) {
|
|
123
|
-
l || (c(r), l = !0);
|
|
124
|
-
},
|
|
125
|
-
o(e) {
|
|
126
|
-
h(r), l = !1;
|
|
127
|
-
},
|
|
128
|
-
d(e) {
|
|
129
|
-
r && r.d(e), e && k(t);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function $(a, t, l) {
|
|
134
|
-
let { five: r } = t, { visible: e } = t, { hoverEnable: i } = t, { floorplanData: s } = t, { cameraImageUrl: u } = t, { extraObjects: p = [] } = t, _ = 0, d = 0, m = 0, n = 0, f = 0, g = 0;
|
|
135
|
-
function v(o) {
|
|
136
|
-
l(10, d = r.work.observers[o].floorIndex);
|
|
137
|
-
}
|
|
138
|
-
L(() => (r.on("panoArrived", v), () => {
|
|
139
|
-
r.off("panoArrived", v);
|
|
140
|
-
}));
|
|
141
|
-
function N() {
|
|
142
|
-
m = this.clientWidth, n = this.clientHeight, l(6, m), l(7, n);
|
|
143
|
-
}
|
|
144
|
-
return a.$$set = (o) => {
|
|
145
|
-
"five" in o && l(0, r = o.five), "visible" in o && l(1, e = o.visible), "hoverEnable" in o && l(2, i = o.hoverEnable), "floorplanData" in o && l(3, s = o.floorplanData), "cameraImageUrl" in o && l(4, u = o.cameraImageUrl), "extraObjects" in o && l(5, p = o.extraObjects);
|
|
146
|
-
}, a.$$.update = () => {
|
|
147
|
-
if (a.$$.dirty & 456) {
|
|
148
|
-
const o = Math.min(m, n), { max: j, min: w } = s.bounding, b = j.x - w.x, y = j.y - w.y, D = function() {
|
|
149
|
-
return b > y ? [o, o / b * y] : [o / y * b, o];
|
|
150
|
-
}();
|
|
151
|
-
l(8, f = D[0]), l(11, g = D[1]), l(9, _ = f / b);
|
|
152
|
-
}
|
|
153
|
-
}, [
|
|
154
|
-
r,
|
|
155
|
-
e,
|
|
156
|
-
i,
|
|
157
|
-
s,
|
|
158
|
-
u,
|
|
159
|
-
p,
|
|
160
|
-
m,
|
|
161
|
-
n,
|
|
162
|
-
f,
|
|
163
|
-
_,
|
|
164
|
-
d,
|
|
165
|
-
g,
|
|
166
|
-
N
|
|
167
|
-
];
|
|
168
|
-
}
|
|
169
|
-
class pe extends P {
|
|
170
|
-
constructor(t) {
|
|
171
|
-
super(), B(
|
|
172
|
-
this,
|
|
173
|
-
t,
|
|
174
|
-
$,
|
|
175
|
-
x,
|
|
176
|
-
G,
|
|
177
|
-
{
|
|
178
|
-
five: 0,
|
|
179
|
-
visible: 1,
|
|
180
|
-
hoverEnable: 2,
|
|
181
|
-
floorplanData: 3,
|
|
182
|
-
cameraImageUrl: 4,
|
|
183
|
-
extraObjects: 5
|
|
184
|
-
},
|
|
185
|
-
Z
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
export {
|
|
190
|
-
pe as default
|
|
191
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal"),D=require("svelte"),w=require("./Camera.js"),F=require("./CurrentFloor/CurrentFloor.js");function z(i){e.append_styles(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}")}function I(i){let t,o,l,n=i[6]!==0&&j(i);return{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class","plugin-floorplan-radar svelte-1mvqyqq"),e.add_render_callback(()=>i[12].call(t))},m(a,f){e.insert(a,t,f),n&&n.m(t,null),o=e.add_resize_listener(t,i[12].bind(t)),l=!0},p(a,f){a[6]!==0?n?(n.p(a,f),f&64&&e.transition_in(n,1)):(n=j(a),n.c(),e.transition_in(n,1),n.m(t,null)):n&&(e.group_outros(),e.transition_out(n,1,1,()=>{n=null}),e.check_outros())},i(a){l||(e.transition_in(n),l=!0)},o(a){e.transition_out(n),l=!1},d(a){a&&e.detach(t),n&&n.d(),o()}}}function j(i){let t,o,l,n,a=`${i[8]}px`,f=`${i[11]}px`,_;const m=[{five:i[0],pxmm:i[9],floorIndex:i[10],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5]}];let d={};for(let r=0;r<m.length;r+=1)d=e.assign(d,m[r]);o=new F.CurrentFloor({props:d});const g=[{pxmm:i[9],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let c={};for(let r=0;r<g.length;r+=1)c=e.assign(c,g[r]);return n=new w.Camera({props:c}),{c(){t=e.element("div"),e.create_component(o.$$.fragment),l=e.space(),e.create_component(n.$$.fragment),e.attr(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),e.set_style(t,"width",a,!1),e.set_style(t,"height",f,!1)},m(r,u){e.insert(r,t,u),e.mount_component(o,t,null),e.append(t,l),e.mount_component(n,t,null),_=!0},p(r,u){const h=u&1581?e.get_spread_update(m,[{five:r[0],pxmm:r[9],floorIndex:r[10],floorplanData:r[3],hoverEnable:r[2],extraObjects:r[5]}]):{};o.$set(h);const p=u&537?e.get_spread_update(g,[{pxmm:r[9],five:r[0],floorplanData:r[3],cameraImageUrl:r[4]}]):{};n.$set(p),u&256&&a!==(a=`${r[8]}px`)&&e.set_style(t,"width",a,!1),u&2048&&f!==(f=`${r[11]}px`)&&e.set_style(t,"height",f,!1)},i(r){_||(e.transition_in(o.$$.fragment,r),e.transition_in(n.$$.fragment,r),_=!0)},o(r){e.transition_out(o.$$.fragment,r),e.transition_out(n.$$.fragment,r),_=!1},d(r){r&&e.detach(t),e.destroy_component(o),e.destroy_component(n)}}}function E(i){let t,o,l=i[1]&&I(i);return{c(){l&&l.c(),t=e.empty()},m(n,a){l&&l.m(n,a),e.insert(n,t,a),o=!0},p(n,[a]){n[1]?l?(l.p(n,a),a&2&&e.transition_in(l,1)):(l=I(n),l.c(),e.transition_in(l,1),l.m(t.parentNode,t)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros())},i(n){o||(e.transition_in(l),o=!0)},o(n){e.transition_out(l),o=!1},d(n){l&&l.d(n),n&&e.detach(t)}}}function O(i,t,o){let{five:l}=t,{visible:n}=t,{hoverEnable:a}=t,{floorplanData:f}=t,{cameraImageUrl:_}=t,{extraObjects:m=[]}=t,d=0,g=0,c=0,r=0,u=0,h=0;function p(s){o(10,g=l.work.observers[s].floorIndex)}D.onMount(()=>(l.on("panoArrived",p),()=>{l.off("panoArrived",p)}));function k(){c=this.clientWidth,r=this.clientHeight,o(6,c),o(7,r)}return i.$$set=s=>{"five"in s&&o(0,l=s.five),"visible"in s&&o(1,n=s.visible),"hoverEnable"in s&&o(2,a=s.hoverEnable),"floorplanData"in s&&o(3,f=s.floorplanData),"cameraImageUrl"in s&&o(4,_=s.cameraImageUrl),"extraObjects"in s&&o(5,m=s.extraObjects)},i.$$.update=()=>{if(i.$$.dirty&456){const s=Math.min(c,r),{max:q,min:y}=f.bounding,v=q.x-y.x,b=q.y-y.y,C=function(){return v>b?[s,s/v*b]:[s/b*v,s]}();o(8,u=C[0]),o(11,h=C[1]),o(9,d=u/v)}},[l,n,a,f,_,m,c,r,u,d,g,h,k]}class U extends e.SvelteComponent{constructor(t){super(),e.init(this,t,O,E,e.safe_not_equal,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5},z)}}exports.Main=U;
|
|
@@ -1,146 +1 @@
|
|
|
1
|
-
var c = Object.
|
|
2
|
-
var l = (n, o, t) => o in n ? c(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t;
|
|
3
|
-
var r = (n, o, t) => (l(n, typeof o != "symbol" ? o + "" : o, t), t);
|
|
4
|
-
import f from "./Components/Main.js";
|
|
5
|
-
import b from "../../shared-utils/equal.js";
|
|
6
|
-
import { CAMERA_IMAGE as w } from "../Assets/camera.js";
|
|
7
|
-
import { Controller as v } from "../../base/BasePluginWithData.js";
|
|
8
|
-
import h, { formatExtraObjects as A } from "../utils/formatData.js";
|
|
9
|
-
import "../../index.164f1850.js";
|
|
10
|
-
import "./Components/Camera.js";
|
|
11
|
-
import "../../shared-utils/throttle.js";
|
|
12
|
-
import "./Components/CurrentFloor/CurrentFloor.js";
|
|
13
|
-
import "./Components/CurrentFloor/ExtraObjects.js";
|
|
14
|
-
import "../Components/BaseImage.js";
|
|
15
|
-
import "../Components/Normalmage.js";
|
|
16
|
-
import "../Components/SvgImage.js";
|
|
17
|
-
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
18
|
-
import "../Components/RoomHighlight/Room.js";
|
|
19
|
-
import "../utils/formatPosition.js";
|
|
20
|
-
import "../../shared-utils/isTruelyObject.js";
|
|
21
|
-
import "../../base/BasePlugin.js";
|
|
22
|
-
import "../../shared-utils/Subscribe.js";
|
|
23
|
-
import "../Assets/floorplanExtraObject.js";
|
|
24
|
-
class R extends v {
|
|
25
|
-
constructor(t, e) {
|
|
26
|
-
super(t);
|
|
27
|
-
r(this, "name", "panoFloorplanRadarPlugin");
|
|
28
|
-
r(this, "state");
|
|
29
|
-
r(this, "data");
|
|
30
|
-
r(this, "app");
|
|
31
|
-
r(this, "wrapperSelector", "");
|
|
32
|
-
r(this, "wrapper", null);
|
|
33
|
-
r(this, "disposed", !1);
|
|
34
|
-
r(this, "extraObjects", []);
|
|
35
|
-
r(this, "dispose", () => {
|
|
36
|
-
var t;
|
|
37
|
-
this.disposed = !0, (t = this.app) == null || t.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
38
|
-
});
|
|
39
|
-
r(this, "_disable", (t) => {
|
|
40
|
-
var i;
|
|
41
|
-
const { userAction: e } = t;
|
|
42
|
-
(i = this.app) == null || i.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: e });
|
|
43
|
-
});
|
|
44
|
-
this.five = t;
|
|
45
|
-
const i = {
|
|
46
|
-
hoverEnable: !1,
|
|
47
|
-
cameraImageUrl: w
|
|
48
|
-
}, a = e != null && e.configs ? e.configs : {}, s = { ...i, ...a };
|
|
49
|
-
this.state = { enabled: !0, visible: !0, config: s }, e != null && e.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (e == null ? void 0 : e.wrapper) == "string" ? this.wrapperSelector = e.wrapper : (e == null ? void 0 : e.wrapper) instanceof Element && (this.wrapper = e.wrapper), t.once("dispose", this.dispose);
|
|
50
|
-
}
|
|
51
|
-
async load(t, e, i = !0) {
|
|
52
|
-
function a(d) {
|
|
53
|
-
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
54
|
-
}
|
|
55
|
-
const s = JSON.parse(JSON.stringify(t)), p = a(s) ? s.data : s, u = this.data;
|
|
56
|
-
this.data = await h(p), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
57
|
-
}
|
|
58
|
-
async show(t = {}) {
|
|
59
|
-
if (this.state.visible)
|
|
60
|
-
return;
|
|
61
|
-
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
62
|
-
this.updateState({ visible: !0 }, e), this._show({ userAction: e });
|
|
63
|
-
}
|
|
64
|
-
async hide(t = {}) {
|
|
65
|
-
if (!this.state.visible)
|
|
66
|
-
return;
|
|
67
|
-
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
68
|
-
this.updateState({ visible: !1 }, e), this._hide({ userAction: e });
|
|
69
|
-
}
|
|
70
|
-
enable(t = {}) {
|
|
71
|
-
if (this.state.enabled)
|
|
72
|
-
return;
|
|
73
|
-
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
74
|
-
this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
|
|
75
|
-
}
|
|
76
|
-
disable(t = {}) {
|
|
77
|
-
if (!this.state.enabled)
|
|
78
|
-
return;
|
|
79
|
-
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
80
|
-
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
81
|
-
}
|
|
82
|
-
setState(t, e = {}) {
|
|
83
|
-
const i = this.state, a = e.userAction !== void 0 ? e.userAction : !0;
|
|
84
|
-
if (this.updateState(t, a), t.enabled !== void 0 && i.enabled !== t.enabled) {
|
|
85
|
-
const s = { userAction: a };
|
|
86
|
-
t.enabled ? this._enable(s) : this._disable(s);
|
|
87
|
-
}
|
|
88
|
-
if (t.visible !== void 0 && i.visible !== t.visible) {
|
|
89
|
-
const s = { userAction: a };
|
|
90
|
-
t.visible ? this._show(s) : this._hide(s);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
appendTo(t) {
|
|
94
|
-
this.wrapper = t, this.render();
|
|
95
|
-
}
|
|
96
|
-
changeConfigs(t, e = !0) {
|
|
97
|
-
this.setState({ config: t }, { userAction: e }), this.render();
|
|
98
|
-
}
|
|
99
|
-
setExtraObjectsWith3DPositions(t) {
|
|
100
|
-
!this.data || (this.extraObjects = A(t, this.five, this.data), this.render());
|
|
101
|
-
}
|
|
102
|
-
async formatData(t) {
|
|
103
|
-
return await h(t.data);
|
|
104
|
-
}
|
|
105
|
-
_enable(t) {
|
|
106
|
-
const { userAction: e } = t;
|
|
107
|
-
this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e });
|
|
108
|
-
}
|
|
109
|
-
_show(t) {
|
|
110
|
-
if (this.disposed || !this.state.enabled)
|
|
111
|
-
return;
|
|
112
|
-
const { userAction: e } = t;
|
|
113
|
-
this.hooks.emit("show", { userAction: e }), this.render();
|
|
114
|
-
}
|
|
115
|
-
_hide(t) {
|
|
116
|
-
if (this.disposed || !this.state.enabled)
|
|
117
|
-
return;
|
|
118
|
-
const { userAction: e } = t;
|
|
119
|
-
this.hooks.emit("hide", { userAction: e }), this.render();
|
|
120
|
-
}
|
|
121
|
-
updateState(t, e) {
|
|
122
|
-
const i = this.state;
|
|
123
|
-
this.state = { ...this.state, ...t }, !b(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
124
|
-
}
|
|
125
|
-
render() {
|
|
126
|
-
if (this.disposed || !this.state.enabled)
|
|
127
|
-
return;
|
|
128
|
-
if (!this.wrapper && this.wrapperSelector) {
|
|
129
|
-
const e = document.querySelector(this.wrapperSelector);
|
|
130
|
-
this.wrapper = e;
|
|
131
|
-
}
|
|
132
|
-
if (!this.data || !this.wrapper)
|
|
133
|
-
return;
|
|
134
|
-
const t = {
|
|
135
|
-
...this.state.config,
|
|
136
|
-
five: this.five,
|
|
137
|
-
floorplanData: this.data,
|
|
138
|
-
visible: this.state.visible,
|
|
139
|
-
extraObjects: this.extraObjects
|
|
140
|
-
};
|
|
141
|
-
this.app ? this.app.$set(t) : this.app = new f({ target: this.wrapper, props: t });
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
export {
|
|
145
|
-
R as Controller
|
|
146
|
-
};
|
|
1
|
+
"use strict";var v=Object.defineProperty,A=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(r,s,t)=>s in r?v(r,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[s]=t,u=(r,s)=>{for(var t in s||(s={}))S.call(s,t)&&p(r,t,s[t]);if(b)for(var t of b(s))g.call(s,t)&&p(r,t,s[t]);return r},w=(r,s)=>A(r,_(s));var o=(r,s,t)=>(p(r,typeof s!="symbol"?s+"":s,t),t);var c=(r,s,t)=>new Promise((e,i)=>{var n=h=>{try{l(t.next(h))}catch(d){i(d)}},a=h=>{try{l(t.throw(h))}catch(d){i(d)}},l=h=>h.done?e(h.value):Promise.resolve(h.value).then(n,a);l((t=t.apply(r,s)).next())});const D=require("./Components/Main.js"),y=require("../../shared-utils/equal.js"),C=require("../Assets/camera.js"),j=require("../../base/BasePluginWithData.js"),f=require("../utils/formatData.js");class E extends j.Controller{constructor(t,e){super(t);o(this,"name","panoFloorplanRadarPlugin");o(this,"state");o(this,"data");o(this,"app");o(this,"wrapperSelector","");o(this,"wrapper",null);o(this,"disposed",!1);o(this,"extraObjects",[]);o(this,"dispose",()=>{var t;this.disposed=!0,(t=this.app)==null||t.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});o(this,"_disable",t=>{var i;const{userAction:e}=t;(i=this.app)==null||i.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:e})});this.five=t;const i={hoverEnable:!1,cameraImageUrl:C.CAMERA_IMAGE},n=e!=null&&e.configs?e.configs:{},a=u(u({},i),n);this.state={enabled:!0,visible:!0,config:a},e!=null&&e.wrapper&&console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"),typeof(e==null?void 0:e.wrapper)=="string"?this.wrapperSelector=e.wrapper:(e==null?void 0:e.wrapper)instanceof Element&&(this.wrapper=e.wrapper),t.once("dispose",this.dispose)}load(t,e,i=!0){return c(this,null,function*(){function n(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const a=JSON.parse(JSON.stringify(t)),l=n(a)?a.data:a,h=this.data;this.data=yield f.formatData(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,h),e&&this.updateState(e,i),this.render()})}show(){return c(this,arguments,function*(t={}){if(this.state.visible)return;const e=t.userAction!==void 0?t.userAction:!0;this.updateState({visible:!0},e),this._show({userAction:e})})}hide(){return c(this,arguments,function*(t={}){if(!this.state.visible)return;const e=t.userAction!==void 0?t.userAction:!0;this.updateState({visible:!1},e),this._hide({userAction:e})})}enable(t={}){if(this.state.enabled)return;const e=t.userAction!==void 0?t.userAction:!0;this.updateState({enabled:!0},t.userAction||e),this._enable({userAction:e})}disable(t={}){if(!this.state.enabled)return;const e=t.userAction!==void 0?t.userAction:!0;this.updateState({enabled:!1},t.userAction||e),this._disable({userAction:e})}setState(t,e={}){const i=this.state,n=e.userAction!==void 0?e.userAction:!0;if(this.updateState(t,n),t.enabled!==void 0&&i.enabled!==t.enabled){const a={userAction:n};t.enabled?this._enable(a):this._disable(a)}if(t.visible!==void 0&&i.visible!==t.visible){const a={userAction:n};t.visible?this._show(a):this._hide(a)}}appendTo(t){this.wrapper=t,this.render()}changeConfigs(t,e=!0){this.setState({config:t},{userAction:e}),this.render()}setExtraObjectsWith3DPositions(t){!this.data||(this.extraObjects=f.formatExtraObjects(t,this.five,this.data),this.render())}formatData(t){return c(this,null,function*(){return yield f.formatData(t.data)})}_enable(t){const{userAction:e}=t;this.hooks.emit("enable",{userAction:e}),this.state.visible&&this._show({userAction:e})}_show(t){if(this.disposed||!this.state.enabled)return;const{userAction:e}=t;this.hooks.emit("show",{userAction:e}),this.render()}_hide(t){if(this.disposed||!this.state.enabled)return;const{userAction:e}=t;this.hooks.emit("hide",{userAction:e}),this.render()}updateState(t,e){const i=this.state;this.state=u(u({},this.state),t),!y.equal(this.state,i,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:i,userAction:e})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const e=document.querySelector(this.wrapperSelector);this.wrapper=e}if(!this.data||!this.wrapper)return;const t=w(u({},this.state.config),{five:this.five,floorplanData:this.data,visible:this.state.visible,extraObjects:this.extraObjects});this.app?this.app.$set(t):this.app=new D.Main({target:this.wrapper,props:t})}}exports.Controller=E;
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "./Components/Main.js";
|
|
3
|
-
import "../../index.164f1850.js";
|
|
4
|
-
import "./Components/Camera.js";
|
|
5
|
-
import "../Assets/camera.js";
|
|
6
|
-
import "../../shared-utils/throttle.js";
|
|
7
|
-
import "./Components/CurrentFloor/CurrentFloor.js";
|
|
8
|
-
import "./Components/CurrentFloor/ExtraObjects.js";
|
|
9
|
-
import "../Components/BaseImage.js";
|
|
10
|
-
import "../Components/Normalmage.js";
|
|
11
|
-
import "../Components/SvgImage.js";
|
|
12
|
-
import "../Components/RoomHighlight/RoomHighlight.js";
|
|
13
|
-
import "../Components/RoomHighlight/Room.js";
|
|
14
|
-
import "../utils/formatPosition.js";
|
|
15
|
-
import "../../shared-utils/equal.js";
|
|
16
|
-
import "../../shared-utils/isTruelyObject.js";
|
|
17
|
-
import "../../base/BasePluginWithData.js";
|
|
18
|
-
import "../../base/BasePlugin.js";
|
|
19
|
-
import "../../shared-utils/Subscribe.js";
|
|
20
|
-
import "../utils/formatData.js";
|
|
21
|
-
import "../Assets/floorplanExtraObject.js";
|
|
22
|
-
const j = (o, r) => new t(o, r);
|
|
23
|
-
export {
|
|
24
|
-
j as PanoFloorplanRadarPlugin,
|
|
25
|
-
j as default
|
|
26
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./Controller.js");require("./Components/Main.js");require("svelte/internal");require("svelte");require("./Components/Camera.js");require("../Assets/camera.js");require("../../shared-utils/throttle.js");require("./Components/CurrentFloor/CurrentFloor.js");require("./Components/CurrentFloor/ExtraObjects.js");require("../Components/BaseImage.js");require("../Components/Normalmage.js");require("../Components/SvgImage.js");require("../Components/RoomHighlight/RoomHighlight.js");require("../Components/RoomHighlight/Room.js");require("../utils/formatPosition.js");require("../../shared-utils/equal.js");require("../../shared-utils/isTruelyObject.js");require("../../base/BasePluginWithData.js");require("../../base/BasePlugin.js");require("../../shared-utils/Subscribe.js");require("../utils/formatData.js");require("../Assets/floorplanExtraObject.js");const e=(r,o)=>new s.Controller(r,o);exports.PanoFloorplanRadarPlugin=e;exports.default=e;
|
|
@@ -31,7 +31,7 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
|
|
|
31
31
|
/** 更新户型图位置 */
|
|
32
32
|
updatePosition(): void;
|
|
33
33
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
34
|
-
appendTo(wrapper: Element): this
|
|
34
|
+
appendTo(wrapper: Element): this;
|
|
35
35
|
show(options?: BaseOptions): Promise<void>;
|
|
36
36
|
hide(options?: BaseOptions): Promise<void>;
|
|
37
37
|
enable(options?: BaseOptions): void;
|