@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,181 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Five as ft } from "@realsee/five";
|
|
3
|
-
import { nextFrame as ut } from "../shared-utils/animationFrame/index.js";
|
|
4
|
-
import C from "../shared-utils/equal.js";
|
|
5
|
-
import { intersectionOfLine as mt } from "../shared-utils/math/planimetry.js";
|
|
6
|
-
import dt from "../shared-utils/throttle.js";
|
|
7
|
-
import { Vector3 as P } from "three";
|
|
8
|
-
import ht from "./RulerItem.js";
|
|
9
|
-
import "../tween.esm.bad2b2b4.js";
|
|
10
|
-
import "../shared-utils/isTruelyObject.js";
|
|
11
|
-
function V(g, a, i) {
|
|
12
|
-
const o = g.slice();
|
|
13
|
-
return o[16] = a[i], o;
|
|
14
|
-
}
|
|
15
|
-
function J(g) {
|
|
16
|
-
let a, i;
|
|
17
|
-
return a = new ht({
|
|
18
|
-
props: { rulerItemProp: g[16] }
|
|
19
|
-
}), {
|
|
20
|
-
c() {
|
|
21
|
-
st(a.$$.fragment);
|
|
22
|
-
},
|
|
23
|
-
m(o, e) {
|
|
24
|
-
ct(a, o, e), i = !0;
|
|
25
|
-
},
|
|
26
|
-
p(o, e) {
|
|
27
|
-
const v = {};
|
|
28
|
-
e & 1 && (v.rulerItemProp = o[16]), a.$set(v);
|
|
29
|
-
},
|
|
30
|
-
i(o) {
|
|
31
|
-
i || (Y(a.$$.fragment, o), i = !0);
|
|
32
|
-
},
|
|
33
|
-
o(o) {
|
|
34
|
-
G(a.$$.fragment, o), i = !1;
|
|
35
|
-
},
|
|
36
|
-
d(o) {
|
|
37
|
-
it(a, o);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function pt(g) {
|
|
42
|
-
let a, i, o = g[0], e = [];
|
|
43
|
-
for (let n = 0; n < o.length; n += 1)
|
|
44
|
-
e[n] = J(V(g, o, n));
|
|
45
|
-
const v = (n) => G(e[n], 1, 1, () => {
|
|
46
|
-
e[n] = null;
|
|
47
|
-
});
|
|
48
|
-
return {
|
|
49
|
-
c() {
|
|
50
|
-
a = $("div");
|
|
51
|
-
for (let n = 0; n < e.length; n += 1)
|
|
52
|
-
e[n].c();
|
|
53
|
-
},
|
|
54
|
-
m(n, t) {
|
|
55
|
-
tt(n, a, t);
|
|
56
|
-
for (let r = 0; r < e.length; r += 1)
|
|
57
|
-
e[r].m(a, null);
|
|
58
|
-
i = !0;
|
|
59
|
-
},
|
|
60
|
-
p(n, [t]) {
|
|
61
|
-
if (t & 1) {
|
|
62
|
-
o = n[0];
|
|
63
|
-
let r;
|
|
64
|
-
for (r = 0; r < o.length; r += 1) {
|
|
65
|
-
const b = V(n, o, r);
|
|
66
|
-
e[r] ? (e[r].p(b, t), Y(e[r], 1)) : (e[r] = J(b), e[r].c(), Y(e[r], 1), e[r].m(a, null));
|
|
67
|
-
}
|
|
68
|
-
for (lt(), r = o.length; r < e.length; r += 1)
|
|
69
|
-
v(r);
|
|
70
|
-
et();
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
i(n) {
|
|
74
|
-
if (!i) {
|
|
75
|
-
for (let t = 0; t < o.length; t += 1)
|
|
76
|
-
Y(e[t]);
|
|
77
|
-
i = !0;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
o(n) {
|
|
81
|
-
e = e.filter(Boolean);
|
|
82
|
-
for (let t = 0; t < e.length; t += 1)
|
|
83
|
-
G(e[t]);
|
|
84
|
-
i = !1;
|
|
85
|
-
},
|
|
86
|
-
d(n) {
|
|
87
|
-
n && nt(a), ot(e, n);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function gt(g, a, i) {
|
|
92
|
-
var o, e, v, n;
|
|
93
|
-
let { five: t } = a, { rulerDatas: r } = a, { options: b } = a, W = [];
|
|
94
|
-
const I = ((e = (o = t.getElement()) === null || o === void 0 ? void 0 : o.parentElement) === null || e === void 0 ? void 0 : e.clientWidth) || 0, L = ((n = (v = t.getElement()) === null || v === void 0 ? void 0 : v.parentElement) === null || n === void 0 ? void 0 : n.clientHeight) || 0, K = (c, l) => {
|
|
95
|
-
const f = [
|
|
96
|
-
[{ x: 0, y: 0 }, { x: I, y: 0 }],
|
|
97
|
-
[{ x: 0, y: 0 }, { x: 0, y: L }],
|
|
98
|
-
[{ x: I, y: 0 }, { x: I, y: L }],
|
|
99
|
-
[{ x: 0, y: L }, { x: I, y: L }]
|
|
100
|
-
], m = [];
|
|
101
|
-
for (let d = 0; d < f.length; d++) {
|
|
102
|
-
const x = mt([c, l], [f[d][0], f[d][1]], !0);
|
|
103
|
-
x && m.push(x);
|
|
104
|
-
}
|
|
105
|
-
return m.length === 0 ? !1 : m;
|
|
106
|
-
}, H = (c, l) => {
|
|
107
|
-
const f = c.clone().project(t.camera), m = (f.x + 1) / 2 * I, d = (-f.y + 1) / 2 * L, x = l.clone().project(t.camera), F = (x.x + 1) / 2 * I, M = (-x.y + 1) / 2 * L, s = Math.sqrt(Math.pow(F - m, 2) + Math.pow(M - d, 2));
|
|
108
|
-
return {
|
|
109
|
-
startLeft: m,
|
|
110
|
-
startTop: d,
|
|
111
|
-
endLeft: F,
|
|
112
|
-
endTop: M,
|
|
113
|
-
distance: s
|
|
114
|
-
};
|
|
115
|
-
}, N = (c, l, f) => {
|
|
116
|
-
const m = t.camera.position, d = t.camera.getWorldDirection(new P()), x = c.clone().sub(m).normalize().angleTo(d), F = l.clone().sub(m).normalize().angleTo(d), M = c.distanceTo(l), y = l.clone().sub(l.clone().sub(c).divide(new P(2, 2, 2))).distanceTo(m), { startLeft: h, startTop: p, endLeft: D, endTop: R, distance: T } = H(c, l), j = -((Math.PI / 2 - Math.atan2(D - h, p - R)) / Math.PI) * 180;
|
|
117
|
-
let _ = !0;
|
|
118
|
-
f || (_ = !1), !C(c, f) && !C(l, f) && (_ = !1), M < 0.3 && (_ = !1), x > Math.PI / 2 && (_ = !1), F > Math.PI / 2 && (_ = !1), y / M > 8 && (_ = !1);
|
|
119
|
-
let q = 50, A = T;
|
|
120
|
-
const u = K({ x: ~~h, y: ~~p }, { x: ~~D, y: ~~R });
|
|
121
|
-
if (u && u.length === 1 && (C(c, f) ? (A = Math.sqrt(Math.pow(u[0].x - h, 2) + Math.pow(u[0].y - p, 2)), q = A / T * 50) : C(l, f) && (A = Math.sqrt(Math.pow(u[0].x - D, 2) + Math.pow(u[0].y - R, 2)), q = 100 - A / T * 50)), u && u.length === 2) {
|
|
122
|
-
const E = {
|
|
123
|
-
x: (u[0].x + u[1].x) / 2,
|
|
124
|
-
y: (u[0].y + u[1].y) / 2
|
|
125
|
-
};
|
|
126
|
-
q = Math.sqrt(Math.pow(E.x - h, 2) + Math.pow(E.y - p, 2)) / T * 100;
|
|
127
|
-
}
|
|
128
|
-
return {
|
|
129
|
-
startLeft: h,
|
|
130
|
-
startTop: p,
|
|
131
|
-
distance: T,
|
|
132
|
-
deg: j,
|
|
133
|
-
visible: _,
|
|
134
|
-
labelOffset: q,
|
|
135
|
-
ruleLength: M
|
|
136
|
-
};
|
|
137
|
-
}, w = () => {
|
|
138
|
-
const c = t.panoIndex, l = r.find((s) => s.panoIndex === c);
|
|
139
|
-
if (!l)
|
|
140
|
-
return i(0, W = []);
|
|
141
|
-
if (t.currentMode !== ft.Mode.Panorama)
|
|
142
|
-
return i(0, W = []);
|
|
143
|
-
const f = t.camera.position, m = t.camera.getWorldDirection(new P()), d = l.lines.map((s) => new P(s.start[0], -s.start[1], -s.start[2])), x = l.lines.map((s) => new P(s.end[0], -s.end[1], -s.end[2])), [F] = d.concat(x).sort((s, y) => {
|
|
144
|
-
const h = s.clone().setY(0).sub(f).normalize().angleTo(m.clone().setY(0)), p = y.clone().setY(0).sub(f).normalize().angleTo(m.clone().setY(0));
|
|
145
|
-
return h - p;
|
|
146
|
-
}), M = l.lines.map((s) => {
|
|
147
|
-
var y, h;
|
|
148
|
-
const p = s.start, D = s.end, { startLeft: R, startTop: T, distance: U, deg: j, visible: _, labelOffset: q, ruleLength: A } = N(new P(p[0], -p[1], -p[2]), new P(D[0], -D[1], -D[2]), F), u = [];
|
|
149
|
-
return s.children && ((y = s.children) === null || y === void 0 ? void 0 : y.length) > 0 && ((h = s.children) === null || h === void 0 || h.forEach((E) => {
|
|
150
|
-
const z = E.start, B = E.end, { distance: O } = H(new P(z[0], -z[1], -z[2]), new P(B[0], -B[1], -B[2]));
|
|
151
|
-
u.push({ width: O, state: E.state });
|
|
152
|
-
})), {
|
|
153
|
-
width: U,
|
|
154
|
-
left: R,
|
|
155
|
-
top: T,
|
|
156
|
-
rotateDeg: j,
|
|
157
|
-
state: s.state,
|
|
158
|
-
children: u,
|
|
159
|
-
labelOffset: q,
|
|
160
|
-
visible: _,
|
|
161
|
-
labelElement: b.distanceText(A)
|
|
162
|
-
};
|
|
163
|
-
});
|
|
164
|
-
i(0, W = M);
|
|
165
|
-
}, S = () => ut(w), k = dt(w, 80);
|
|
166
|
-
return rt(() => {
|
|
167
|
-
w(), t.on("panoArrived", w), t.on("modeChange", w), t.on("cameraDirectionUpdate", S), t.on("movingToPano", S), t.on("mouseWheel", () => k()), t.on("pinchGesture", () => k());
|
|
168
|
-
}), at(() => {
|
|
169
|
-
t.off("panoArrived", w), t.off("modeChange", w), t.off("cameraDirectionUpdate", S), t.off("movingToPano", S), t.off("mouseWheel", () => k()), t.off("pinchGesture", () => k());
|
|
170
|
-
}), g.$$set = (c) => {
|
|
171
|
-
"five" in c && i(1, t = c.five), "rulerDatas" in c && i(2, r = c.rulerDatas), "options" in c && i(3, b = c.options);
|
|
172
|
-
}, [W, t, r, b];
|
|
173
|
-
}
|
|
174
|
-
class It extends Q {
|
|
175
|
-
constructor(a) {
|
|
176
|
-
super(), X(this, a, gt, pt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
export {
|
|
180
|
-
It as default
|
|
181
|
-
};
|
|
1
|
+
"use strict";const c=require("svelte/internal"),Q=require("@realsee/five"),X=require("../shared-utils/animationFrame/index.js"),U=require("../shared-utils/equal.js"),Z=require("../shared-utils/math/planimetry.js"),$=require("../shared-utils/throttle.js"),G=require("svelte"),y=require("three"),ee=require("./RulerItem.js");function J(p,r,l){const e=p.slice();return e[12]=r[l],e}function K(p){let r,l;return r=new ee.RulerItem({props:{rulerItemProp:p[12]}}),{c(){c.create_component(r.$$.fragment)},m(e,t){c.mount_component(r,e,t),l=!0},p(e,t){const M={};t&1&&(M.rulerItemProp=e[12]),r.$set(M)},i(e){l||(c.transition_in(r.$$.fragment,e),l=!0)},o(e){c.transition_out(r.$$.fragment,e),l=!1},d(e){c.destroy_component(r,e)}}}function te(p){let r,l,e=p[0],t=[];for(let n=0;n<e.length;n+=1)t[n]=K(J(p,e,n));const M=n=>c.transition_out(t[n],1,1,()=>{t[n]=null});return{c(){r=c.element("div");for(let n=0;n<t.length;n+=1)t[n].c()},m(n,a){c.insert(n,r,a);for(let o=0;o<t.length;o+=1)t[o].m(r,null);l=!0},p(n,[a]){if(a&1){e=n[0];let o;for(o=0;o<e.length;o+=1){const V=J(n,e,o);t[o]?(t[o].p(V,a),c.transition_in(t[o],1)):(t[o]=K(V),t[o].c(),c.transition_in(t[o],1),t[o].m(r,null))}for(c.group_outros(),o=e.length;o<t.length;o+=1)M(o);c.check_outros()}},i(n){if(!l){for(let a=0;a<e.length;a+=1)c.transition_in(t[a]);l=!0}},o(n){t=t.filter(Boolean);for(let a=0;a<t.length;a+=1)c.transition_out(t[a]);l=!1},d(n){n&&c.detach(r),c.destroy_each(t,n)}}}function ne(p,r,l){var S,Y,k,H;let{five:e}=r,{rulerDatas:t}=r,{options:M}=r,n=[];const a=((Y=(S=e.getElement())==null?void 0:S.parentElement)==null?void 0:Y.clientWidth)||0,o=((H=(k=e.getElement())==null?void 0:k.parentElement)==null?void 0:H.clientHeight)||0,V=(i,u)=>{const f=[[{x:0,y:0},{x:a,y:0}],[{x:0,y:0},{x:0,y:o}],[{x:a,y:0},{x:a,y:o}],[{x:0,y:o},{x:a,y:o}]],m=[];for(let d=0;d<f.length;d++){const _=Z.intersectionOfLine([i,u],[f[d][0],f[d][1]],!0);_&&m.push(_)}return m.length===0?!1:m},C=(i,u)=>{const f=i.clone().project(e.camera),m=(f.x+1)/2*a,d=(-f.y+1)/2*o,_=u.clone().project(e.camera),b=(_.x+1)/2*a,q=(-_.y+1)/2*o,s=Math.sqrt(Math.pow(b-m,2)+Math.pow(q-d,2));return{startLeft:m,startTop:d,endLeft:b,endTop:q,distance:s}},N=(i,u,f)=>{const m=e.camera.position,d=e.camera.getWorldDirection(new y.Vector3),_=i.clone().sub(m).normalize().angleTo(d),b=u.clone().sub(m).normalize().angleTo(d),q=i.distanceTo(u),I=u.clone().sub(u.clone().sub(i).divide(new y.Vector3(2,2,2))).distanceTo(m),{startLeft:g,startTop:x,endLeft:F,endTop:L,distance:T}=C(i,u),W=-((Math.PI/2-Math.atan2(F-g,x-L))/Math.PI)*180;let P=!0;f||(P=!1),!U.equal(i,f)&&!U.equal(u,f)&&(P=!1),q<.3&&(P=!1),_>Math.PI/2&&(P=!1),b>Math.PI/2&&(P=!1),I/q>8&&(P=!1);let D=50,v=T;const h=V({x:~~g,y:~~x},{x:~~F,y:~~L});if(h&&h.length===1&&(U.equal(i,f)?(v=Math.sqrt(Math.pow(h[0].x-g,2)+Math.pow(h[0].y-x,2)),D=v/T*50):U.equal(u,f)&&(v=Math.sqrt(Math.pow(h[0].x-F,2)+Math.pow(h[0].y-L,2)),D=100-v/T*50)),h&&h.length===2){const R={x:(h[0].x+h[1].x)/2,y:(h[0].y+h[1].y)/2};D=Math.sqrt(Math.pow(R.x-g,2)+Math.pow(R.y-x,2))/T*100}return{startLeft:g,startTop:x,distance:T,deg:W,visible:P,labelOffset:D,ruleLength:q}},w=()=>{const i=e.panoIndex,u=t.find(s=>s.panoIndex===i);if(!u)return l(0,n=[]);if(e.currentMode!==Q.Five.Mode.Panorama)return l(0,n=[]);const f=e.camera.position,m=e.camera.getWorldDirection(new y.Vector3),d=u.lines.map(s=>new y.Vector3(s.start[0],-s.start[1],-s.start[2])),_=u.lines.map(s=>new y.Vector3(s.end[0],-s.end[1],-s.end[2])),[b]=d.concat(_).sort((s,I)=>{const g=s.clone().setY(0).sub(f).normalize().angleTo(m.clone().setY(0)),x=I.clone().setY(0).sub(f).normalize().angleTo(m.clone().setY(0));return g-x}),q=u.lines.map(s=>{var v,h;const I=s.start,g=s.end,{startLeft:x,startTop:F,distance:L,deg:T,visible:B,labelOffset:W,ruleLength:P}=N(new y.Vector3(I[0],-I[1],-I[2]),new y.Vector3(g[0],-g[1],-g[2]),b),D=[];return s.children&&((v=s.children)==null?void 0:v.length)>0&&((h=s.children)==null||h.forEach(R=>{const A=R.start,z=R.end,{distance:O}=C(new y.Vector3(A[0],-A[1],-A[2]),new y.Vector3(z[0],-z[1],-z[2]));D.push({width:O,state:R.state})})),{width:L,left:x,top:F,rotateDeg:T,state:s.state,children:D,labelOffset:W,visible:B,labelElement:M.distanceText(P)}});l(0,n=q)},E=()=>X.nextFrame(w),j=$.throttle(w,80);return G.onMount(()=>{w(),e.on("panoArrived",w),e.on("modeChange",w),e.on("cameraDirectionUpdate",E),e.on("movingToPano",E),e.on("mouseWheel",()=>j()),e.on("pinchGesture",()=>j())}),G.onDestroy(()=>{e.off("panoArrived",w),e.off("modeChange",w),e.off("cameraDirectionUpdate",E),e.off("movingToPano",E),e.off("mouseWheel",()=>j()),e.off("pinchGesture",()=>j())}),p.$$set=i=>{"five"in i&&l(1,e=i.five),"rulerDatas"in i&&l(2,t=i.rulerDatas),"options"in i&&l(3,M=i.options)},[n,e,t,M]}class oe extends c.SvelteComponent{constructor(r){super(),c.init(this,r,ne,te,c.safe_not_equal,{five:1,rulerDatas:2,options:3})}}exports.RulerItems=oe;
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "./RulerItems.js";
|
|
3
|
-
import "../index.164f1850.js";
|
|
4
|
-
import "@realsee/five";
|
|
5
|
-
import "../shared-utils/animationFrame/index.js";
|
|
6
|
-
import "../tween.esm.bad2b2b4.js";
|
|
7
|
-
import "../shared-utils/equal.js";
|
|
8
|
-
import "../shared-utils/isTruelyObject.js";
|
|
9
|
-
import "../shared-utils/math/planimetry.js";
|
|
10
|
-
import "../shared-utils/throttle.js";
|
|
11
|
-
import "three";
|
|
12
|
-
import "./RulerItem.js";
|
|
13
|
-
const d = (r, o) => new t(r, o);
|
|
14
|
-
export {
|
|
15
|
-
d as PanoRulerProPlugin,
|
|
16
|
-
d as default
|
|
17
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./Controller.js");require("./RulerItems.js");require("svelte/internal");require("@realsee/five");require("../shared-utils/animationFrame/index.js");require("../shared-utils/animationFrame/BetterTween.js");require("@tweenjs/tween.js");require("../shared-utils/equal.js");require("../shared-utils/isTruelyObject.js");require("../shared-utils/math/planimetry.js");require("../shared-utils/throttle.js");require("svelte");require("three");require("./RulerItem.js");const e=(r,t)=>new u.Controller(r,t);exports.PanoRulerProPlugin=e;exports.default=e;
|
|
@@ -1,82 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { currentTarget as z } from "../store.js";
|
|
3
|
-
import "../../index.ad783a2f.js";
|
|
4
|
-
function w(n) {
|
|
5
|
-
y(n, "svelte-19zi46m", ".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
6
|
-
}
|
|
7
|
-
function _(n, t, s) {
|
|
8
|
-
const e = n.slice();
|
|
9
|
-
return e[3] = t[s], e;
|
|
10
|
-
}
|
|
11
|
-
function m(n) {
|
|
12
|
-
let t, s = `${n[3].top}%`, e = `${n[3].left}%`, i, o;
|
|
13
|
-
function a() {
|
|
14
|
-
return n[2](n[3]);
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
c() {
|
|
18
|
-
t = b("i"), T(t, "class", "svelte-19zi46m"), f(t, "PanoSpatialTagPlugin__tag-origin", !0), f(t, "PanoSpatialTagPlugin__tag-origin-destroy", n[3].destroying), g(t, "top", s), g(t, "left", e), g(t, "visibility", n[3].front ? "visible" : "hidden");
|
|
19
|
-
},
|
|
20
|
-
m(l, r) {
|
|
21
|
-
p(l, t, r), i || (o = k(t, "click", a), i = !0);
|
|
22
|
-
},
|
|
23
|
-
p(l, r) {
|
|
24
|
-
n = l, r & 1 && f(t, "PanoSpatialTagPlugin__tag-origin-destroy", n[3].destroying), r & 1 && s !== (s = `${n[3].top}%`) && g(t, "top", s), r & 1 && e !== (e = `${n[3].left}%`) && g(t, "left", e), r & 1 && g(t, "visibility", n[3].front ? "visible" : "hidden");
|
|
25
|
-
},
|
|
26
|
-
d(l) {
|
|
27
|
-
l && u(t), i = !1, o();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function $(n) {
|
|
32
|
-
let t, s = n[0], e = [];
|
|
33
|
-
for (let i = 0; i < s.length; i += 1)
|
|
34
|
-
e[i] = m(_(n, s, i));
|
|
35
|
-
return {
|
|
36
|
-
c() {
|
|
37
|
-
for (let i = 0; i < e.length; i += 1)
|
|
38
|
-
e[i].c();
|
|
39
|
-
t = v();
|
|
40
|
-
},
|
|
41
|
-
m(i, o) {
|
|
42
|
-
for (let a = 0; a < e.length; a += 1)
|
|
43
|
-
e[a].m(i, o);
|
|
44
|
-
p(i, t, o);
|
|
45
|
-
},
|
|
46
|
-
p(i, [o]) {
|
|
47
|
-
if (o & 3) {
|
|
48
|
-
s = i[0];
|
|
49
|
-
let a;
|
|
50
|
-
for (a = 0; a < s.length; a += 1) {
|
|
51
|
-
const l = _(i, s, a);
|
|
52
|
-
e[a] ? e[a].p(l, o) : (e[a] = m(l), e[a].c(), e[a].m(t.parentNode, t));
|
|
53
|
-
}
|
|
54
|
-
for (; a < e.length; a += 1)
|
|
55
|
-
e[a].d(1);
|
|
56
|
-
e.length = s.length;
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
i: c,
|
|
60
|
-
o: c,
|
|
61
|
-
d(i) {
|
|
62
|
-
S(e, i), i && u(t);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function q(n, t, s) {
|
|
67
|
-
let { origins: e } = t;
|
|
68
|
-
const i = (a) => {
|
|
69
|
-
z.update(() => `${a}-PanoSpatialTagPlugin-${Date.now()}`);
|
|
70
|
-
}, o = (a) => i(a.id);
|
|
71
|
-
return n.$$set = (a) => {
|
|
72
|
-
"origins" in a && s(0, e = a.origins);
|
|
73
|
-
}, [e, i, o];
|
|
74
|
-
}
|
|
75
|
-
class K extends d {
|
|
76
|
-
constructor(t) {
|
|
77
|
-
super(), h(this, t, q, $, P, { origins: 0 }, w);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
K as default
|
|
82
|
-
};
|
|
1
|
+
"use strict";const n=require("svelte/internal"),_=require("../store.js");function u(s){n.append_styles(s,"svelte-19zi46m",".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}")}function f(s,e,l){const t=s.slice();return t[3]=e[l],t}function c(s){let e,l=`${s[3].top}%`,t=`${s[3].left}%`,i,o;function a(){return s[2](s[3])}return{c(){e=n.element("i"),n.attr(e,"class","svelte-19zi46m"),n.toggle_class(e,"PanoSpatialTagPlugin__tag-origin",!0),n.toggle_class(e,"PanoSpatialTagPlugin__tag-origin-destroy",s[3].destroying),n.set_style(e,"top",l,!1),n.set_style(e,"left",t,!1),n.set_style(e,"visibility",s[3].front?"visible":"hidden",!1)},m(r,g){n.insert(r,e,g),i||(o=n.listen(e,"click",a),i=!0)},p(r,g){s=r,g&1&&n.toggle_class(e,"PanoSpatialTagPlugin__tag-origin-destroy",s[3].destroying),g&1&&l!==(l=`${s[3].top}%`)&&n.set_style(e,"top",l,!1),g&1&&t!==(t=`${s[3].left}%`)&&n.set_style(e,"left",t,!1),g&1&&n.set_style(e,"visibility",s[3].front?"visible":"hidden",!1)},d(r){r&&n.detach(e),i=!1,o()}}}function p(s){let e,l=s[0],t=[];for(let i=0;i<l.length;i+=1)t[i]=c(f(s,l,i));return{c(){for(let i=0;i<t.length;i+=1)t[i].c();e=n.empty()},m(i,o){for(let a=0;a<t.length;a+=1)t[a].m(i,o);n.insert(i,e,o)},p(i,[o]){if(o&3){l=i[0];let a;for(a=0;a<l.length;a+=1){const r=f(i,l,a);t[a]?t[a].p(r,o):(t[a]=c(r),t[a].c(),t[a].m(e.parentNode,e))}for(;a<t.length;a+=1)t[a].d(1);t.length=l.length}},i:n.noop,o:n.noop,d(i){n.destroy_each(t,i),i&&n.detach(e)}}}function m(s,e,l){let{origins:t}=e;const i=a=>{_.currentTarget.update(()=>`${a}-PanoSpatialTagPlugin-${Date.now()}`)},o=a=>i(a.id);return s.$$set=a=>{"origins"in a&&l(0,t=a.origins)},[t,i,o]}class d extends n.SvelteComponent{constructor(e){super(),n.init(this,e,m,p,n.safe_not_equal,{origins:0},u)}}exports.Origins=d;
|
|
@@ -1,124 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { currentTarget as R } from "../store.js";
|
|
3
|
-
import "../../index.ad783a2f.js";
|
|
4
|
-
function U(n) {
|
|
5
|
-
j(n, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
6
|
-
}
|
|
7
|
-
function B(n) {
|
|
8
|
-
let a, i, h, s, f, S, T, b, z, r, _, o, P, v, w;
|
|
9
|
-
return {
|
|
10
|
-
c() {
|
|
11
|
-
a = d("div"), i = d("div"), h = k(), s = d("div"), f = d("i"), S = k(), T = d("i"), b = k(), z = d("i"), r = k(), _ = d("div"), o = d("div"), u(i, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), c(i, "transform", "translate(" + n[7] / 2 * n[3] * 3 + "px, " + n[8] / 2 * (n[1] ? -1 : 1) * n[3] * 3 + "px) scale(" + 1 / n[3] + ")"), u(f, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), c(f, "width", n[4] + "rem"), u(T, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), u(z, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), u(s, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), u(o, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), u(_, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), c(_, "transform", "scale(" + n[3] * 3 + ")"), u(a, "id", P = "PanoSpatialTagPlugin__" + n[0]), c(a, "height", 20 * n[5] + "rem"), u(a, "class", "svelte-1i5h9zh"), p(a, "PanoSpatialTagPlugin__tag-x", !0), p(a, "PanoSpatialTagPlugin__tag-upside-down", n[1]), p(a, "PanoSpatialTagPlugin__tag-show", n[10]), p(a, "PanoSpatialTagPlugin__tag-hide", n[10] === !1 || n[6]);
|
|
12
|
-
},
|
|
13
|
-
m(e, l) {
|
|
14
|
-
q(e, a, l), g(a, i), g(a, h), g(a, s), g(s, f), g(s, S), g(s, T), g(s, b), g(s, z), g(a, r), g(a, _), g(_, o), o.innerHTML = n[2], n[16](o), v || (w = L(o, "click", n[11]), v = !0);
|
|
15
|
-
},
|
|
16
|
-
p(e, [l]) {
|
|
17
|
-
l & 394 && c(i, "transform", "translate(" + e[7] / 2 * e[3] * 3 + "px, " + e[8] / 2 * (e[1] ? -1 : 1) * e[3] * 3 + "px) scale(" + 1 / e[3] + ")"), l & 16 && c(f, "width", e[4] + "rem"), l & 4 && (o.innerHTML = e[2]), l & 8 && c(_, "transform", "scale(" + e[3] * 3 + ")"), l & 1 && P !== (P = "PanoSpatialTagPlugin__" + e[0]) && u(a, "id", P), l & 32 && c(a, "height", 20 * e[5] + "rem"), l & 2 && p(a, "PanoSpatialTagPlugin__tag-upside-down", e[1]), l & 1024 && p(a, "PanoSpatialTagPlugin__tag-show", e[10]), l & 1088 && p(a, "PanoSpatialTagPlugin__tag-hide", e[10] === !1 || e[6]);
|
|
18
|
-
},
|
|
19
|
-
i: D,
|
|
20
|
-
o: D,
|
|
21
|
-
d(e) {
|
|
22
|
-
e && O(a), n[16](null), v = !1, w();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function J(n, a, i) {
|
|
27
|
-
let { id: h } = a, { upsideDown: s } = a, { content: f } = a, { contentZoom: S } = a, { lineWidthZoom: T } = a, { lineHeightZoom: b } = a, { destroying: z = !1 } = a, { folded: r } = a, { dispose: _ } = a, { events: o } = a, { hooks: P } = a, v = 0, w = 0, e, l, y = setTimeout(
|
|
28
|
-
() => {
|
|
29
|
-
r || i(10, l = !0), y = void 0;
|
|
30
|
-
},
|
|
31
|
-
100
|
|
32
|
-
);
|
|
33
|
-
const W = (t) => {
|
|
34
|
-
const Y = Object.keys(o);
|
|
35
|
-
let m = t.target;
|
|
36
|
-
for (; m; ) {
|
|
37
|
-
const Z = m.getAttribute("class");
|
|
38
|
-
if (!Z) {
|
|
39
|
-
m = m.parentNode;
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
if (Z.includes("PanoSpatialTagPlugin__tag-content")) {
|
|
43
|
-
m = null;
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
Y.forEach((H) => {
|
|
47
|
-
Z.includes(H) && o[H](h);
|
|
48
|
-
}), m = m.parentNode;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
A(() => {
|
|
52
|
-
P.emit("initTag", { id: h });
|
|
53
|
-
});
|
|
54
|
-
const F = R.subscribe((t) => {
|
|
55
|
-
if (t === null)
|
|
56
|
-
return;
|
|
57
|
-
const [Y, m] = t.split("-PanoSpatialTagPlugin-");
|
|
58
|
-
h === Y && (P.emit("clickOrigin", { id: h, show: l }), y || (i(10, l = r), i(12, r = !r), y = setTimeout(
|
|
59
|
-
() => {
|
|
60
|
-
y = void 0;
|
|
61
|
-
},
|
|
62
|
-
1500
|
|
63
|
-
)));
|
|
64
|
-
});
|
|
65
|
-
E(() => {
|
|
66
|
-
i(7, v = e.offsetWidth), i(8, w = e.offsetHeight), !y && i(10, l = !r);
|
|
67
|
-
}), G(() => {
|
|
68
|
-
P.emit("destroyTag", { id: h }), F(), _();
|
|
69
|
-
});
|
|
70
|
-
function N(t) {
|
|
71
|
-
K[t ? "unshift" : "push"](() => {
|
|
72
|
-
e = t, i(9, e);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
return n.$$set = (t) => {
|
|
76
|
-
"id" in t && i(0, h = t.id), "upsideDown" in t && i(1, s = t.upsideDown), "content" in t && i(2, f = t.content), "contentZoom" in t && i(3, S = t.contentZoom), "lineWidthZoom" in t && i(4, T = t.lineWidthZoom), "lineHeightZoom" in t && i(5, b = t.lineHeightZoom), "destroying" in t && i(6, z = t.destroying), "folded" in t && i(12, r = t.folded), "dispose" in t && i(13, _ = t.dispose), "events" in t && i(14, o = t.events), "hooks" in t && i(15, P = t.hooks);
|
|
77
|
-
}, [
|
|
78
|
-
h,
|
|
79
|
-
s,
|
|
80
|
-
f,
|
|
81
|
-
S,
|
|
82
|
-
T,
|
|
83
|
-
b,
|
|
84
|
-
z,
|
|
85
|
-
v,
|
|
86
|
-
w,
|
|
87
|
-
e,
|
|
88
|
-
l,
|
|
89
|
-
W,
|
|
90
|
-
r,
|
|
91
|
-
_,
|
|
92
|
-
o,
|
|
93
|
-
P,
|
|
94
|
-
N
|
|
95
|
-
];
|
|
96
|
-
}
|
|
97
|
-
class x extends C {
|
|
98
|
-
constructor(a) {
|
|
99
|
-
super(), I(
|
|
100
|
-
this,
|
|
101
|
-
a,
|
|
102
|
-
J,
|
|
103
|
-
B,
|
|
104
|
-
M,
|
|
105
|
-
{
|
|
106
|
-
id: 0,
|
|
107
|
-
upsideDown: 1,
|
|
108
|
-
content: 2,
|
|
109
|
-
contentZoom: 3,
|
|
110
|
-
lineWidthZoom: 4,
|
|
111
|
-
lineHeightZoom: 5,
|
|
112
|
-
destroying: 6,
|
|
113
|
-
folded: 12,
|
|
114
|
-
dispose: 13,
|
|
115
|
-
events: 14,
|
|
116
|
-
hooks: 15
|
|
117
|
-
},
|
|
118
|
-
U
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export {
|
|
123
|
-
x as default
|
|
124
|
-
};
|
|
1
|
+
"use strict";const a=require("svelte/internal"),w=require("svelte"),H=require("../store.js");function D(l){a.append_styles(l,"svelte-1i5h9zh",".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}")}function W(l){let t,n,r,g,P,m,c,T,p,h,_,o,u,d,v;return{c(){t=a.element("div"),n=a.element("div"),r=a.space(),g=a.element("div"),P=a.element("i"),m=a.space(),c=a.element("i"),T=a.space(),p=a.element("i"),h=a.space(),_=a.element("div"),o=a.element("div"),a.attr(n,"class","PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"),a.set_style(n,"transform","translate("+l[7]/2*l[3]*3+"px, "+l[8]/2*(l[1]?-1:1)*l[3]*3+"px) scale("+1/l[3]+")"),a.attr(P,"class","PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"),a.set_style(P,"width",l[4]+"rem"),a.attr(c,"class","PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"),a.attr(p,"class","PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"),a.attr(g,"class","PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"),a.attr(o,"class","PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"),a.attr(_,"class","PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"),a.set_style(_,"transform","scale("+l[3]*3+")"),a.attr(t,"id",u="PanoSpatialTagPlugin__"+l[0]),a.set_style(t,"height",20*l[5]+"rem"),a.attr(t,"class","svelte-1i5h9zh"),a.toggle_class(t,"PanoSpatialTagPlugin__tag-x",!0),a.toggle_class(t,"PanoSpatialTagPlugin__tag-upside-down",l[1]),a.toggle_class(t,"PanoSpatialTagPlugin__tag-show",l[10]),a.toggle_class(t,"PanoSpatialTagPlugin__tag-hide",l[10]===!1||l[6])},m(i,s){a.insert(i,t,s),a.append(t,n),a.append(t,r),a.append(t,g),a.append(g,P),a.append(g,m),a.append(g,c),a.append(g,T),a.append(g,p),a.append(t,h),a.append(t,_),a.append(_,o),o.innerHTML=l[2],l[16](o),d||(v=a.listen(o,"click",l[11]),d=!0)},p(i,[s]){s&394&&a.set_style(n,"transform","translate("+i[7]/2*i[3]*3+"px, "+i[8]/2*(i[1]?-1:1)*i[3]*3+"px) scale("+1/i[3]+")"),s&16&&a.set_style(P,"width",i[4]+"rem"),s&4&&(o.innerHTML=i[2]),s&8&&a.set_style(_,"transform","scale("+i[3]*3+")"),s&1&&u!==(u="PanoSpatialTagPlugin__"+i[0])&&a.attr(t,"id",u),s&32&&a.set_style(t,"height",20*i[5]+"rem"),s&2&&a.toggle_class(t,"PanoSpatialTagPlugin__tag-upside-down",i[1]),s&1024&&a.toggle_class(t,"PanoSpatialTagPlugin__tag-show",i[10]),s&1088&&a.toggle_class(t,"PanoSpatialTagPlugin__tag-hide",i[10]===!1||i[6])},i:a.noop,o:a.noop,d(i){i&&a.detach(t),l[16](null),d=!1,v()}}}function q(l,t,n){let{id:r}=t,{upsideDown:g}=t,{content:P}=t,{contentZoom:m}=t,{lineWidthZoom:c}=t,{lineHeightZoom:T}=t,{destroying:p=!1}=t,{folded:h}=t,{dispose:_}=t,{events:o}=t,{hooks:u}=t,d=0,v=0,i,s,z=setTimeout(()=>{h||n(10,s=!0),z=void 0},100);const k=e=>{const S=Object.keys(o);let f=e.target;for(;f;){const b=f.getAttribute("class");if(!b){f=f.parentNode;continue}if(b.includes("PanoSpatialTagPlugin__tag-content")){f=null;break}S.forEach(y=>{b.includes(y)&&o[y](r)}),f=f.parentNode}};w.onMount(()=>{u.emit("initTag",{id:r})});const Y=H.currentTarget.subscribe(e=>{if(e===null)return;const[S,f]=e.split("-PanoSpatialTagPlugin-");r===S&&(u.emit("clickOrigin",{id:r,show:s}),z||(n(10,s=h),n(12,h=!h),z=setTimeout(()=>{z=void 0},1500)))});w.afterUpdate(()=>{n(7,d=i.offsetWidth),n(8,v=i.offsetHeight),!z&&n(10,s=!h)}),w.onDestroy(()=>{u.emit("destroyTag",{id:r}),Y(),_()});function Z(e){a.binding_callbacks[e?"unshift":"push"](()=>{i=e,n(9,i)})}return l.$$set=e=>{"id"in e&&n(0,r=e.id),"upsideDown"in e&&n(1,g=e.upsideDown),"content"in e&&n(2,P=e.content),"contentZoom"in e&&n(3,m=e.contentZoom),"lineWidthZoom"in e&&n(4,c=e.lineWidthZoom),"lineHeightZoom"in e&&n(5,T=e.lineHeightZoom),"destroying"in e&&n(6,p=e.destroying),"folded"in e&&n(12,h=e.folded),"dispose"in e&&n(13,_=e.dispose),"events"in e&&n(14,o=e.events),"hooks"in e&&n(15,u=e.hooks)},[r,g,P,m,c,T,p,d,v,i,s,k,h,_,o,u,Z]}class N extends a.SvelteComponent{constructor(t){super(),a.init(this,t,q,W,a.safe_not_equal,{id:0,upsideDown:1,content:2,contentZoom:3,lineWidthZoom:4,lineHeightZoom:5,destroying:6,folded:12,dispose:13,events:14,hooks:15},D)}}exports.Tag=N;
|