@realsee/dnalogel 2.1.2-alpha.10 → 2.1.2-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
- package/dist/CSS3DRenderPlugin/Controller.d.ts +81 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +5 -0
- package/dist/CSS3DRenderPlugin/typing.d.ts +26 -0
- package/dist/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
- package/dist/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
- package/dist/CSS3DRenderPlugin/utils/random.d.ts +1 -0
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +5 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/CruisePlugin/Controller.d.ts +172 -0
- package/dist/CruisePlugin/index.d.ts +6 -0
- package/dist/CruisePlugin/typing.d.ts +134 -0
- package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/dist/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/dist/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/dist/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/dist/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/dist/GuideLinePlugin/Controller.d.ts +51 -0
- package/dist/GuideLinePlugin/index.d.ts +5 -0
- package/dist/GuideLinePlugin/typing.d.ts +34 -0
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.d.ts +9 -0
- package/dist/ItemLabelPlugin/typings.d.ts +65 -0
- package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +4 -0
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +5 -0
- package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +28 -0
- package/dist/ModelViewPlugin/index.d.ts +4 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +65 -0
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/dist/Object3DHelperPlugin/index.d.ts +6 -0
- package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/Controller.d.ts +84 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +7 -0
- package/dist/PanoCompassPlugin/typings.d.ts +57 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoDoorLabelPlugin/Controller.d.ts +37 -0
- package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/typings.d.ts +38 -0
- package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +73 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +35 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/dist/PanoMeasurePlugin/index.d.ts +10 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/Plugin.d.ts +34 -0
- package/dist/PanoRulerPlugin/index.d.ts +5 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -0
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +144 -0
- package/dist/PanoTagPlugin/index.d.ts +8 -0
- package/dist/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +103 -0
- package/dist/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/base/BasePlugin.d.ts +106 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/components/PaintBrush/Controller.d.ts +43 -0
- package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
- package/dist/components/PaintBrush/index.d.ts +27 -0
- package/dist/components/PaintBrush/style.d.ts +2 -0
- package/dist/components/PaintBrush/tween.d.ts +7 -0
- package/dist/components/PaintBrush/typings.d.ts +58 -0
- package/dist/components/PaintBrush/utils.d.ts +26 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/env.d.ts +1 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/compass.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/index.d.ts +7 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +144 -0
- package/dist/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/constant.d.ts +22 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.es.js +16650 -0
- package/dist/index.js +556 -0
- package/dist/index.umd.js +556 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
- package/dist/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/dist/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/dist/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
- package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/index.d.ts +71 -0
- package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
- package/dist/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/dist/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/dist/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/dist/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/dist/shared-utils/Subscribe.d.ts +60 -0
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/dist/shared-utils/animationFrame/index.d.ts +16 -0
- package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/dist/shared-utils/createLine/index.d.ts +3 -0
- package/dist/shared-utils/debounce.d.ts +6 -0
- package/dist/shared-utils/equal.d.ts +11 -0
- package/dist/shared-utils/filter.d.ts +27 -0
- package/dist/shared-utils/five/changeMode.d.ts +5 -0
- package/dist/shared-utils/getPxmm.d.ts +19 -0
- package/dist/shared-utils/index.d.ts +4 -0
- package/dist/shared-utils/isNil.d.ts +10 -0
- package/dist/shared-utils/isTruelyObject.d.ts +18 -0
- package/dist/shared-utils/math/Interval.d.ts +13 -0
- package/dist/shared-utils/math/Rectangle.d.ts +27 -0
- package/dist/shared-utils/math/index.d.ts +2 -0
- package/dist/shared-utils/math/planimetry.d.ts +116 -0
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/nextFrame.d.ts +1 -0
- package/dist/shared-utils/noop.d.ts +5 -0
- package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/Assets/index.d.ts +3 -0
- package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/dist/shared-utils/three/Magnifier.d.ts +53 -0
- package/dist/shared-utils/three/PointDomHelper.d.ts +18 -0
- package/dist/shared-utils/three/PointHelper.d.ts +21 -0
- package/dist/shared-utils/three/getCoords.d.ts +9 -0
- package/dist/shared-utils/three/getIntersect.d.ts +6 -0
- package/dist/shared-utils/three/getRaycaster.d.ts +6 -0
- package/dist/shared-utils/three/index.d.ts +7 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/dist/shared-utils/throttle.d.ts +7 -0
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/to.d.ts +8 -0
- package/dist/shared-utils/uuid.d.ts +5 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/package.json +5 -7
- package/dist/CSS3DRenderPlugin/index..js +0 -88
- package/dist/CSS3DRenderPlugin/index.cjs.js +0 -1
- package/dist/CameraMovementPlugin/index..js +0 -11
- package/dist/CameraMovementPlugin/index.cjs.js +0 -1
- package/dist/CruisePlugin/index..js +0 -527
- package/dist/CruisePlugin/index.cjs.js +0 -1
- package/dist/GuideLinePlugin/index..js +0 -214
- package/dist/GuideLinePlugin/index.cjs.js +0 -1
- package/dist/ItemLabelPlugin/index..js +0 -508
- package/dist/ItemLabelPlugin/index.cjs.js +0 -10
- package/dist/ModelChassisCompassPlugin/index..js +0 -9
- package/dist/ModelChassisCompassPlugin/index.cjs.js +0 -1
- package/dist/ModelEntryDoorGuidePlugin/index..js +0 -9
- package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +0 -1
- package/dist/ModelItemLabelPlugin/index..js +0 -334
- package/dist/ModelItemLabelPlugin/index.cjs.js +0 -10
- package/dist/ModelRoomLabelPlugin/index..js +0 -274
- package/dist/ModelRoomLabelPlugin/index.cjs.js +0 -1
- package/dist/ModelTVVideoPlugin/index..js +0 -12
- package/dist/ModelTVVideoPlugin/index.cjs.js +0 -1
- package/dist/ModelViewPlugin/index..js +0 -8
- package/dist/ModelViewPlugin/index.cjs.js +0 -1
- package/dist/Object3DHelperPlugin/index..js +0 -1414
- package/dist/Object3DHelperPlugin/index.cjs.js +0 -1
- package/dist/PanoCompassPlugin/index..js +0 -258
- package/dist/PanoCompassPlugin/index.cjs.js +0 -1
- package/dist/PanoCursorRaycasterPlugin/index..js +0 -63
- package/dist/PanoCursorRaycasterPlugin/index.cjs.js +0 -1
- package/dist/PanoDoorLabelPlugin/index..js +0 -340
- package/dist/PanoDoorLabelPlugin/index.cjs.js +0 -1
- package/dist/PanoMeasurePlugin/index..js +0 -15
- package/dist/PanoMeasurePlugin/index.cjs.js +0 -1
- package/dist/PanoRulerPlugin/index..js +0 -9
- package/dist/PanoRulerPlugin/index.cjs.js +0 -1
- package/dist/PanoRulerProPlugin/index..js +0 -395
- package/dist/PanoRulerProPlugin/index.cjs.js +0 -1
- package/dist/PanoSpatialTagPlugin/index..js +0 -15
- package/dist/PanoSpatialTagPlugin/index.cjs.js +0 -1
- package/dist/PanoTagPlugin/index..js +0 -4522
- package/dist/PanoTagPlugin/index.cjs.js +0 -17
- package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +0 -1
- package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +0 -1
- package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +0 -1
- package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +0 -94
- package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +0 -16
- package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.9971108a.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +0 -1
- package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +0 -1
- package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +0 -1
- package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +0 -1
- package/dist/chunks/cjs/debounce.93dfb637.cjs.js +0 -1
- package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +0 -1
- package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +0 -1
- package/dist/chunks/cjs/formatData.81e95011.cjs.js +0 -10
- package/dist/chunks/cjs/index.30b7baeb.cjs.js +0 -101
- package/dist/chunks/cjs/index.686e84d1.cjs.js +0 -290
- package/dist/chunks/cjs/index.7d2010ce.cjs.js +0 -1
- package/dist/chunks/cjs/isNil.b3a58990.cjs.js +0 -1
- package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +0 -1
- package/dist/chunks/cjs/throttle.86c209eb.cjs.js +0 -1
- package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +0 -1
- package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +0 -1
- package/dist/chunks/es/BasePlugin.813e25f7.es.js +0 -18
- package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +0 -6
- package/dist/chunks/es/CSS3DRender.5652510e.es.js +0 -393
- package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +0 -120
- package/dist/chunks/es/Plugin.26c2df05.es.js +0 -106
- package/dist/chunks/es/Plugin.435485ed.es.js +0 -584
- package/dist/chunks/es/Plugin.a98418f0.es.js +0 -82
- package/dist/chunks/es/Plugin.ae4ee6f8.es.js +0 -82
- package/dist/chunks/es/Plugin.dd11e0ad.es.js +0 -180
- package/dist/chunks/es/Plugin.f4cf895f.es.js +0 -355
- package/dist/chunks/es/Subscribe.c73e0f91.es.js +0 -50
- package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +0 -1551
- package/dist/chunks/es/correctFiveState.e7feab9f.es.js +0 -66
- package/dist/chunks/es/debounce.ef83f417.es.js +0 -11
- package/dist/chunks/es/equal.7db4a6f7.es.js +0 -56
- package/dist/chunks/es/filter.97ec06c4.es.js +0 -12
- package/dist/chunks/es/formatData.a2b39ef9.es.js +0 -483
- package/dist/chunks/es/index.a273f06e.es.js +0 -532
- package/dist/chunks/es/index.b8fdb59b.es.js +0 -50
- package/dist/chunks/es/index.f74f4851.es.js +0 -1787
- package/dist/chunks/es/isNil.212842d9.es.js +0 -10
- package/dist/chunks/es/planimetry.b0b4a28d.es.js +0 -43
- package/dist/chunks/es/throttle.db66bac3.es.js +0 -11
- package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +0 -24
- package/dist/chunks/es/uuid.676cb2c8.es.js +0 -9
- package/dist/components/PaintBrush/index..js +0 -6
- package/dist/components/PaintBrush/index.cjs.js +0 -1
- package/dist/components/index..js +0 -7
- package/dist/components/index.cjs.js +0 -1
- package/dist/floorplan/MapviewFloorplanPlugin/index..js +0 -324
- package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +0 -1
- package/dist/floorplan/ModelFloorplanPlugin/index..js +0 -320
- package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +0 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +0 -613
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +0 -1
- package/dist/floorplan/TopviewFloorplanPlugin/index..js +0 -277
- package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +0 -1
- package/dist/index..js +0 -530
- package/dist/index.cjs.js +0 -16
|
@@ -1,584 +0,0 @@
|
|
|
1
|
-
var Ne = Object.defineProperty;
|
|
2
|
-
var He = (t, e, n) => e in t ? Ne(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var N = (t, e, n) => (He(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import * as S from "three";
|
|
5
|
-
import { Subscribe as Ve, Five as Ue } from "@realsee/five";
|
|
6
|
-
import { CSS3DRenderPlugin as qe } from "../../CSS3DRenderPlugin/index..js";
|
|
7
|
-
import { SvelteComponent as ye, init as Ee, safe_not_equal as Me, append_styles as ke, empty as Ge, insert as ae, noop as te, destroy_each as Be, detach as se, element as C, attr as I, toggle_class as D, set_style as E, listen as Le, space as ee, append as A, binding_callbacks as Xe } from "svelte/internal";
|
|
8
|
-
import { writable as Je } from "svelte/store";
|
|
9
|
-
import { onMount as Ke, afterUpdate as Qe, onDestroy as $e } from "svelte";
|
|
10
|
-
const Ae = Je(null);
|
|
11
|
-
function et(t) {
|
|
12
|
-
ke(t, "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}}");
|
|
13
|
-
}
|
|
14
|
-
function _e(t, e, n) {
|
|
15
|
-
const o = t.slice();
|
|
16
|
-
return o[3] = e[n], o;
|
|
17
|
-
}
|
|
18
|
-
function Pe(t) {
|
|
19
|
-
let e, n = `${t[3].top}%`, o = `${t[3].left}%`, a, g;
|
|
20
|
-
function s() {
|
|
21
|
-
return t[2](t[3]);
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
c() {
|
|
25
|
-
e = C("i"), I(e, "class", "svelte-19zi46m"), D(e, "PanoSpatialTagPlugin__tag-origin", !0), D(e, "PanoSpatialTagPlugin__tag-origin-destroy", t[3].destroying), E(e, "top", n, !1), E(e, "left", o, !1), E(e, "visibility", t[3].front ? "visible" : "hidden", !1);
|
|
26
|
-
},
|
|
27
|
-
m(f, z) {
|
|
28
|
-
ae(f, e, z), a || (g = Le(e, "click", s), a = !0);
|
|
29
|
-
},
|
|
30
|
-
p(f, z) {
|
|
31
|
-
t = f, z & 1 && D(e, "PanoSpatialTagPlugin__tag-origin-destroy", t[3].destroying), z & 1 && n !== (n = `${t[3].top}%`) && E(e, "top", n, !1), z & 1 && o !== (o = `${t[3].left}%`) && E(e, "left", o, !1), z & 1 && E(e, "visibility", t[3].front ? "visible" : "hidden", !1);
|
|
32
|
-
},
|
|
33
|
-
d(f) {
|
|
34
|
-
f && se(e), a = !1, g();
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function tt(t) {
|
|
39
|
-
let e, n = t[0], o = [];
|
|
40
|
-
for (let a = 0; a < n.length; a += 1)
|
|
41
|
-
o[a] = Pe(_e(t, n, a));
|
|
42
|
-
return {
|
|
43
|
-
c() {
|
|
44
|
-
for (let a = 0; a < o.length; a += 1)
|
|
45
|
-
o[a].c();
|
|
46
|
-
e = Ge();
|
|
47
|
-
},
|
|
48
|
-
m(a, g) {
|
|
49
|
-
for (let s = 0; s < o.length; s += 1)
|
|
50
|
-
o[s].m(a, g);
|
|
51
|
-
ae(a, e, g);
|
|
52
|
-
},
|
|
53
|
-
p(a, [g]) {
|
|
54
|
-
if (g & 3) {
|
|
55
|
-
n = a[0];
|
|
56
|
-
let s;
|
|
57
|
-
for (s = 0; s < n.length; s += 1) {
|
|
58
|
-
const f = _e(a, n, s);
|
|
59
|
-
o[s] ? o[s].p(f, g) : (o[s] = Pe(f), o[s].c(), o[s].m(e.parentNode, e));
|
|
60
|
-
}
|
|
61
|
-
for (; s < o.length; s += 1)
|
|
62
|
-
o[s].d(1);
|
|
63
|
-
o.length = n.length;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
i: te,
|
|
67
|
-
o: te,
|
|
68
|
-
d(a) {
|
|
69
|
-
Be(o, a), a && se(e);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function nt(t, e, n) {
|
|
74
|
-
let { origins: o } = e;
|
|
75
|
-
const a = (s) => {
|
|
76
|
-
Ae.update(() => `${s}-PanoSpatialTagPlugin-${Date.now()}`);
|
|
77
|
-
}, g = (s) => a(s.id);
|
|
78
|
-
return t.$$set = (s) => {
|
|
79
|
-
"origins" in s && n(0, o = s.origins);
|
|
80
|
-
}, [o, a, g];
|
|
81
|
-
}
|
|
82
|
-
class it extends ye {
|
|
83
|
-
constructor(e) {
|
|
84
|
-
super(), Ee(this, e, nt, tt, Me, { origins: 0 }, et);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function ot(t) {
|
|
88
|
-
ke(t, "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)}}");
|
|
89
|
-
}
|
|
90
|
-
function at(t) {
|
|
91
|
-
let e, n, o, a, g, s, f, z, L, p, M, P, k, R, i;
|
|
92
|
-
return {
|
|
93
|
-
c() {
|
|
94
|
-
e = C("div"), n = C("div"), o = ee(), a = C("div"), g = C("i"), s = ee(), f = C("i"), z = ee(), L = C("i"), p = ee(), M = C("div"), P = C("div"), I(n, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), E(n, "transform", "translate(" + t[7] / 2 * t[3] * 3 + "px, " + t[8] / 2 * (t[1] ? -1 : 1) * t[3] * 3 + "px) scale(" + 1 / t[3] + ")"), I(g, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), E(g, "width", t[4] + "rem"), I(f, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), I(L, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), I(a, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), I(P, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), I(M, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), E(M, "transform", "scale(" + t[3] * 3 + ")"), I(e, "id", k = "PanoSpatialTagPlugin__" + t[0]), E(e, "height", 20 * t[5] + "rem"), I(e, "class", "svelte-1i5h9zh"), D(e, "PanoSpatialTagPlugin__tag-x", !0), D(e, "PanoSpatialTagPlugin__tag-upside-down", t[1]), D(e, "PanoSpatialTagPlugin__tag-show", t[10]), D(e, "PanoSpatialTagPlugin__tag-hide", t[10] === !1 || t[6]);
|
|
95
|
-
},
|
|
96
|
-
m(d, _) {
|
|
97
|
-
ae(d, e, _), A(e, n), A(e, o), A(e, a), A(a, g), A(a, s), A(a, f), A(a, z), A(a, L), A(e, p), A(e, M), A(M, P), P.innerHTML = t[2], t[16](P), R || (i = Le(P, "click", t[11]), R = !0);
|
|
98
|
-
},
|
|
99
|
-
p(d, [_]) {
|
|
100
|
-
_ & 394 && E(n, "transform", "translate(" + d[7] / 2 * d[3] * 3 + "px, " + d[8] / 2 * (d[1] ? -1 : 1) * d[3] * 3 + "px) scale(" + 1 / d[3] + ")"), _ & 16 && E(g, "width", d[4] + "rem"), _ & 4 && (P.innerHTML = d[2]), _ & 8 && E(M, "transform", "scale(" + d[3] * 3 + ")"), _ & 1 && k !== (k = "PanoSpatialTagPlugin__" + d[0]) && I(e, "id", k), _ & 32 && E(e, "height", 20 * d[5] + "rem"), _ & 2 && D(e, "PanoSpatialTagPlugin__tag-upside-down", d[1]), _ & 1024 && D(e, "PanoSpatialTagPlugin__tag-show", d[10]), _ & 1088 && D(e, "PanoSpatialTagPlugin__tag-hide", d[10] === !1 || d[6]);
|
|
101
|
-
},
|
|
102
|
-
i: te,
|
|
103
|
-
o: te,
|
|
104
|
-
d(d) {
|
|
105
|
-
d && se(e), t[16](null), R = !1, i();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function st(t, e, n) {
|
|
110
|
-
let { id: o } = e, { upsideDown: a } = e, { content: g } = e, { contentZoom: s } = e, { lineWidthZoom: f } = e, { lineHeightZoom: z } = e, { destroying: L = !1 } = e, { folded: p } = e, { dispose: M } = e, { events: P } = e, { hooks: k } = e, R = 0, i = 0, d, _, j = setTimeout(
|
|
111
|
-
() => {
|
|
112
|
-
p || n(10, _ = !0), j = void 0;
|
|
113
|
-
},
|
|
114
|
-
100
|
|
115
|
-
);
|
|
116
|
-
const X = (c) => {
|
|
117
|
-
const V = Object.keys(P);
|
|
118
|
-
let Y = c.target;
|
|
119
|
-
for (; Y; ) {
|
|
120
|
-
const U = Y.getAttribute("class");
|
|
121
|
-
if (!U) {
|
|
122
|
-
Y = Y.parentNode;
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
if (U.includes("PanoSpatialTagPlugin__tag-content")) {
|
|
126
|
-
Y = null;
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
V.forEach((K) => {
|
|
130
|
-
U.includes(K) && P[K](o);
|
|
131
|
-
}), Y = Y.parentNode;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
Ke(() => {
|
|
135
|
-
k.emit("initTag", { id: o });
|
|
136
|
-
});
|
|
137
|
-
const J = Ae.subscribe((c) => {
|
|
138
|
-
if (c === null)
|
|
139
|
-
return;
|
|
140
|
-
const [V, Y] = c.split("-PanoSpatialTagPlugin-");
|
|
141
|
-
o === V && (k.emit("clickOrigin", { id: o, show: _ }), j || (n(10, _ = p), n(12, p = !p), j = setTimeout(
|
|
142
|
-
() => {
|
|
143
|
-
j = void 0;
|
|
144
|
-
},
|
|
145
|
-
1500
|
|
146
|
-
)));
|
|
147
|
-
});
|
|
148
|
-
Qe(() => {
|
|
149
|
-
n(7, R = d.offsetWidth), n(8, i = d.offsetHeight), !j && n(10, _ = !p);
|
|
150
|
-
}), $e(() => {
|
|
151
|
-
k.emit("destroyTag", { id: o }), J(), M();
|
|
152
|
-
});
|
|
153
|
-
function W(c) {
|
|
154
|
-
Xe[c ? "unshift" : "push"](() => {
|
|
155
|
-
d = c, n(9, d);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
return t.$$set = (c) => {
|
|
159
|
-
"id" in c && n(0, o = c.id), "upsideDown" in c && n(1, a = c.upsideDown), "content" in c && n(2, g = c.content), "contentZoom" in c && n(3, s = c.contentZoom), "lineWidthZoom" in c && n(4, f = c.lineWidthZoom), "lineHeightZoom" in c && n(5, z = c.lineHeightZoom), "destroying" in c && n(6, L = c.destroying), "folded" in c && n(12, p = c.folded), "dispose" in c && n(13, M = c.dispose), "events" in c && n(14, P = c.events), "hooks" in c && n(15, k = c.hooks);
|
|
160
|
-
}, [
|
|
161
|
-
o,
|
|
162
|
-
a,
|
|
163
|
-
g,
|
|
164
|
-
s,
|
|
165
|
-
f,
|
|
166
|
-
z,
|
|
167
|
-
L,
|
|
168
|
-
R,
|
|
169
|
-
i,
|
|
170
|
-
d,
|
|
171
|
-
_,
|
|
172
|
-
X,
|
|
173
|
-
p,
|
|
174
|
-
M,
|
|
175
|
-
P,
|
|
176
|
-
k,
|
|
177
|
-
W
|
|
178
|
-
];
|
|
179
|
-
}
|
|
180
|
-
class lt extends ye {
|
|
181
|
-
constructor(e) {
|
|
182
|
-
super(), Ee(
|
|
183
|
-
this,
|
|
184
|
-
e,
|
|
185
|
-
st,
|
|
186
|
-
at,
|
|
187
|
-
Me,
|
|
188
|
-
{
|
|
189
|
-
id: 0,
|
|
190
|
-
upsideDown: 1,
|
|
191
|
-
content: 2,
|
|
192
|
-
contentZoom: 3,
|
|
193
|
-
lineWidthZoom: 4,
|
|
194
|
-
lineHeightZoom: 5,
|
|
195
|
-
destroying: 6,
|
|
196
|
-
folded: 12,
|
|
197
|
-
dispose: 13,
|
|
198
|
-
events: 14,
|
|
199
|
-
hooks: 15
|
|
200
|
-
},
|
|
201
|
-
ot
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
const rt = {
|
|
206
|
-
position: "absolute",
|
|
207
|
-
top: "0px",
|
|
208
|
-
left: "0px",
|
|
209
|
-
width: "100%",
|
|
210
|
-
height: "100%",
|
|
211
|
-
pointerEvents: "none"
|
|
212
|
-
}, Te = "<", be = ">", Se = "%", we = "locals", ct = "(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)", gt = {
|
|
213
|
-
"&": "&",
|
|
214
|
-
"<": "<",
|
|
215
|
-
">": ">",
|
|
216
|
-
'"': """,
|
|
217
|
-
"'": "'"
|
|
218
|
-
}, v = {
|
|
219
|
-
EVAL: "eval",
|
|
220
|
-
ESCAPED: "escaped",
|
|
221
|
-
RAW: "raw",
|
|
222
|
-
COMMENT: "comment",
|
|
223
|
-
LITERAL: "literal"
|
|
224
|
-
};
|
|
225
|
-
function ve(t) {
|
|
226
|
-
return t.replace(/;(\s*$)/, "$1");
|
|
227
|
-
}
|
|
228
|
-
function dt(t, e) {
|
|
229
|
-
return new ht(t).compileFunction()(e);
|
|
230
|
-
}
|
|
231
|
-
class ht {
|
|
232
|
-
constructor(e) {
|
|
233
|
-
N(this, "templateText");
|
|
234
|
-
N(this, "mode", null);
|
|
235
|
-
N(this, "truncate", !1);
|
|
236
|
-
N(this, "currentLine", 1);
|
|
237
|
-
N(this, "source", "");
|
|
238
|
-
N(this, "regex", new RegExp(ct));
|
|
239
|
-
this.templateText = e;
|
|
240
|
-
}
|
|
241
|
-
compileFunction() {
|
|
242
|
-
let e;
|
|
243
|
-
const n = ` var __output = "";
|
|
244
|
-
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
245
|
-
with (` + we + ` || {}) {
|
|
246
|
-
`, o = ` }
|
|
247
|
-
return __output;
|
|
248
|
-
`, a = function(g) {
|
|
249
|
-
return g == null ? "" : String(g).replace(/[&<>'"]/g, function(s) {
|
|
250
|
-
return gt[s] || s;
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
|
-
return this._generateSource(), this.source = n + this.source + o, e = this.source, e = "escapeFn = escapeFn || " + a.toString() + `;
|
|
254
|
-
` + e, new Function(we + ", escapeFn", e);
|
|
255
|
-
}
|
|
256
|
-
_generateSource() {
|
|
257
|
-
this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
|
|
258
|
-
const e = this._parseTemplateText(), n = Se, o = Te, a = be;
|
|
259
|
-
e && e.length && e.forEach((g, s) => {
|
|
260
|
-
let f;
|
|
261
|
-
if (g.indexOf(o + n) === 0 && g.indexOf(o + n + n) !== 0 && (f = e[s + 2], !(f == n + a || f == "-" + n + a || f == "_" + n + a)))
|
|
262
|
-
throw new Error('Could not find matching close tag for "' + g + '".');
|
|
263
|
-
this._scanLine(g);
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
_parseTemplateText() {
|
|
267
|
-
let e = this.templateText;
|
|
268
|
-
const n = this.regex;
|
|
269
|
-
let o = n.exec(e);
|
|
270
|
-
const a = [];
|
|
271
|
-
let g;
|
|
272
|
-
for (; o; )
|
|
273
|
-
g = o.index, g !== 0 && (a.push(e.substring(0, g)), e = e.slice(g)), a.push(o[0]), e = e.slice(o[0].length), o = n.exec(e);
|
|
274
|
-
return e && a.push(e), a;
|
|
275
|
-
}
|
|
276
|
-
_addOutput(e) {
|
|
277
|
-
if (this.truncate && (e = e.replace(/^(?:\r\n|\r|\n)/, ""), this.truncate = !1), !e)
|
|
278
|
-
return e;
|
|
279
|
-
e = e.replace(/\\/g, "\\\\"), e = e.replace(/\n/g, "\\n"), e = e.replace(/\r/g, "\\r"), e = e.replace(/"/g, '\\"'), this.source += ' ; __append("' + e + `")
|
|
280
|
-
`;
|
|
281
|
-
}
|
|
282
|
-
_scanLine(e) {
|
|
283
|
-
const n = Se, o = Te, a = be;
|
|
284
|
-
switch (e.split(`
|
|
285
|
-
`).length - 1, e) {
|
|
286
|
-
case o + n:
|
|
287
|
-
case o + n + "_":
|
|
288
|
-
this.mode = v.EVAL;
|
|
289
|
-
break;
|
|
290
|
-
case o + n + "=":
|
|
291
|
-
this.mode = v.ESCAPED;
|
|
292
|
-
break;
|
|
293
|
-
case o + n + "-":
|
|
294
|
-
this.mode = v.RAW;
|
|
295
|
-
break;
|
|
296
|
-
case o + n + "#":
|
|
297
|
-
this.mode = v.COMMENT;
|
|
298
|
-
break;
|
|
299
|
-
case o + n + n:
|
|
300
|
-
this.mode = v.LITERAL, this.source += ' ; __append("' + e.replace(o + n + n, o + n) + `")
|
|
301
|
-
`;
|
|
302
|
-
break;
|
|
303
|
-
case n + n + a:
|
|
304
|
-
this.mode = v.LITERAL, this.source += ' ; __append("' + e.replace(n + n + a, n + a) + `")
|
|
305
|
-
`;
|
|
306
|
-
break;
|
|
307
|
-
case n + a:
|
|
308
|
-
case "-" + n + a:
|
|
309
|
-
case "_" + n + a:
|
|
310
|
-
this.mode == v.LITERAL && this._addOutput(e), this.mode = null, this.truncate = e.indexOf("-") === 0 || e.indexOf("_") === 0;
|
|
311
|
-
break;
|
|
312
|
-
default:
|
|
313
|
-
if (this.mode) {
|
|
314
|
-
switch (this.mode) {
|
|
315
|
-
case v.EVAL:
|
|
316
|
-
case v.ESCAPED:
|
|
317
|
-
case v.RAW:
|
|
318
|
-
e.lastIndexOf("//") > e.lastIndexOf(`
|
|
319
|
-
`) && (e += `
|
|
320
|
-
`);
|
|
321
|
-
}
|
|
322
|
-
switch (this.mode) {
|
|
323
|
-
case v.EVAL:
|
|
324
|
-
this.source += " ; " + e + `
|
|
325
|
-
`;
|
|
326
|
-
break;
|
|
327
|
-
case v.ESCAPED:
|
|
328
|
-
this.source += " ; __append(escapeFn(" + ve(e) + `))
|
|
329
|
-
`;
|
|
330
|
-
break;
|
|
331
|
-
case v.RAW:
|
|
332
|
-
this.source += " ; __append(" + ve(e) + `)
|
|
333
|
-
`;
|
|
334
|
-
break;
|
|
335
|
-
case v.COMMENT:
|
|
336
|
-
break;
|
|
337
|
-
case v.LITERAL:
|
|
338
|
-
this._addOutput(e);
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
} else
|
|
342
|
-
this._addOutput(e);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
const oe = 1e-3, ze = 0.01, ut = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", bt = (t, e) => {
|
|
347
|
-
var re, ce, ge, de, he, ue, fe, pe;
|
|
348
|
-
let n = e == null ? void 0 : e.container, o = 1.4;
|
|
349
|
-
const a = (re = e == null ? void 0 : e.wait) != null ? re : 200, g = (ce = e == null ? void 0 : e.maxNumberOnScreen) != null ? ce : 3, s = (ge = e == null ? void 0 : e.minRad) != null ? ge : Math.PI / 4, f = (de = e == null ? void 0 : e.nearTolerance) != null ? de : 100, z = (he = e == null ? void 0 : e.upsideHeight) != null ? he : 1.6, L = (ue = e == null ? void 0 : e.minDistance) != null ? ue : 1.2, p = (fe = e == null ? void 0 : e.maxDistance) != null ? fe : 3.5, M = qe(t), P = document.createElement("div");
|
|
350
|
-
P.classList.add("PanoSpatialTagPlugin"), Object.assign(P.style, rt);
|
|
351
|
-
const k = new Ve();
|
|
352
|
-
let R = new Image();
|
|
353
|
-
R.src = ut;
|
|
354
|
-
const i = {
|
|
355
|
-
points: [],
|
|
356
|
-
origins: [],
|
|
357
|
-
tags: [],
|
|
358
|
-
template: "",
|
|
359
|
-
events: {},
|
|
360
|
-
render: dt,
|
|
361
|
-
folded: !1,
|
|
362
|
-
enabled: !0,
|
|
363
|
-
forbidden: !0
|
|
364
|
-
}, d = new it({
|
|
365
|
-
target: P,
|
|
366
|
-
props: { origins: i.origins }
|
|
367
|
-
}), _ = (l, u) => {
|
|
368
|
-
W(), u && c();
|
|
369
|
-
}, j = () => {
|
|
370
|
-
i.forbidden && (i.forbidden = !1, c());
|
|
371
|
-
}, X = (l, u) => {
|
|
372
|
-
if (i.tags.length === 0)
|
|
373
|
-
return;
|
|
374
|
-
const w = u.longitude - t.state.longitude, r = t.camera.clone();
|
|
375
|
-
r.position.copy(u.offset), r.rotateOnWorldAxis(new S.Vector3(0, 1, 0), w), r.updateProjectionMatrix(), r.updateMatrixWorld(!0);
|
|
376
|
-
const F = new S.Frustum(), q = new S.Matrix4();
|
|
377
|
-
q.multiplyMatrices(
|
|
378
|
-
r.projectionMatrix,
|
|
379
|
-
r.matrixWorldInverse
|
|
380
|
-
), F.setFromProjectionMatrix(q), i.tags.forEach((h) => {
|
|
381
|
-
const Q = r.position.clone().setY(o).distanceTo(h.position);
|
|
382
|
-
if (Q < L || Q > p || !F.containsPoint(h.position))
|
|
383
|
-
return h.destroying = !0;
|
|
384
|
-
const G = h.position.clone().sub(r.position).setY(0);
|
|
385
|
-
if (G.angleTo(h.normal) > Math.PI / 2 - s && G.angleTo(h.normal) < Math.PI / 2 + s)
|
|
386
|
-
return h.destroying = !0;
|
|
387
|
-
}), i.tags.forEach((h) => {
|
|
388
|
-
h.destroying ? h.app.$set({
|
|
389
|
-
contentZoom: 0.1 + r.position.distanceTo(h.position) / p,
|
|
390
|
-
lineWidthZoom: 0.38 * (0.01 + r.position.distanceTo(h.position) / p),
|
|
391
|
-
destroying: h.destroying
|
|
392
|
-
}) : h.app.$set({
|
|
393
|
-
lineWidthZoom: 0.38 * (0.01 + r.position.distanceTo(h.position) / p),
|
|
394
|
-
lineHeightZoom: 0.4 + (r.position.distanceTo(h.position) - L) / p * 0.6,
|
|
395
|
-
contentZoom: 0.1 + r.position.distanceTo(h.position) / p
|
|
396
|
-
});
|
|
397
|
-
}), setTimeout(() => {
|
|
398
|
-
i.tags.forEach((h) => {
|
|
399
|
-
h.destroying && (h.app.$destroy(), h = null);
|
|
400
|
-
}), i.tags = i.tags.filter((h) => !h.destroying), W();
|
|
401
|
-
}, 1900);
|
|
402
|
-
}, J = (l) => {
|
|
403
|
-
l !== Ue.Mode.Panorama && !i.forbidden && (d.$set({ origins: [] }), i.tags.forEach((u) => {
|
|
404
|
-
u.app.$destroy(), u = null;
|
|
405
|
-
}), i.origins = [], i.tags = [], i.forbidden = !0);
|
|
406
|
-
}, W = () => {
|
|
407
|
-
if (i.forbidden || !i.enabled)
|
|
408
|
-
return;
|
|
409
|
-
const l = t.camera, u = l.getWorldDirection(new S.Vector3());
|
|
410
|
-
i.origins = i.tags.map((w) => {
|
|
411
|
-
const r = w.position.clone().project(l), F = w.position.clone().sub(l.position).setY(0).angleTo(u.setY(0)) < Math.PI / 2;
|
|
412
|
-
return {
|
|
413
|
-
id: w.id,
|
|
414
|
-
front: F,
|
|
415
|
-
left: (r.x + 1) / 2 * 100,
|
|
416
|
-
top: (-r.y + 1) / 2 * 100,
|
|
417
|
-
destroying: w.destroying
|
|
418
|
-
};
|
|
419
|
-
}), d.$set({ origins: i.origins });
|
|
420
|
-
}, c = () => {
|
|
421
|
-
i.forbidden || !i.enabled || (i.timeoutId && clearTimeout(i.timeoutId), i.timeoutId = setTimeout(() => {
|
|
422
|
-
i.timeoutId = void 0;
|
|
423
|
-
const l = V();
|
|
424
|
-
l.length && (i.tags = i.tags.concat(l), W());
|
|
425
|
-
}, a));
|
|
426
|
-
}, V = () => {
|
|
427
|
-
const { clientWidth: l, clientHeight: u } = t.getElement(), w = [], r = t.camera, F = new S.Frustum(), q = new S.Matrix4(), h = r.getWorldDirection(new S.Vector3());
|
|
428
|
-
q.multiplyMatrices(
|
|
429
|
-
r.projectionMatrix,
|
|
430
|
-
r.matrixWorldInverse
|
|
431
|
-
), F.setFromProjectionMatrix(q);
|
|
432
|
-
const Q = i.tags.filter(
|
|
433
|
-
(T) => F.containsPoint(T.position) && !T.destroying
|
|
434
|
-
).length, G = i.points.reduce((T, y) => {
|
|
435
|
-
if (i.tags.find((b) => y.id === b.id && !b.destroying))
|
|
436
|
-
return T;
|
|
437
|
-
const O = r.position.clone().setY(o).distanceTo(y.position);
|
|
438
|
-
if (O < L || O > p || !F.containsPoint(y.position))
|
|
439
|
-
return T;
|
|
440
|
-
const B = y.position.clone().sub(r.position).setY(0);
|
|
441
|
-
if (B.angleTo(y.normal) > Math.PI / 2 - s && B.angleTo(y.normal) < Math.PI / 2 + s)
|
|
442
|
-
return T;
|
|
443
|
-
const H = y.position.clone().project(r);
|
|
444
|
-
if (!i.tags.every((b) => {
|
|
445
|
-
if (b.position.clone().sub(r.position).setY(0).angleTo(h.setY(0)) > Math.PI / 2)
|
|
446
|
-
return !0;
|
|
447
|
-
const x = b.position.clone().project(r);
|
|
448
|
-
return Math.sqrt(
|
|
449
|
-
Math.pow((H.x - x.x) / 2 * l, 2) + Math.pow((H.y - x.y) / 2 * u, 2)
|
|
450
|
-
) > f;
|
|
451
|
-
}))
|
|
452
|
-
return T;
|
|
453
|
-
const Z = {
|
|
454
|
-
id: y.id,
|
|
455
|
-
position: y.position,
|
|
456
|
-
normal: y.normal,
|
|
457
|
-
replacement: y.replacement,
|
|
458
|
-
weight: y.weight,
|
|
459
|
-
distance: O
|
|
460
|
-
};
|
|
461
|
-
let m;
|
|
462
|
-
for (let b = 0, x = T.length; b < x; b++) {
|
|
463
|
-
const $ = T[b];
|
|
464
|
-
if (Z.weight > $.weight) {
|
|
465
|
-
m = b;
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
if (Z.distance < $.distance) {
|
|
469
|
-
m = b;
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
return m !== void 0 ? T.splice(m, 0, Z) : T.push(Z), T;
|
|
474
|
-
}, []);
|
|
475
|
-
for (let T = 0, y = G.length; T < y && !(Q + w.length >= g); T++) {
|
|
476
|
-
const O = G[T];
|
|
477
|
-
if (w.find((m) => O.id === m.id))
|
|
478
|
-
continue;
|
|
479
|
-
const B = O.position.clone().project(r);
|
|
480
|
-
if (!i.tags.concat(w).every((m) => {
|
|
481
|
-
if (m.position.clone().sub(r.position).setY(0).angleTo(h.setY(0)) > Math.PI / 2)
|
|
482
|
-
return !0;
|
|
483
|
-
const b = m.position.clone().project(r);
|
|
484
|
-
return Math.sqrt(
|
|
485
|
-
Math.pow((B.x - b.x) / 2 * l, 2) + Math.pow((B.y - b.y) / 2 * u, 2)
|
|
486
|
-
) > f;
|
|
487
|
-
}))
|
|
488
|
-
continue;
|
|
489
|
-
const H = new S.Raycaster(
|
|
490
|
-
r.position.clone().setY(o),
|
|
491
|
-
O.position.clone().sub(r.position.clone().setY(o)).normalize(),
|
|
492
|
-
0,
|
|
493
|
-
O.distance + ze
|
|
494
|
-
), [Z] = i.intersectObjects ? H.intersectObjects(i.intersectObjects, !0) : t.model.bvhs.loaded ? t.model.intersectRaycaster(H) : H.intersectObjects(t.model.children, !0);
|
|
495
|
-
if (!!Z && O.distance - Z.distance < ze) {
|
|
496
|
-
const { position: m, normal: b, id: x, replacement: $ } = O, Ce = new S.Plane().setFromNormalAndCoplanarPoint(b, m), me = m.clone().sub(r.position).cross(new S.Vector3(0, 1, 0)).setLength(oe), je = [
|
|
497
|
-
m.clone(),
|
|
498
|
-
m.clone().add(me),
|
|
499
|
-
m.clone().add(new S.Vector3(0, oe, 0)).add(me),
|
|
500
|
-
m.clone().add(new S.Vector3(0, oe, 0))
|
|
501
|
-
].map((xe) => Ce.projectPoint(xe, new S.Vector3())), { container: Fe, dispose: We } = M.create3DDomContainer(je) || {}, Ze = new lt({
|
|
502
|
-
target: Fe,
|
|
503
|
-
props: {
|
|
504
|
-
id: x,
|
|
505
|
-
content: i.render(i.template, $),
|
|
506
|
-
lineWidthZoom: 0.38 * (0.01 + r.position.distanceTo(m) / p),
|
|
507
|
-
lineHeightZoom: 0.4 + (r.position.distanceTo(m) - L) / p * 0.6,
|
|
508
|
-
contentZoom: 0.1 + r.position.distanceTo(m) / p,
|
|
509
|
-
upsideDown: m.y > z,
|
|
510
|
-
folded: i.folded,
|
|
511
|
-
events: i.events,
|
|
512
|
-
hooks: k,
|
|
513
|
-
dispose: We
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
w.push({
|
|
517
|
-
position: m,
|
|
518
|
-
normal: b,
|
|
519
|
-
id: x,
|
|
520
|
-
app: Ze
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return w;
|
|
525
|
-
}, Y = (l) => {
|
|
526
|
-
i.points = l.points.map((u) => {
|
|
527
|
-
var w, r;
|
|
528
|
-
return {
|
|
529
|
-
id: u.id,
|
|
530
|
-
position: new S.Vector3().fromArray(u.position),
|
|
531
|
-
normal: new S.Vector3().fromArray(u.normal),
|
|
532
|
-
replacement: (w = u.replacement) != null ? w : {},
|
|
533
|
-
weight: (r = u.weight) != null ? r : -1
|
|
534
|
-
};
|
|
535
|
-
}), l.render && (i.render = l.render), l.template && (i.template = l.template), l.events && (i.events = l.events), l.enabled === !1 && (i.enabled = l.enabled), l.folded === !0 && (i.folded = l.folded);
|
|
536
|
-
}, U = (l) => {
|
|
537
|
-
i.intersectObjects = l, c();
|
|
538
|
-
}, K = () => {
|
|
539
|
-
i.enabled = !0, c();
|
|
540
|
-
}, Ie = () => {
|
|
541
|
-
i.enabled = !1, d.$set({ origins: [] }), i.tags.forEach((l) => {
|
|
542
|
-
l.app.$destroy(), l = null;
|
|
543
|
-
}), i.origins = [], i.tags = [];
|
|
544
|
-
}, Ye = () => {
|
|
545
|
-
i.folded = !1, i.tags.forEach((l) => {
|
|
546
|
-
l.app.$set({ folded: i.folded });
|
|
547
|
-
});
|
|
548
|
-
}, Oe = () => {
|
|
549
|
-
i.folded = !0, i.tags.forEach((l) => {
|
|
550
|
-
l.app.$set({ folded: i.folded });
|
|
551
|
-
});
|
|
552
|
-
}, De = (l) => {
|
|
553
|
-
i.tags.forEach((u) => {
|
|
554
|
-
u.id === l && u.app.$set({ folded: !1 });
|
|
555
|
-
});
|
|
556
|
-
}, Re = (l) => {
|
|
557
|
-
i.tags.forEach((u) => {
|
|
558
|
-
u.id === l && u.app.$set({ folded: !0 });
|
|
559
|
-
});
|
|
560
|
-
}, le = () => {
|
|
561
|
-
t.once("renderFrame", W);
|
|
562
|
-
}, ne = () => {
|
|
563
|
-
n || (n = t.getElement().parentElement), n && n.appendChild(P), i.forbidden = !1, o = t.model.bounding.getCenter(new S.Vector3()).y, c(), t.on("panoWillArrive", X), t.on("panoArrived", j), t.on("modeChange", J), t.on("cameraUpdate", _);
|
|
564
|
-
}, ie = () => {
|
|
565
|
-
R = null, M.disposeAll(), d.$destroy(), i.tags.forEach((l) => {
|
|
566
|
-
l.app.$destroy(), l = null;
|
|
567
|
-
}), i.origins = [], i.tags = [], t.off("modelLoaded", ne), t.off("renderFrame", W), t.off("panoWillArrive", X), t.off("panoArrived", j), t.off("modeChange", J), t.off("cameraUpdate", _), t.off("dispose", ie), window.removeEventListener("resize", le, !1);
|
|
568
|
-
};
|
|
569
|
-
return window.addEventListener("resize", le, !1), (pe = t == null ? void 0 : t.model) != null && pe.loaded ? ne() : t.once("modelLoaded", ne), t.on("dispose", ie), {
|
|
570
|
-
load: Y,
|
|
571
|
-
setIntersectObjects: U,
|
|
572
|
-
unfoldAll: Ye,
|
|
573
|
-
foldAll: Oe,
|
|
574
|
-
unfold: De,
|
|
575
|
-
fold: Re,
|
|
576
|
-
enable: K,
|
|
577
|
-
disable: Ie,
|
|
578
|
-
hooks: k,
|
|
579
|
-
dispose: ie
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
export {
|
|
583
|
-
bt as PanoSpatialTagPlugin
|
|
584
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
var F = (t, e, r) => new Promise((s, n) => {
|
|
2
|
-
var u = (i) => {
|
|
3
|
-
try {
|
|
4
|
-
d(r.next(i));
|
|
5
|
-
} catch (x) {
|
|
6
|
-
n(x);
|
|
7
|
-
}
|
|
8
|
-
}, a = (i) => {
|
|
9
|
-
try {
|
|
10
|
-
d(r.throw(i));
|
|
11
|
-
} catch (x) {
|
|
12
|
-
n(x);
|
|
13
|
-
}
|
|
14
|
-
}, d = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(u, a);
|
|
15
|
-
d((r = r.apply(t, e)).next());
|
|
16
|
-
});
|
|
17
|
-
import * as f from "three";
|
|
18
|
-
import { FBXLoader as U } from "three/examples/jsm/loaders/FBXLoader";
|
|
19
|
-
import { transfromToMeshBasicMaterial as C } from "./transfromToMeshBasicMaterial.849ee069.es.js";
|
|
20
|
-
const y = (t, e, r) => {
|
|
21
|
-
const s = new f.Matrix4(), n = new f.Euler(t, e, r, "YXZ");
|
|
22
|
-
return s.makeRotationFromEuler(n), s;
|
|
23
|
-
}, L = (t, {
|
|
24
|
-
scale: e,
|
|
25
|
-
rotation: r,
|
|
26
|
-
position: s
|
|
27
|
-
}) => {
|
|
28
|
-
if (e && t.scale.set(e, e, e), r) {
|
|
29
|
-
const [n, u, a] = r;
|
|
30
|
-
n && t.applyMatrix4(y(n, 0, 0)), u && t.applyMatrix4(y(0, u, 0)), a && t.applyMatrix4(y(0, 0, a));
|
|
31
|
-
}
|
|
32
|
-
return s && t.position.set(s.x, s.y, s.z), t;
|
|
33
|
-
}, T = (t, e) => {
|
|
34
|
-
var p;
|
|
35
|
-
const r = e.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", s = (p = e.north_rad) != null ? p : void 0, n = {}, u = (o) => F(void 0, null, function* () {
|
|
36
|
-
var j;
|
|
37
|
-
const c = (o == null ? void 0 : o.fbx_url) || r, l = (j = o == null ? void 0 : o.north_rad) != null ? j : s;
|
|
38
|
-
if (typeof l != "number")
|
|
39
|
-
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
40
|
-
const b = t.model.bounding, z = b.max.x - b.min.x, g = b.max.z - b.min.z, B = Math.max(z, g), m = yield new U().loadAsync(c);
|
|
41
|
-
C(m, {
|
|
42
|
-
transparent: !0,
|
|
43
|
-
side: f.DoubleSide,
|
|
44
|
-
blending: f.AdditiveBlending
|
|
45
|
-
});
|
|
46
|
-
const R = [0, l - Math.PI / 2, 0], {
|
|
47
|
-
model: {
|
|
48
|
-
bounding: {
|
|
49
|
-
max: { x: h, z: w },
|
|
50
|
-
min: { x: E, y: M, z: P }
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
} = t;
|
|
54
|
-
n.yBase = M;
|
|
55
|
-
const A = { x: (h + E) / 2, y: M - 1.6, z: (w + P) / 2 }, D = 45e-4 * B;
|
|
56
|
-
return L(m, { position: A, rotation: R, scale: D }), n.object = m, !0;
|
|
57
|
-
}), a = ({ latitude: o }) => {
|
|
58
|
-
if (!n.object)
|
|
59
|
-
return;
|
|
60
|
-
const c = d(o);
|
|
61
|
-
c && (n.object.position.y = c);
|
|
62
|
-
}, d = (o) => {
|
|
63
|
-
if (n.yBase === void 0)
|
|
64
|
-
return;
|
|
65
|
-
const c = 0.6;
|
|
66
|
-
if (o >= Math.PI / 4)
|
|
67
|
-
return n.yBase - (c + 1.6);
|
|
68
|
-
const l = o * (4 / Math.PI);
|
|
69
|
-
return n.yBase - (c * l + 1.6);
|
|
70
|
-
};
|
|
71
|
-
return { load: u, disable: () => {
|
|
72
|
-
!n.object || (t.scene.remove(n.object), t.needsRender = !0, t.off("cameraDirectionUpdate", a));
|
|
73
|
-
}, enable: () => {
|
|
74
|
-
if (!n.object)
|
|
75
|
-
return;
|
|
76
|
-
const o = d(t.getPose().latitude);
|
|
77
|
-
o && (n.object.position.y = o), t.scene.add(n.object), t.needsRender = !0, t.on("cameraDirectionUpdate", a);
|
|
78
|
-
} };
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
T as ModelChassisCompassPlugin
|
|
82
|
-
};
|