@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,334 +0,0 @@
|
|
|
1
|
-
var ce = Object.defineProperty, de = Object.defineProperties;
|
|
2
|
-
var me = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var U = Object.getOwnPropertySymbols;
|
|
4
|
-
var ue = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var V = (n, t, e) => t in n ? ce(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, M = (n, t) => {
|
|
6
|
-
for (var e in t || (t = {}))
|
|
7
|
-
ue.call(t, e) && V(n, e, t[e]);
|
|
8
|
-
if (U)
|
|
9
|
-
for (var e of U(t))
|
|
10
|
-
be.call(t, e) && V(n, e, t[e]);
|
|
11
|
-
return n;
|
|
12
|
-
}, O = (n, t) => de(n, me(t));
|
|
13
|
-
import { Subscribe as fe, Five as W } from "@realsee/five";
|
|
14
|
-
import { SvelteComponent as N, init as B, safe_not_equal as J, append_styles as K, element as z, text as pe, space as he, attr as w, set_style as y, null_to_empty as D, insert as x, append as I, listen as ge, set_data as _e, noop as j, detach as R, add_render_callback as ye, add_resize_listener as Le, group_outros as ve, update_keyed_each as ke, outro_and_destroy_block as we, check_outros as Ee, transition_in as Q, transition_out as Z, empty as Me, create_component as Ie, mount_component as ze, destroy_component as Ce } from "svelte/internal";
|
|
15
|
-
import { beforeUpdate as Oe, onMount as Fe, onDestroy as Pe } from "svelte";
|
|
16
|
-
import * as xe from "three";
|
|
17
|
-
import X from "classnames";
|
|
18
|
-
import { debounce as Re } from "../chunks/es/debounce.ef83f417.es.js";
|
|
19
|
-
var E = /* @__PURE__ */ ((n) => (n.SMALL = "small", n.MIDLLE = "middle", n.LARGE = "large", n.EXTRA_LARGE = "x-large", n))(E || {});
|
|
20
|
-
function Ae(n) {
|
|
21
|
-
K(n, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
|
|
22
|
-
}to{opacity:1
|
|
23
|
-
}}`);
|
|
24
|
-
}
|
|
25
|
-
function Se(n) {
|
|
26
|
-
let t, e, s, m = (n[0].name.length > 6 ? `${n[0].name.slice(0, 6)}...` : n[0].name) + "", l, a, d, o, r, f;
|
|
27
|
-
return {
|
|
28
|
-
c() {
|
|
29
|
-
t = z("div"), e = z("div"), s = z("span"), l = pe(m), a = he(), d = z("div"), w(s, "class", "item-label-item__text svelte-1ir3cyd"), w(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), y(e, "top", `-${n[0].strokeLength + 26}px`), w(d, "class", "item-label-item__bar svelte-1ir3cyd"), y(d, "height", `${n[0].strokeLength}px`), w(t, "class", o = D(X("item-label-item", { visible: n[0].visible })) + " svelte-1ir3cyd"), y(t, "z-index", n[0].zIndex, !1), y(t, "transform", n[0].transform, !1);
|
|
30
|
-
},
|
|
31
|
-
m(u, p) {
|
|
32
|
-
x(u, t, p), I(t, e), I(e, s), I(s, l), I(t, a), I(t, d), r || (f = ge(s, "click", n[1]), r = !0);
|
|
33
|
-
},
|
|
34
|
-
p(u, [p]) {
|
|
35
|
-
p & 1 && m !== (m = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") && _e(l, m), p & 1 && y(e, "top", `-${u[0].strokeLength + 26}px`), p & 1 && y(d, "height", `${u[0].strokeLength}px`), p & 1 && o !== (o = D(X("item-label-item", { visible: u[0].visible })) + " svelte-1ir3cyd") && w(t, "class", o), p & 1 && y(t, "z-index", u[0].zIndex, !1), p & 1 && y(t, "transform", u[0].transform, !1);
|
|
36
|
-
},
|
|
37
|
-
i: j,
|
|
38
|
-
o: j,
|
|
39
|
-
d(u) {
|
|
40
|
-
u && R(t), r = !1, f();
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function Te(n, t, e) {
|
|
45
|
-
let { itemLabel: s } = t, { hooks: m } = t;
|
|
46
|
-
function l() {
|
|
47
|
-
console.log("__onclick___: ", s), m.emit("onLabelClick", s);
|
|
48
|
-
}
|
|
49
|
-
return n.$$set = (a) => {
|
|
50
|
-
"itemLabel" in a && e(0, s = a.itemLabel), "hooks" in a && e(2, m = a.hooks);
|
|
51
|
-
}, [s, l, m];
|
|
52
|
-
}
|
|
53
|
-
class Ue extends N {
|
|
54
|
-
constructor(t) {
|
|
55
|
-
super(), B(this, t, Te, Se, J, { itemLabel: 0, hooks: 2 }, Ae);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function Ve(n) {
|
|
59
|
-
K(n, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
60
|
-
}
|
|
61
|
-
function q(n, t, e) {
|
|
62
|
-
const s = n.slice();
|
|
63
|
-
return s[26] = t[e], s;
|
|
64
|
-
}
|
|
65
|
-
function G(n, t) {
|
|
66
|
-
let e, s, m;
|
|
67
|
-
return s = new Ue({
|
|
68
|
-
props: {
|
|
69
|
-
itemLabel: t[26],
|
|
70
|
-
hooks: t[0]
|
|
71
|
-
}
|
|
72
|
-
}), {
|
|
73
|
-
key: n,
|
|
74
|
-
first: null,
|
|
75
|
-
c() {
|
|
76
|
-
e = Me(), Ie(s.$$.fragment), this.first = e;
|
|
77
|
-
},
|
|
78
|
-
m(l, a) {
|
|
79
|
-
x(l, e, a), ze(s, l, a), m = !0;
|
|
80
|
-
},
|
|
81
|
-
p(l, a) {
|
|
82
|
-
t = l;
|
|
83
|
-
const d = {};
|
|
84
|
-
a & 2 && (d.itemLabel = t[26]), a & 1 && (d.hooks = t[0]), s.$set(d);
|
|
85
|
-
},
|
|
86
|
-
i(l) {
|
|
87
|
-
m || (Q(s.$$.fragment, l), m = !0);
|
|
88
|
-
},
|
|
89
|
-
o(l) {
|
|
90
|
-
Z(s.$$.fragment, l), m = !1;
|
|
91
|
-
},
|
|
92
|
-
d(l) {
|
|
93
|
-
l && R(e), Ce(s, l);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function We(n) {
|
|
98
|
-
let t, e = [], s = /* @__PURE__ */ new Map(), m, l, a = n[1];
|
|
99
|
-
const d = (o) => o[26].id;
|
|
100
|
-
for (let o = 0; o < a.length; o += 1) {
|
|
101
|
-
let r = q(n, a, o), f = d(r);
|
|
102
|
-
s.set(f, e[o] = G(f, r));
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
c() {
|
|
106
|
-
t = z("div");
|
|
107
|
-
for (let o = 0; o < e.length; o += 1)
|
|
108
|
-
e[o].c();
|
|
109
|
-
w(t, "class", "item-labels-container svelte-gk8s47"), ye(() => n[9].call(t)), y(t, "opacity", n[4] ? 1 : 0, !1);
|
|
110
|
-
},
|
|
111
|
-
m(o, r) {
|
|
112
|
-
x(o, t, r);
|
|
113
|
-
for (let f = 0; f < e.length; f += 1)
|
|
114
|
-
e[f].m(t, null);
|
|
115
|
-
m = Le(t, n[9].bind(t)), l = !0;
|
|
116
|
-
},
|
|
117
|
-
p(o, [r]) {
|
|
118
|
-
r & 3 && (a = o[1], ve(), e = ke(e, r, d, 1, o, a, s, t, we, G, null, q), Ee()), r & 16 && y(t, "opacity", o[4] ? 1 : 0, !1);
|
|
119
|
-
},
|
|
120
|
-
i(o) {
|
|
121
|
-
if (!l) {
|
|
122
|
-
for (let r = 0; r < a.length; r += 1)
|
|
123
|
-
Q(e[r]);
|
|
124
|
-
l = !0;
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
o(o) {
|
|
128
|
-
for (let r = 0; r < e.length; r += 1)
|
|
129
|
-
Z(e[r]);
|
|
130
|
-
l = !1;
|
|
131
|
-
},
|
|
132
|
-
d(o) {
|
|
133
|
-
o && R(t);
|
|
134
|
-
for (let r = 0; r < e.length; r += 1)
|
|
135
|
-
e[r].d();
|
|
136
|
-
m();
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
let H = 26, De = 11;
|
|
141
|
-
function je(n, t, e) {
|
|
142
|
-
const { Raycaster: s, Vector3: m } = xe;
|
|
143
|
-
let { five: l } = t, { modelOcclusionEnable: a } = t, { itemLabels: d } = t, { hooks: o } = t, { displayStrategyType: r } = t, f = null, u = null, p, v, h = [], F = !0;
|
|
144
|
-
const Y = (i, _) => {
|
|
145
|
-
const L = new s(), b = i.camera.position.clone(), c = new m().fromArray(_.modelPosition), g = c.distanceTo(b);
|
|
146
|
-
L.set(b.clone(), c.clone().sub(b).normalize());
|
|
147
|
-
const [k] = i.model.intersectRaycaster(L);
|
|
148
|
-
return !(k && k.distance + 1 < g);
|
|
149
|
-
}, $ = (i, _) => {
|
|
150
|
-
const L = new m(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]), b = i.project2d(L), c = b == null ? void 0 : b.x, g = b == null ? void 0 : b.y;
|
|
151
|
-
return [c, g];
|
|
152
|
-
}, ee = (i) => `translate(${i[0]}px, ${i[1]}px)`, te = (i, _) => h.length === 0 ? !1 : !!h.find((b) => i[0] >= b[0] - _ && i[0] <= b[0] + _ || i[1] >= b[1] - H && i[1] <= b[1] + H);
|
|
153
|
-
function ne(i, _) {
|
|
154
|
-
switch (_) {
|
|
155
|
-
case E.SMALL:
|
|
156
|
-
return Math.ceil(-27.78 * i + 85);
|
|
157
|
-
case E.MIDLLE:
|
|
158
|
-
return Math.ceil(-38.9 * i + 130);
|
|
159
|
-
case E.LARGE:
|
|
160
|
-
return Math.ceil(-44.44 * i + 140);
|
|
161
|
-
case E.EXTRA_LARGE:
|
|
162
|
-
return Math.ceil(-92.59 * i + 300);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
const oe = (i, _) => {
|
|
166
|
-
const L = _.map((c) => {
|
|
167
|
-
const g = $(i, c), k = c.name.length * De, T = ne(c.modelPosition[1], r), P = (a ? Y(i, c) : !0) && !te([g[0], g[1] + T], k);
|
|
168
|
-
if (!P)
|
|
169
|
-
return O(M({}, c), { visible: P });
|
|
170
|
-
h.push(g);
|
|
171
|
-
const ae = ee(g);
|
|
172
|
-
return O(M({}, c), {
|
|
173
|
-
visible: P,
|
|
174
|
-
transform: ae,
|
|
175
|
-
strokeLength: T
|
|
176
|
-
});
|
|
177
|
-
}), b = L.filter(({ visible: c }) => c).map((c) => ({
|
|
178
|
-
itemLabelItem: c,
|
|
179
|
-
distance: new m(c.modelPosition[0], c.modelPosition[1], c.modelPosition[2]).clone().distanceTo(i.camera.position)
|
|
180
|
-
})).sort((c, g) => c.distance - g.distance);
|
|
181
|
-
return L.map((c) => {
|
|
182
|
-
const g = b.findIndex((k) => k.itemLabelItem.id === c.id);
|
|
183
|
-
return g !== void 0 ? O(M({}, c), { zIndex: g * 10 }) : c;
|
|
184
|
-
});
|
|
185
|
-
}, C = () => {
|
|
186
|
-
h = [], e(1, u = oe(l, u));
|
|
187
|
-
};
|
|
188
|
-
Oe(() => {
|
|
189
|
-
re();
|
|
190
|
-
});
|
|
191
|
-
const A = () => {
|
|
192
|
-
e(4, F = !1), ie();
|
|
193
|
-
};
|
|
194
|
-
Fe(() => {
|
|
195
|
-
e(1, u = d), f = d, C(), le(), l.on("cameraUpdate", A);
|
|
196
|
-
});
|
|
197
|
-
const ie = Re(
|
|
198
|
-
() => {
|
|
199
|
-
e(4, F = !0), C();
|
|
200
|
-
},
|
|
201
|
-
300
|
|
202
|
-
), le = () => {
|
|
203
|
-
window.addEventListener("resize", S, !1);
|
|
204
|
-
}, re = () => {
|
|
205
|
-
f !== d && (e(1, u = d), f = d, C());
|
|
206
|
-
}, S = () => {
|
|
207
|
-
l.once("renderFrame", C);
|
|
208
|
-
};
|
|
209
|
-
Pe(() => {
|
|
210
|
-
l.off("cameraUpdate", A), window.removeEventListener("resize", S, !1);
|
|
211
|
-
});
|
|
212
|
-
function se() {
|
|
213
|
-
p = this.clientWidth, v = this.clientHeight, e(2, p), e(3, v);
|
|
214
|
-
}
|
|
215
|
-
return n.$$set = (i) => {
|
|
216
|
-
"five" in i && e(5, l = i.five), "modelOcclusionEnable" in i && e(6, a = i.modelOcclusionEnable), "itemLabels" in i && e(7, d = i.itemLabels), "hooks" in i && e(0, o = i.hooks), "displayStrategyType" in i && e(8, r = i.displayStrategyType);
|
|
217
|
-
}, [
|
|
218
|
-
o,
|
|
219
|
-
u,
|
|
220
|
-
p,
|
|
221
|
-
v,
|
|
222
|
-
F,
|
|
223
|
-
l,
|
|
224
|
-
a,
|
|
225
|
-
d,
|
|
226
|
-
r,
|
|
227
|
-
se
|
|
228
|
-
];
|
|
229
|
-
}
|
|
230
|
-
class Xe extends N {
|
|
231
|
-
constructor(t) {
|
|
232
|
-
super(), B(
|
|
233
|
-
this,
|
|
234
|
-
t,
|
|
235
|
-
je,
|
|
236
|
-
We,
|
|
237
|
-
J,
|
|
238
|
-
{
|
|
239
|
-
five: 5,
|
|
240
|
-
modelOcclusionEnable: 6,
|
|
241
|
-
itemLabels: 7,
|
|
242
|
-
hooks: 0,
|
|
243
|
-
displayStrategyType: 8
|
|
244
|
-
},
|
|
245
|
-
Ve
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function qe(n) {
|
|
250
|
-
return n.model_item_labels.map((t) => M({
|
|
251
|
-
modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
|
|
252
|
-
}, t));
|
|
253
|
-
}
|
|
254
|
-
const Ze = (n, t) => {
|
|
255
|
-
var p, v;
|
|
256
|
-
const e = {
|
|
257
|
-
container: document.createElement("div"),
|
|
258
|
-
data: null,
|
|
259
|
-
enabled: !0,
|
|
260
|
-
fiveModeEnabled: void 0,
|
|
261
|
-
itemLabels: [],
|
|
262
|
-
wrapper: null,
|
|
263
|
-
app: void 0,
|
|
264
|
-
hooks: new fe(),
|
|
265
|
-
modelOcclusionEnable: (p = t == null ? void 0 : t.modelOcclusionEnable) != null ? p : !0,
|
|
266
|
-
displayStrategyType: (v = t == null ? void 0 : t.displayStrategyType) != null ? v : E.SMALL
|
|
267
|
-
};
|
|
268
|
-
e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
|
|
269
|
-
position: absolute;
|
|
270
|
-
left: 0;
|
|
271
|
-
top: 0;
|
|
272
|
-
width: 100%;
|
|
273
|
-
height: 100%;
|
|
274
|
-
z-index: 5;
|
|
275
|
-
`, e.container.style.pointerEvents = "none";
|
|
276
|
-
const s = (h) => (e.wrapper = h, h.appendChild(e.container), o(), !0), m = (h) => {
|
|
277
|
-
e.itemLabels = qe(h), o();
|
|
278
|
-
}, l = () => (e.enabled || (e.enabled = !0, o()), !0), a = () => (e.enabled && (e.enabled = !1, o()), !0), d = () => {
|
|
279
|
-
f(), e.container.remove();
|
|
280
|
-
}, o = () => {
|
|
281
|
-
var h;
|
|
282
|
-
if (!!e.wrapper) {
|
|
283
|
-
if (!e.enabled || !e.fiveModeEnabled) {
|
|
284
|
-
(h = e.app) == null || h.$destroy(), e.app = void 0;
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
e.app ? e.app.$set({
|
|
288
|
-
five: n,
|
|
289
|
-
itemLabels: e.itemLabels
|
|
290
|
-
}) : e.app = new Xe({
|
|
291
|
-
target: e.container,
|
|
292
|
-
props: {
|
|
293
|
-
five: n,
|
|
294
|
-
modelOcclusionEnable: e.modelOcclusionEnable,
|
|
295
|
-
itemLabels: e.itemLabels,
|
|
296
|
-
wrapper: e.wrapper,
|
|
297
|
-
hooks: e.hooks,
|
|
298
|
-
displayStrategyType: e.displayStrategyType
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
}, r = () => {
|
|
303
|
-
n.on("modeChange", u), n.once("dispose", d);
|
|
304
|
-
}, f = () => {
|
|
305
|
-
n.off("modeChange", u);
|
|
306
|
-
}, u = (h) => {
|
|
307
|
-
if (!!e.enabled) {
|
|
308
|
-
if (h !== W.Mode.Floorplan) {
|
|
309
|
-
e.fiveModeEnabled = !1, o();
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
n.once("initAnimationEnded", () => {
|
|
313
|
-
e.fiveModeEnabled = n.currentMode === W.Mode.Floorplan, o();
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
return r(), {
|
|
318
|
-
appendTo: s,
|
|
319
|
-
load: m,
|
|
320
|
-
enable: l,
|
|
321
|
-
disable: a,
|
|
322
|
-
dispose: d,
|
|
323
|
-
hooks: e.hooks
|
|
324
|
-
};
|
|
325
|
-
}, Ye = {
|
|
326
|
-
name: "ModelItemLabelPlugin",
|
|
327
|
-
version: 0
|
|
328
|
-
};
|
|
329
|
-
export {
|
|
330
|
-
E as DISPLAY_STRATEGY_TYPE,
|
|
331
|
-
Ze as ModelItemLabelPlugin,
|
|
332
|
-
Ze as default,
|
|
333
|
-
Ye as modelItemLabelPluginServerParams
|
|
334
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";var Y=Object.defineProperty,$=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var R=(n,t,e)=>t in n?Y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,M=(n,t)=>{for(var e in t||(t={}))te.call(t,e)&&R(n,e,t[e]);if(F)for(var e of F(t))ne.call(t,e)&&R(n,e,t[e]);return n},I=(n,t)=>$(n,ee(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const O=require("@realsee/five"),o=require("svelte/internal"),S=require("svelte"),oe=require("three"),ie=require("classnames"),le=require("../chunks/cjs/debounce.93dfb637.cjs.js"),se=n=>n&&typeof n=="object"&&"default"in n?n:{default:n};function re(n){if(n&&n.__esModule)return n;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const ae=re(oe),A=se(ie);var L=(n=>(n.SMALL="small",n.MIDLLE="middle",n.LARGE="large",n.EXTRA_LARGE="x-large",n))(L||{});function ce(n){o.append_styles(n,"svelte-1ir3cyd",`.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
|
|
2
|
-
}to{opacity:1
|
|
3
|
-
}}`)}function de(n){let t,e,s,u=(n[0].name.length>6?`${n[0].name.slice(0,6)}...`:n[0].name)+"",r,c,m,i,a,p;return{c(){t=o.element("div"),e=o.element("div"),s=o.element("span"),r=o.text(u),c=o.space(),m=o.element("div"),o.attr(s,"class","item-label-item__text svelte-1ir3cyd"),o.attr(e,"class","item-label-item__text-wrap svelte-1ir3cyd"),o.set_style(e,"top",`-${n[0].strokeLength+26}px`),o.attr(m,"class","item-label-item__bar svelte-1ir3cyd"),o.set_style(m,"height",`${n[0].strokeLength}px`),o.attr(t,"class",i=o.null_to_empty(A.default("item-label-item",{visible:n[0].visible}))+" svelte-1ir3cyd"),o.set_style(t,"z-index",n[0].zIndex,!1),o.set_style(t,"transform",n[0].transform,!1)},m(f,g){o.insert(f,t,g),o.append(t,e),o.append(e,s),o.append(s,r),o.append(t,c),o.append(t,m),a||(p=o.listen(s,"click",n[1]),a=!0)},p(f,[g]){g&1&&u!==(u=(f[0].name.length>6?`${f[0].name.slice(0,6)}...`:f[0].name)+"")&&o.set_data(r,u),g&1&&o.set_style(e,"top",`-${f[0].strokeLength+26}px`),g&1&&o.set_style(m,"height",`${f[0].strokeLength}px`),g&1&&i!==(i=o.null_to_empty(A.default("item-label-item",{visible:f[0].visible}))+" svelte-1ir3cyd")&&o.attr(t,"class",i),g&1&&o.set_style(t,"z-index",f[0].zIndex,!1),g&1&&o.set_style(t,"transform",f[0].transform,!1)},i:o.noop,o:o.noop,d(f){f&&o.detach(t),a=!1,p()}}}function me(n,t,e){let{itemLabel:s}=t,{hooks:u}=t;function r(){console.log("__onclick___: ",s),u.emit("onLabelClick",s)}return n.$$set=c=>{"itemLabel"in c&&e(0,s=c.itemLabel),"hooks"in c&&e(2,u=c.hooks)},[s,r,u]}class ue extends o.SvelteComponent{constructor(t){super(),o.init(this,t,me,de,o.safe_not_equal,{itemLabel:0,hooks:2},ce)}}function fe(n){o.append_styles(n,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function q(n,t,e){const s=n.slice();return s[26]=t[e],s}function x(n,t){let e,s,u;return s=new ue({props:{itemLabel:t[26],hooks:t[0]}}),{key:n,first:null,c(){e=o.empty(),o.create_component(s.$$.fragment),this.first=e},m(r,c){o.insert(r,e,c),o.mount_component(s,r,c),u=!0},p(r,c){t=r;const m={};c&2&&(m.itemLabel=t[26]),c&1&&(m.hooks=t[0]),s.$set(m)},i(r){u||(o.transition_in(s.$$.fragment,r),u=!0)},o(r){o.transition_out(s.$$.fragment,r),u=!1},d(r){r&&o.detach(e),o.destroy_component(s,r)}}}function be(n){let t,e=[],s=new Map,u,r,c=n[1];const m=i=>i[26].id;for(let i=0;i<c.length;i+=1){let a=q(n,c,i),p=m(a);s.set(p,e[i]=x(p,a))}return{c(){t=o.element("div");for(let i=0;i<e.length;i+=1)e[i].c();o.attr(t,"class","item-labels-container svelte-gk8s47"),o.add_render_callback(()=>n[9].call(t)),o.set_style(t,"opacity",n[4]?1:0,!1)},m(i,a){o.insert(i,t,a);for(let p=0;p<e.length;p+=1)e[p].m(t,null);u=o.add_resize_listener(t,n[9].bind(t)),r=!0},p(i,[a]){a&3&&(c=i[1],o.group_outros(),e=o.update_keyed_each(e,a,m,1,i,c,s,t,o.outro_and_destroy_block,x,null,q),o.check_outros()),a&16&&o.set_style(t,"opacity",i[4]?1:0,!1)},i(i){if(!r){for(let a=0;a<c.length;a+=1)o.transition_in(e[a]);r=!0}},o(i){for(let a=0;a<e.length;a+=1)o.transition_out(e[a]);r=!1},d(i){i&&o.detach(t);for(let a=0;a<e.length;a+=1)e[a].d();u()}}}let U=26,pe=11;function ge(n,t,e){const{Raycaster:s,Vector3:u}=ae;let{five:r}=t,{modelOcclusionEnable:c}=t,{itemLabels:m}=t,{hooks:i}=t,{displayStrategyType:a}=t,p=null,f=null,g,k,_=[],z=!0;const V=(l,y)=>{const v=new s,b=l.camera.position.clone(),d=new u().fromArray(y.modelPosition),h=d.distanceTo(b);v.set(b.clone(),d.clone().sub(b).normalize());const[w]=l.model.intersectRaycaster(v);return!(w&&w.distance+1<h)},W=(l,y)=>{const v=new u(y.modelPosition[0],y.modelPosition[1],y.modelPosition[2]),b=l.project2d(v),d=b==null?void 0:b.x,h=b==null?void 0:b.y;return[d,h]},N=l=>`translate(${l[0]}px, ${l[1]}px)`,G=(l,y)=>_.length===0?!1:!!_.find(b=>l[0]>=b[0]-y&&l[0]<=b[0]+y||l[1]>=b[1]-U&&l[1]<=b[1]+U);function H(l,y){switch(y){case L.SMALL:return Math.ceil(-27.78*l+85);case L.MIDLLE:return Math.ceil(-38.9*l+130);case L.LARGE:return Math.ceil(-44.44*l+140);case L.EXTRA_LARGE:return Math.ceil(-92.59*l+300)}}const X=(l,y)=>{const v=y.map(d=>{const h=W(l,d),w=d.name.length*pe,j=H(d.modelPosition[1],a),P=(c?V(l,d):!0)&&!G([h[0],h[1]+j],w);if(!P)return I(M({},d),{visible:P});_.push(h);const Z=N(h);return I(M({},d),{visible:P,transform:Z,strokeLength:j})}),b=v.filter(({visible:d})=>d).map(d=>({itemLabelItem:d,distance:new u(d.modelPosition[0],d.modelPosition[1],d.modelPosition[2]).clone().distanceTo(l.camera.position)})).sort((d,h)=>d.distance-h.distance);return v.map(d=>{const h=b.findIndex(w=>w.itemLabelItem.id===d.id);return h!==void 0?I(M({},d),{zIndex:h*10}):d})},E=()=>{_=[],e(1,f=X(r,f))};S.beforeUpdate(()=>{K()});const C=()=>{e(4,z=!1),B()};S.onMount(()=>{e(1,f=m),p=m,E(),J(),r.on("cameraUpdate",C)});const B=le.debounce(()=>{e(4,z=!0),E()},300),J=()=>{window.addEventListener("resize",T,!1)},K=()=>{p!==m&&(e(1,f=m),p=m,E())},T=()=>{r.once("renderFrame",E)};S.onDestroy(()=>{r.off("cameraUpdate",C),window.removeEventListener("resize",T,!1)});function Q(){g=this.clientWidth,k=this.clientHeight,e(2,g),e(3,k)}return n.$$set=l=>{"five"in l&&e(5,r=l.five),"modelOcclusionEnable"in l&&e(6,c=l.modelOcclusionEnable),"itemLabels"in l&&e(7,m=l.itemLabels),"hooks"in l&&e(0,i=l.hooks),"displayStrategyType"in l&&e(8,a=l.displayStrategyType)},[i,f,g,k,z,r,c,m,a,Q]}class _e extends o.SvelteComponent{constructor(t){super(),o.init(this,t,ge,be,o.safe_not_equal,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},fe)}}function he(n){return n.model_item_labels.map(t=>M({modelPosition:[t.position[0],t.position[1]+t.size[1],t.position[2]]},t))}const D=(n,t)=>{var g,k;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new O.Subscribe,modelOcclusionEnable:(g=t==null?void 0:t.modelOcclusionEnable)!=null?g:!0,displayStrategyType:(k=t==null?void 0:t.displayStrategyType)!=null?k:L.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
|
|
4
|
-
position: absolute;
|
|
5
|
-
left: 0;
|
|
6
|
-
top: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
z-index: 5;
|
|
10
|
-
`,e.container.style.pointerEvents="none";const s=_=>(e.wrapper=_,_.appendChild(e.container),i(),!0),u=_=>{e.itemLabels=he(_),i()},r=()=>(e.enabled||(e.enabled=!0,i()),!0),c=()=>(e.enabled&&(e.enabled=!1,i()),!0),m=()=>{p(),e.container.remove()},i=()=>{var _;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(_=e.app)==null||_.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:n,itemLabels:e.itemLabels}):e.app=new _e({target:e.container,props:{five:n,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},a=()=>{n.on("modeChange",f),n.once("dispose",m)},p=()=>{n.off("modeChange",f)},f=_=>{if(!!e.enabled){if(_!==O.Five.Mode.Floorplan){e.fiveModeEnabled=!1,i();return}n.once("initAnimationEnded",()=>{e.fiveModeEnabled=n.currentMode===O.Five.Mode.Floorplan,i()})}};return a(),{appendTo:s,load:u,enable:r,disable:c,dispose:m,hooks:e.hooks}},ye={name:"ModelItemLabelPlugin",version:0};exports.DISPLAY_STRATEGY_TYPE=L;exports.ModelItemLabelPlugin=D;exports.default=D;exports.modelItemLabelPluginServerParams=ye;
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
var q = Object.defineProperty, _ = Object.defineProperties;
|
|
2
|
-
var $ = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var O = Object.getOwnPropertySymbols;
|
|
4
|
-
var ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var C = (o, e, t) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, N = (o, e) => {
|
|
6
|
-
for (var t in e || (e = {}))
|
|
7
|
-
ee.call(e, t) && C(o, t, e[t]);
|
|
8
|
-
if (O)
|
|
9
|
-
for (var t of O(e))
|
|
10
|
-
te.call(e, t) && C(o, t, e[t]);
|
|
11
|
-
return o;
|
|
12
|
-
}, B = (o, e) => _(o, $(e));
|
|
13
|
-
var h = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
-
import { SvelteComponent as T, init as Y, safe_not_equal as S, append_styles as V, element as F, text as oe, space as ne, attr as I, set_style as b, toggle_class as G, insert as k, append as x, listen as ie, set_data as se, noop as R, detach as y, add_render_callback as re, add_resize_listener as ae, group_outros as le, update_keyed_each as fe, outro_and_destroy_block as ce, check_outros as de, transition_in as Z, transition_out as W, globals as ue, empty as me, create_component as he, mount_component as ve, destroy_component as be } from "svelte/internal";
|
|
15
|
-
import { onDestroy as Ae } from "svelte";
|
|
16
|
-
import { Raycaster as ge, Vector3 as P } from "three";
|
|
17
|
-
const pe = "data:image/png;base64,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";
|
|
18
|
-
function we(o) {
|
|
19
|
-
V(o, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
|
|
20
|
-
}
|
|
21
|
-
function ze(o) {
|
|
22
|
-
let e, t, r = o[0].name + "", i, s, l, d, a;
|
|
23
|
-
return {
|
|
24
|
-
c() {
|
|
25
|
-
e = F("div"), t = F("span"), i = oe(r), s = ne(), l = F("div"), I(t, "class", "room-label-item__text svelte-1d7uzh5"), b(t, "background-image", "url(" + pe + ")"), G(t, "wide", o[0].name.length > 3), I(l, "class", "room-label-item__bar svelte-1d7uzh5"), I(e, "class", "room-label-item svelte-1d7uzh5"), b(e, "z-index", o[0].zIndex, !1), b(e, "transform", o[0].transform, !1), b(e, "opacity", o[0].visible ? 1 : 0, !1);
|
|
26
|
-
},
|
|
27
|
-
m(n, c) {
|
|
28
|
-
k(n, e, c), x(e, t), x(t, i), x(e, s), x(e, l), d || (a = ie(t, "click", o[1]), d = !0);
|
|
29
|
-
},
|
|
30
|
-
p(n, [c]) {
|
|
31
|
-
c & 1 && r !== (r = n[0].name + "") && se(i, r), c & 1 && G(t, "wide", n[0].name.length > 3), c & 1 && b(e, "z-index", n[0].zIndex, !1), c & 1 && b(e, "transform", n[0].transform, !1), c & 1 && b(e, "opacity", n[0].visible ? 1 : 0, !1);
|
|
32
|
-
},
|
|
33
|
-
i: R,
|
|
34
|
-
o: R,
|
|
35
|
-
d(n) {
|
|
36
|
-
n && y(e), d = !1, a();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function xe(o, e, t) {
|
|
41
|
-
let { five: r } = e, { roomLabel: i } = e;
|
|
42
|
-
function s() {
|
|
43
|
-
r.setState({
|
|
44
|
-
panoIndex: i.panoIndex,
|
|
45
|
-
mode: "Panorama",
|
|
46
|
-
longitude: i.longitude
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return o.$$set = (l) => {
|
|
50
|
-
"five" in l && t(2, r = l.five), "roomLabel" in l && t(0, i = l.roomLabel);
|
|
51
|
-
}, [i, s, r];
|
|
52
|
-
}
|
|
53
|
-
class Fe extends T {
|
|
54
|
-
constructor(e) {
|
|
55
|
-
super(), Y(this, e, xe, ze, S, { five: 2, roomLabel: 0 }, we);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const { Map: Ie } = ue;
|
|
59
|
-
function Le(o) {
|
|
60
|
-
V(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
61
|
-
}
|
|
62
|
-
function X(o, e, t) {
|
|
63
|
-
const r = o.slice();
|
|
64
|
-
return r[12] = e[t], r;
|
|
65
|
-
}
|
|
66
|
-
function K(o, e) {
|
|
67
|
-
let t, r, i;
|
|
68
|
-
return r = new Fe({
|
|
69
|
-
props: {
|
|
70
|
-
roomLabel: e[12],
|
|
71
|
-
five: e[1]
|
|
72
|
-
}
|
|
73
|
-
}), {
|
|
74
|
-
key: o,
|
|
75
|
-
first: null,
|
|
76
|
-
c() {
|
|
77
|
-
t = me(), he(r.$$.fragment), this.first = t;
|
|
78
|
-
},
|
|
79
|
-
m(s, l) {
|
|
80
|
-
k(s, t, l), ve(r, s, l), i = !0;
|
|
81
|
-
},
|
|
82
|
-
p(s, l) {
|
|
83
|
-
e = s;
|
|
84
|
-
const d = {};
|
|
85
|
-
l & 1 && (d.roomLabel = e[12]), l & 2 && (d.five = e[1]), r.$set(d);
|
|
86
|
-
},
|
|
87
|
-
i(s) {
|
|
88
|
-
i || (Z(r.$$.fragment, s), i = !0);
|
|
89
|
-
},
|
|
90
|
-
o(s) {
|
|
91
|
-
W(r.$$.fragment, s), i = !1;
|
|
92
|
-
},
|
|
93
|
-
d(s) {
|
|
94
|
-
s && y(t), be(r, s);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function je(o) {
|
|
99
|
-
let e, t = [], r = new Ie(), i, s, l = o[0];
|
|
100
|
-
const d = (a) => a[12].id;
|
|
101
|
-
for (let a = 0; a < l.length; a += 1) {
|
|
102
|
-
let n = X(o, l, a), c = d(n);
|
|
103
|
-
r.set(c, t[a] = K(c, n));
|
|
104
|
-
}
|
|
105
|
-
return {
|
|
106
|
-
c() {
|
|
107
|
-
e = F("div");
|
|
108
|
-
for (let a = 0; a < t.length; a += 1)
|
|
109
|
-
t[a].c();
|
|
110
|
-
I(e, "class", "room-labels-container svelte-9eg4zi"), re(() => o[6].call(e));
|
|
111
|
-
},
|
|
112
|
-
m(a, n) {
|
|
113
|
-
k(a, e, n);
|
|
114
|
-
for (let c = 0; c < t.length; c += 1)
|
|
115
|
-
t[c].m(e, null);
|
|
116
|
-
i = ae(e, o[6].bind(e)), s = !0;
|
|
117
|
-
},
|
|
118
|
-
p(a, [n]) {
|
|
119
|
-
n & 3 && (l = a[0], le(), t = fe(t, n, d, 1, a, l, r, e, ce, K, null, X), de());
|
|
120
|
-
},
|
|
121
|
-
i(a) {
|
|
122
|
-
if (!s) {
|
|
123
|
-
for (let n = 0; n < l.length; n += 1)
|
|
124
|
-
Z(t[n]);
|
|
125
|
-
s = !0;
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
o(a) {
|
|
129
|
-
for (let n = 0; n < t.length; n += 1)
|
|
130
|
-
W(t[n]);
|
|
131
|
-
s = !1;
|
|
132
|
-
},
|
|
133
|
-
d(a) {
|
|
134
|
-
a && y(e);
|
|
135
|
-
for (let n = 0; n < t.length; n += 1)
|
|
136
|
-
t[n].d();
|
|
137
|
-
i();
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function Ce(o, e, t) {
|
|
142
|
-
var M;
|
|
143
|
-
let r, { five: i } = e, { roomLabels: s } = e, l, d, a = (M = i.model.shownFloor) != null ? M : null;
|
|
144
|
-
function n(f) {
|
|
145
|
-
if (!(a === null || f.floorIndex === a))
|
|
146
|
-
return !1;
|
|
147
|
-
const p = new ge(), m = i.camera.position.clone(), v = new P(f.position.x, f.position.y, f.position.z), w = v.distanceTo(m);
|
|
148
|
-
p.set(m.clone(), v.clone().sub(m).normalize());
|
|
149
|
-
const [u] = i.model.intersectRaycaster(p);
|
|
150
|
-
return !(u && u.distance + 1 < w);
|
|
151
|
-
}
|
|
152
|
-
function c(f, A) {
|
|
153
|
-
const m = new P(f.position.x, f.position.y, f.position.z).clone().project(i.camera), v = Math.ceil((m.x + 1) / 2 * A.x), w = Math.ceil((-m.y + 1) / 2 * A.y);
|
|
154
|
-
return `translate(${v}px, ${w}px)`;
|
|
155
|
-
}
|
|
156
|
-
function E(f) {
|
|
157
|
-
const { rendererSize: A, shownFloor: p } = f, m = /* @__PURE__ */ new Map();
|
|
158
|
-
function v(u) {
|
|
159
|
-
const g = m.get(u.id);
|
|
160
|
-
if (g)
|
|
161
|
-
return g;
|
|
162
|
-
const { x: L, y: j, z: J } = u.position, z = new P(L, j, J).clone().distanceTo(i.camera.position);
|
|
163
|
-
return m.set(u.id, z), z;
|
|
164
|
-
}
|
|
165
|
-
return s.map((u) => {
|
|
166
|
-
const g = n(u), L = g ? c(u, A) : u.transform, j = v(u), z = s.filter((D) => D.visible && v(D) < j).length * 10;
|
|
167
|
-
return B(N({}, u), { visible: g, transform: L, zIndex: z });
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
function Q() {
|
|
171
|
-
t(0, s = E({ rendererSize: r, shownFloor: a }));
|
|
172
|
-
}
|
|
173
|
-
function H(f) {
|
|
174
|
-
t(4, a = f);
|
|
175
|
-
}
|
|
176
|
-
i.on("cameraUpdate", Q), i.on("modelShownFloorChange", H), Ae(() => {
|
|
177
|
-
i.off("cameraUpdate", Q), i.off("modelShownFloorChange", H);
|
|
178
|
-
});
|
|
179
|
-
function U() {
|
|
180
|
-
l = this.clientWidth, d = this.clientHeight, t(2, l), t(3, d);
|
|
181
|
-
}
|
|
182
|
-
return o.$$set = (f) => {
|
|
183
|
-
"five" in f && t(1, i = f.five), "roomLabels" in f && t(0, s = f.roomLabels);
|
|
184
|
-
}, o.$$.update = () => {
|
|
185
|
-
o.$$.dirty & 12 && t(5, r = { x: l, y: d }), o.$$.dirty & 48 && t(0, s = E({ rendererSize: r, shownFloor: a }));
|
|
186
|
-
}, [
|
|
187
|
-
s,
|
|
188
|
-
i,
|
|
189
|
-
l,
|
|
190
|
-
d,
|
|
191
|
-
a,
|
|
192
|
-
r,
|
|
193
|
-
U
|
|
194
|
-
];
|
|
195
|
-
}
|
|
196
|
-
class Pe extends T {
|
|
197
|
-
constructor(e) {
|
|
198
|
-
super(), Y(this, e, Ce, je, S, { five: 1, roomLabels: 0 }, Le);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function ke(o) {
|
|
202
|
-
return o.model_room_labels.map(({ id: e, pano_index: t, floor_index: r, name: i, position: s, longitude: l }) => ({
|
|
203
|
-
id: e,
|
|
204
|
-
name: i,
|
|
205
|
-
position: s,
|
|
206
|
-
longitude: l,
|
|
207
|
-
panoIndex: t,
|
|
208
|
-
floorIndex: r,
|
|
209
|
-
zIndex: 0,
|
|
210
|
-
visible: !1,
|
|
211
|
-
transform: ""
|
|
212
|
-
}));
|
|
213
|
-
}
|
|
214
|
-
class ye {
|
|
215
|
-
constructor(e) {
|
|
216
|
-
h(this, "five");
|
|
217
|
-
h(this, "enabled", !0);
|
|
218
|
-
h(this, "fiveModeEnabled");
|
|
219
|
-
h(this, "app");
|
|
220
|
-
h(this, "wrapper");
|
|
221
|
-
h(this, "roomLabels", []);
|
|
222
|
-
h(this, "container", document.createElement("div"));
|
|
223
|
-
h(this, "onFiveModeChange", (e) => {
|
|
224
|
-
if (e !== "Floorplan") {
|
|
225
|
-
this.fiveModeEnabled = !1, this.render();
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
this.five.once("initAnimationEnded", () => {
|
|
229
|
-
this.fiveModeEnabled = this.five.currentMode === "Floorplan", this.render();
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
this.five = e, this.fiveModeEnabled = this.five.currentMode === "Floorplan", this.container.classList.add("model-room-label-plugin-container"), this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.position = "absolute", this.container.style.pointerEvents = "none", this.container.style.left = "0", this.container.style.top = "0", this.container.style.zIndex = "5", this.five.once("dispose", () => this.dispose()), this.five.on("modeChange", this.onFiveModeChange), this.render();
|
|
233
|
-
}
|
|
234
|
-
dispose() {
|
|
235
|
-
this.five.off("modeChange", this.onFiveModeChange), this.container.remove();
|
|
236
|
-
}
|
|
237
|
-
load(e) {
|
|
238
|
-
this.roomLabels = ke(e), this.render();
|
|
239
|
-
}
|
|
240
|
-
appendTo(e) {
|
|
241
|
-
return this.wrapper = e, e.appendChild(this.container), this.render(), this;
|
|
242
|
-
}
|
|
243
|
-
disable() {
|
|
244
|
-
return this.enabled = !1, this.render(), this;
|
|
245
|
-
}
|
|
246
|
-
enable() {
|
|
247
|
-
return this.enabled = !0, this.render(), this;
|
|
248
|
-
}
|
|
249
|
-
render() {
|
|
250
|
-
var e;
|
|
251
|
-
if (!!this.wrapper) {
|
|
252
|
-
if (!this.enabled || !this.fiveModeEnabled) {
|
|
253
|
-
(e = this.app) == null || e.$destroy(), this.app = void 0;
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
this.app ? this.app.$set({ five: this.five, roomLabels: this.roomLabels }) : this.app = new Pe({
|
|
257
|
-
target: this.container,
|
|
258
|
-
props: {
|
|
259
|
-
five: this.five,
|
|
260
|
-
roomLabels: this.roomLabels
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
const Je = (o) => new ye(o), De = {
|
|
267
|
-
name: "ModelRoomLabelPlugin",
|
|
268
|
-
version: 0
|
|
269
|
-
};
|
|
270
|
-
export {
|
|
271
|
-
Je as ModelRoomLabelPlugin,
|
|
272
|
-
Je as default,
|
|
273
|
-
De as modelRoomLabelPluginServerParams
|
|
274
|
-
};
|