@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -12
- package/dist/CSS3DRenderPlugin/index..js +88 -0
- package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
- package/dist/CameraMovementPlugin/index..js +11 -0
- package/dist/CameraMovementPlugin/index.cjs.js +1 -0
- package/dist/CruisePlugin/index..js +527 -0
- package/dist/CruisePlugin/index.cjs.js +1 -0
- package/dist/GuideLinePlugin/index..js +214 -0
- package/dist/GuideLinePlugin/index.cjs.js +1 -0
- package/dist/ItemLabelPlugin/index..js +508 -0
- package/dist/ItemLabelPlugin/index.cjs.js +10 -0
- package/dist/ModelChassisCompassPlugin/index..js +9 -0
- package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
- package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
- package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
- package/dist/ModelItemLabelPlugin/index..js +334 -0
- package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
- package/dist/ModelRoomLabelPlugin/index..js +274 -0
- package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
- package/dist/ModelTVVideoPlugin/index..js +12 -0
- package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
- package/dist/ModelViewPlugin/index..js +8 -0
- package/dist/ModelViewPlugin/index.cjs.js +1 -0
- package/dist/Object3DHelperPlugin/index..js +1414 -0
- package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
- package/dist/PanoCompassPlugin/index..js +258 -0
- package/dist/PanoCompassPlugin/index.cjs.js +1 -0
- package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
- package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
- package/dist/PanoDoorLabelPlugin/index..js +340 -0
- package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
- package/dist/PanoMeasurePlugin/index..js +15 -0
- package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
- package/dist/PanoRulerPlugin/index..js +9 -0
- package/dist/PanoRulerPlugin/index.cjs.js +1 -0
- package/dist/PanoRulerProPlugin/index..js +395 -0
- package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
- package/dist/PanoSpatialTagPlugin/index..js +15 -0
- package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
- package/dist/PanoTagPlugin/index..js +4522 -0
- package/dist/PanoTagPlugin/index.cjs.js +17 -0
- package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
- package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
- package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
- package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
- package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
- package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
- package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
- package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
- package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
- package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
- package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
- package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
- package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
- package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
- package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
- package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
- package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
- package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
- package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
- package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
- package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
- package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
- package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
- package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
- package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
- package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
- package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
- package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
- package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
- package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
- package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
- package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
- package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
- package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
- package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
- package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
- package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
- package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
- package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
- package/dist/chunks/es/index.a273f06e.es.js +532 -0
- package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
- package/dist/chunks/es/index.f74f4851.es.js +1787 -0
- package/dist/chunks/es/isNil.212842d9.es.js +10 -0
- package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
- package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
- package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
- package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
- package/dist/components/PaintBrush/index..js +6 -0
- package/dist/components/PaintBrush/index.cjs.js +1 -0
- package/dist/components/index..js +7 -0
- package/dist/components/index.cjs.js +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
- package/dist/index..js +530 -0
- package/dist/index.cjs.js +3 -543
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +6 -11
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -5
- package/libs/CSS3DRenderPlugin/Controller.js +6 -7
- package/libs/CSS3DRenderPlugin/index.js +3 -4
- package/libs/CSS3DRenderPlugin/typing.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -3
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -2
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +16 -17
- package/libs/CameraMovementPlugin/index.js +3 -0
- package/libs/CruisePlugin/Controller.js +4 -4
- package/libs/CruisePlugin/index.js +3 -6
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +3 -4
- package/libs/GuideLinePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -32
- package/libs/ItemLabelPlugin/Plugin.js +5 -6
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
- package/libs/ModelChassisCompassPlugin/index.js +2 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +22 -23
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +4 -3
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +5 -6
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +11 -10
- package/libs/ModelRoomLabelPlugin/index.js +0 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -2
- package/libs/ModelTVVideoPlugin/index.js +2 -0
- package/libs/ModelViewPlugin/Plugin.js +1 -2
- package/libs/ModelViewPlugin/index.js +2 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +6 -7
- package/libs/Object3DHelperPlugin/index.js +1 -6
- package/libs/PanoCompassPlugin/index.js +3 -4
- package/libs/PanoCursorRaycasterPlugin/index.js +7 -8
- package/libs/PanoDoorLabelPlugin/index.js +1 -2
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +17 -17
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +9 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +8 -8
- package/libs/PanoMeasurePlugin/Model/index.js +3 -3
- package/libs/PanoMeasurePlugin/Model/line.js +11 -11
- package/libs/PanoMeasurePlugin/Model/point.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +3 -4
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +2 -2
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +0 -1
- package/libs/PanoMeasurePlugin/utils/math.js +1 -2
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoRulerPlugin/Plugin.js +2 -3
- package/libs/PanoRulerPlugin/index.js +2 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerProPlugin/Controller.js +15 -15
- package/libs/PanoRulerProPlugin/RulerItems.js +7 -4
- package/libs/PanoRulerProPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -3
- package/libs/PanoSpatialTagPlugin/index.js +6 -0
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +43 -36
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +88 -78
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -4
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +30 -27
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +20 -14
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +114 -92
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +71 -52
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +62 -50
- package/libs/PanoTagPlugin/Components/Tag/index.js +92 -63
- package/libs/PanoTagPlugin/Components/TagContainer.js +108 -64
- package/libs/PanoTagPlugin/Components/TagWrapper.js +113 -75
- package/libs/PanoTagPlugin/controller/index.js +0 -1
- package/libs/PanoTagPlugin/index.js +3 -7
- package/libs/PanoTagPlugin/tag.config.js +1 -2
- package/libs/PanoTagPlugin/typings/controller.js +1 -0
- package/libs/PanoTagPlugin/typings/index.js +1 -0
- package/libs/PanoTagPlugin/utils/constants.js +1 -2
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/index.js +1 -0
- package/libs/components/PaintBrush/Controller.js +3 -3
- package/libs/components/PaintBrush/style.js +1 -1
- package/libs/components/PaintBrush/tween.js +4 -4
- package/libs/components/index.js +2 -0
- package/libs/floorplan/Components/Camera.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +51 -41
- package/libs/floorplan/Components/Main.js +41 -22
- package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +37 -36
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +7 -7
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -65
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -5
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/index.js +6 -0
- package/libs/floorplan/typings/floorplanData.js +1 -0
- package/libs/floorplan/utils/correctFiveState.js +19 -19
- package/libs/floorplan/utils/formatData.js +16 -16
- package/libs/floorplan/utils/formatPosition.js +7 -7
- package/libs/index.js +344 -90
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -3
- package/libs/shared-utils/Object3DHelper/Constants/color.js +0 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -0
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
- package/libs/shared-utils/animationFrame/index.js +13 -16
- package/libs/shared-utils/animationFrame/tween.js +0 -2
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
- package/libs/shared-utils/createCanvasTextTexture.js +6 -6
- package/libs/shared-utils/createLine/index.js +3 -3
- package/libs/shared-utils/debounce.js +5 -5
- package/libs/shared-utils/equal.js +16 -16
- package/libs/shared-utils/filter.js +1 -1
- package/libs/shared-utils/five/changeMode.js +14 -14
- package/libs/shared-utils/getPxmm.js +7 -8
- package/libs/shared-utils/index.js +33 -29
- package/libs/shared-utils/isTruelyObject.js +1 -1
- package/libs/shared-utils/math/index.js +1 -0
- package/libs/shared-utils/math/planimetry.js +1 -6
- package/libs/shared-utils/math/rad2Deg.js +3 -3
- package/libs/shared-utils/nearlyEqual.js +3 -3
- package/libs/shared-utils/noop.js +1 -1
- package/libs/shared-utils/object3d2LocalMatrix.js +6 -7
- package/libs/shared-utils/removeArrayItem.js +5 -5
- package/libs/shared-utils/tap.js +3 -3
- package/libs/shared-utils/three/index.js +6 -0
- package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +12 -12
- package/libs/shared-utils/throttle.js +2 -2
- package/libs/shared-utils/tinyEJSrender.js +7 -7
- package/libs/shared-utils/to.js +14 -15
- package/libs/shared-utils/uuid.js +0 -1
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-changed-params.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-params.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/mount-swiper.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/params-list.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/update-swiper.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/utils.js +0 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper-slide.js +1 -1
- package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -0
- package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper.js +1 -1
- package/package.json +19 -17
- package/dist/index.es.js +0 -16650
- package/dist/index.js +0 -16650
- package/dist/index.umd.js +0 -556
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
var R = (t, s, e) => new Promise((x, M) => {
|
|
2
2
|
var y = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
c(e.next(r));
|
|
5
5
|
} catch (m) {
|
|
6
6
|
M(m);
|
|
7
7
|
}
|
|
8
8
|
}, P = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
c(e.throw(r));
|
|
11
11
|
} catch (m) {
|
|
12
12
|
M(m);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, c = (r) => r.done ? x(r.value) : Promise.resolve(r.value).then(y, P);
|
|
15
|
+
c((e = e.apply(t, s)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as C from "three";
|
|
18
18
|
import { MeshBasicMaterial as z, AnimationMixer as B } from "three";
|
|
19
19
|
import { FBXLoader as S } from "three/examples/jsm/loaders/FBXLoader";
|
|
20
|
-
import _ from "../shared-utils/createCanvasTextTexture.js";
|
|
21
|
-
import H from "../shared-utils/three/transformPositionToVector3.js";
|
|
22
|
-
import L from "../shared-utils/three/transfromToMeshBasicMaterial.js";
|
|
20
|
+
import { createCanvasTextTexture as _ } from "../shared-utils/createCanvasTextTexture.js";
|
|
21
|
+
import { transformPositionToVector3 as H } from "../shared-utils/three/transformPositionToVector3.js";
|
|
22
|
+
import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/transfromToMeshBasicMaterial.js";
|
|
23
23
|
const J = (t, s) => {
|
|
24
24
|
var g, w, G;
|
|
25
|
-
const e = {}, x = (g = s.animationEnabled) != null ? g : !0, M = (w = s.position) != null ? w : void 0, y = (G = s.rad) != null ? G : void 0, P = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",
|
|
26
|
-
var E, u, b, h,
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
25
|
+
const e = {}, x = (g = s.animationEnabled) != null ? g : !0, M = (w = s.position) != null ? w : void 0, y = (G = s.rad) != null ? G : void 0, P = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", c = [], r = (o) => R(void 0, null, function* () {
|
|
26
|
+
var E, u, b, h, p, f, j;
|
|
27
|
+
const l = (E = o == null ? void 0 : o.position) != null ? E : M;
|
|
28
|
+
if (!l)
|
|
29
29
|
return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
|
|
30
|
-
const i = H(
|
|
30
|
+
const i = H(l), n = (u = o == null ? void 0 : o.rad) != null ? u : y, D = (b = o == null ? void 0 : o.fbx_url) != null ? b : P;
|
|
31
31
|
if (e.rad = n, n === void 0)
|
|
32
32
|
return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`);
|
|
33
33
|
const a = yield new S().loadAsync(D);
|
|
34
34
|
a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side: C.DoubleSide });
|
|
35
|
-
const d = (j = (
|
|
35
|
+
const d = (j = (f = (p = (h = a.children) == null ? void 0 : h[0]) == null ? void 0 : p.children) == null ? void 0 : f[3]) == null ? void 0 : j.clone();
|
|
36
36
|
return d ? (d.material = new z({ transparent: !0, map: _("\u5165\u6237\u95E8") }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`);
|
|
37
37
|
}), m = () => {
|
|
38
38
|
if (e.animation)
|
|
39
39
|
return;
|
|
40
40
|
if (!e.object)
|
|
41
41
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
42
|
-
const o = 1,
|
|
43
|
-
|
|
44
|
-
const i =
|
|
42
|
+
const o = 1, l = new B(e.object);
|
|
43
|
+
c.push(l);
|
|
44
|
+
const i = l.clipAction(e.object.animations[0]);
|
|
45
45
|
i.timeScale = o;
|
|
46
46
|
let n;
|
|
47
47
|
const D = () => {
|
|
48
48
|
let u = 0, b = 0;
|
|
49
|
-
const h = 1e3 / 30,
|
|
50
|
-
u = requestAnimationFrame(
|
|
51
|
-
const j =
|
|
52
|
-
j < h || (b =
|
|
49
|
+
const h = 1e3 / 30, p = (f) => {
|
|
50
|
+
u = requestAnimationFrame(p);
|
|
51
|
+
const j = f - b;
|
|
52
|
+
j < h || (b = f, c.forEach((q) => q.update(j / 1e3)), t.needsRender = !0);
|
|
53
53
|
};
|
|
54
|
-
return u = requestAnimationFrame(
|
|
54
|
+
return u = requestAnimationFrame(p), () => {
|
|
55
55
|
cancelAnimationFrame(u);
|
|
56
56
|
};
|
|
57
57
|
}, E = { play: () => {
|
|
@@ -73,6 +73,5 @@ const J = (t, s) => {
|
|
|
73
73
|
return { load: r, enable: (o) => (e.enabled || (e.enabled = !0, A(t.currentMode), t.on("modeChange", A), F(o)), !0), disable: () => (e.enabled && (e.enabled = !1, T(), t.off("modeChange", A)), !0) };
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
|
-
J as ModelEntryDoorGuidePlugin
|
|
77
|
-
J as default
|
|
76
|
+
J as ModelEntryDoorGuidePlugin
|
|
78
77
|
};
|
|
@@ -15,7 +15,8 @@ import { DISPLAY_STRATEGY_TYPE as E } from "./typings.js";
|
|
|
15
15
|
import { beforeUpdate as ye, onMount as pe, onDestroy as ke } from "svelte";
|
|
16
16
|
import * as Ie from "three";
|
|
17
17
|
import Ee from "./ItemLabelItem.js";
|
|
18
|
-
import we from "../shared-utils/debounce.js";
|
|
18
|
+
import { debounce as we } from "../shared-utils/debounce.js";
|
|
19
|
+
import "classnames";
|
|
19
20
|
function Pe(o) {
|
|
20
21
|
re(o, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
21
22
|
}
|
|
@@ -188,7 +189,7 @@ function Re(o, t, e) {
|
|
|
188
189
|
N
|
|
189
190
|
];
|
|
190
191
|
}
|
|
191
|
-
class
|
|
192
|
+
class Ve extends oe {
|
|
192
193
|
constructor(t) {
|
|
193
194
|
super(), se(
|
|
194
195
|
this,
|
|
@@ -208,5 +209,5 @@ class De extends oe {
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
export {
|
|
211
|
-
|
|
212
|
+
Ve as default
|
|
212
213
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subscribe as
|
|
1
|
+
import { Subscribe as f, Five as s } from "@realsee/five";
|
|
2
2
|
import L from "./ItemLabelComponent.js";
|
|
3
3
|
import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
|
|
4
4
|
import { parseModelItemLabelPluginData as E } from "./utils/parseData.js";
|
|
@@ -12,7 +12,7 @@ const T = (t, o) => {
|
|
|
12
12
|
itemLabels: [],
|
|
13
13
|
wrapper: null,
|
|
14
14
|
app: void 0,
|
|
15
|
-
hooks: new
|
|
15
|
+
hooks: new f(),
|
|
16
16
|
modelOcclusionEnable: (a = o == null ? void 0 : o.modelOcclusionEnable) != null ? a : !0,
|
|
17
17
|
displayStrategyType: (d = o == null ? void 0 : o.displayStrategyType) != null ? d : g.SMALL
|
|
18
18
|
};
|
|
@@ -27,7 +27,7 @@ const T = (t, o) => {
|
|
|
27
27
|
const p = (n) => (e.wrapper = n, n.appendChild(e.container), l(), !0), c = (n) => {
|
|
28
28
|
e.itemLabels = E(n), l();
|
|
29
29
|
}, u = () => (e.enabled || (e.enabled = !0, l()), !0), b = () => (e.enabled && (e.enabled = !1, l()), !0), r = () => {
|
|
30
|
-
|
|
30
|
+
y(), e.container.remove();
|
|
31
31
|
}, l = () => {
|
|
32
32
|
var n;
|
|
33
33
|
if (!!e.wrapper) {
|
|
@@ -52,7 +52,7 @@ const T = (t, o) => {
|
|
|
52
52
|
}
|
|
53
53
|
}, m = () => {
|
|
54
54
|
t.on("modeChange", i), t.once("dispose", r);
|
|
55
|
-
},
|
|
55
|
+
}, y = () => {
|
|
56
56
|
t.off("modeChange", i);
|
|
57
57
|
}, i = (n) => {
|
|
58
58
|
if (!!e.enabled) {
|
|
@@ -75,6 +75,5 @@ const T = (t, o) => {
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
export {
|
|
78
|
-
T as ModelItemLabelPlugin
|
|
79
|
-
T as default
|
|
78
|
+
T as ModelItemLabelPlugin
|
|
80
79
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -14,6 +14,7 @@ import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as
|
|
|
14
14
|
import { onDestroy as ce } from "svelte";
|
|
15
15
|
import { Raycaster as ae, Vector3 as w } from "three";
|
|
16
16
|
import fe from "./RoomLabelItem.js";
|
|
17
|
+
import "./Assets/roomLabelBg.js";
|
|
17
18
|
const { Map: me } = ne;
|
|
18
19
|
function ue(o) {
|
|
19
20
|
N(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
@@ -108,22 +109,22 @@ function he(o, t, e) {
|
|
|
108
109
|
const [f] = s.model.intersectRaycaster(g);
|
|
109
110
|
return !(f && f.distance + 1 < b);
|
|
110
111
|
}
|
|
111
|
-
function d(c,
|
|
112
|
-
const u = new w(c.position.x, c.position.y, c.position.z).clone().project(s.camera), h = Math.ceil((u.x + 1) / 2 *
|
|
112
|
+
function d(c, p) {
|
|
113
|
+
const u = new w(c.position.x, c.position.y, c.position.z).clone().project(s.camera), h = Math.ceil((u.x + 1) / 2 * p.x), b = Math.ceil((-u.y + 1) / 2 * p.y);
|
|
113
114
|
return `translate(${h}px, ${b}px)`;
|
|
114
115
|
}
|
|
115
116
|
function z(c) {
|
|
116
|
-
const { rendererSize:
|
|
117
|
+
const { rendererSize: p, shownFloor: g } = c, u = /* @__PURE__ */ new Map();
|
|
117
118
|
function h(f) {
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
return
|
|
119
|
+
const _ = u.get(f.id);
|
|
120
|
+
if (_)
|
|
121
|
+
return _;
|
|
121
122
|
const { x: L, y: v, z: x } = f.position, y = new w(L, v, x).clone().distanceTo(s.camera.position);
|
|
122
123
|
return u.set(f.id, y), y;
|
|
123
124
|
}
|
|
124
125
|
return r.map((f) => {
|
|
125
|
-
const
|
|
126
|
-
return S(R({}, f), { visible:
|
|
126
|
+
const _ = i(f), L = _ ? d(f, p) : f.transform, v = h(f), y = r.filter((M) => M.visible && h(M) < v).length * 10;
|
|
127
|
+
return S(R({}, f), { visible: _, transform: L, zIndex: y });
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
130
|
function F() {
|
|
@@ -152,11 +153,11 @@ function he(o, t, e) {
|
|
|
152
153
|
j
|
|
153
154
|
];
|
|
154
155
|
}
|
|
155
|
-
class
|
|
156
|
+
class ve extends G {
|
|
156
157
|
constructor(t) {
|
|
157
158
|
super(), J(this, t, he, de, K, { five: 1, roomLabels: 0 }, ue);
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
+
ve as default
|
|
162
163
|
};
|
|
@@ -102,6 +102,5 @@ const S = (o, i) => {
|
|
|
102
102
|
return Object.assign(window, { camera: f }), o.on("modelLoaded", k), o.on("modelWillLoad", L), o.on("cameraDirectionUpdate", p), o.on("dispose", R), o.on("renderFrame", D), o.on("cameraPositionUpdate", p), { appendTo: P, refresh: b, changeConfigs: j };
|
|
103
103
|
};
|
|
104
104
|
export {
|
|
105
|
-
S as ModelViewPlugin
|
|
106
|
-
S as default
|
|
105
|
+
S as ModelViewPlugin
|
|
107
106
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
2
|
var c = (t, e, r) => e in t ? p(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var n = (t, e, r) => (c(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
class
|
|
5
|
-
constructor(e, r,
|
|
4
|
+
class G {
|
|
5
|
+
constructor(e, r, a, i) {
|
|
6
6
|
n(this, "helperController");
|
|
7
7
|
n(this, "five");
|
|
8
8
|
n(this, "onFiveWantsTapGesture", (e) => {
|
|
@@ -17,16 +17,15 @@ class C {
|
|
|
17
17
|
const r = this.helperController.onWantsGesture(...e);
|
|
18
18
|
return this.five.needsRender = !0, r;
|
|
19
19
|
});
|
|
20
|
-
const { camera: s, model: o, scene: l } = e,
|
|
21
|
-
if (this.five = e, !s || !o || !
|
|
20
|
+
const { camera: s, model: o, scene: l } = e, u = e.getElement();
|
|
21
|
+
if (this.five = e, !s || !o || !u || !l)
|
|
22
22
|
return;
|
|
23
23
|
const h = () => {
|
|
24
24
|
e.needsRender = !0;
|
|
25
25
|
};
|
|
26
|
-
this.helperController = new r(s, o,
|
|
26
|
+
this.helperController = new r(s, o, a, i, u, l, h), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
|
-
|
|
31
|
-
C as FiveControllerWrapper
|
|
30
|
+
G as ControllerWrapper
|
|
32
31
|
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as r } from "./Controller.js";
|
|
2
|
-
import { Object3DHelperController as n, PLUGIN as c, VERSION as O } from "./Controller.js";
|
|
3
2
|
const t = (e) => new r(e);
|
|
4
3
|
export {
|
|
5
|
-
|
|
6
|
-
t as Object3DHelperPlugin,
|
|
7
|
-
c as PLUGIN,
|
|
8
|
-
O as VERSION,
|
|
9
|
-
t as default
|
|
4
|
+
t as Object3DHelperPlugin
|
|
10
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { PanoCompassController as
|
|
2
|
-
const
|
|
1
|
+
import { PanoCompassController as r } from "./Controller.js";
|
|
2
|
+
const a = (o, n) => new r(o, n);
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
r as default
|
|
4
|
+
a as PanoCompassPlugin
|
|
6
5
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Group as g, Vector3 as r, Raycaster as C } from "three";
|
|
2
|
-
import m from "../shared-utils/createLine/index.js";
|
|
2
|
+
import { createLine as m } from "../shared-utils/createLine/index.js";
|
|
3
3
|
const R = (e) => {
|
|
4
4
|
const a = {
|
|
5
5
|
intersection: null,
|
|
6
6
|
disposers: []
|
|
7
|
-
},
|
|
7
|
+
}, p = (t) => {
|
|
8
8
|
a.intersection = t;
|
|
9
|
-
},
|
|
9
|
+
}, l = () => {
|
|
10
10
|
a.intersection = null;
|
|
11
11
|
};
|
|
12
12
|
e.on("modelLoaded", () => {
|
|
13
|
-
e.on("intersectionOnModelUpdate",
|
|
13
|
+
e.on("intersectionOnModelUpdate", p), e.on("intersectionHidden", l);
|
|
14
14
|
}), e.on("dispose", () => {
|
|
15
|
-
e.off("intersectionOnModelUpdate",
|
|
15
|
+
e.off("intersectionOnModelUpdate", p), e.off("intersectionHidden", l);
|
|
16
16
|
});
|
|
17
17
|
const P = (t, c = 2, o = 0.1) => {
|
|
18
18
|
const s = c / 2, n = x(t, o), i = new g();
|
|
@@ -46,7 +46,7 @@ const R = (e) => {
|
|
|
46
46
|
return !(i && i.distance + c < s);
|
|
47
47
|
}, z = () => a.intersection, w = () => {
|
|
48
48
|
var t, c;
|
|
49
|
-
(c = (t = a.disposers) == null ? void 0 : t.forEach) == null || c.call(t, (o) => o == null ? void 0 : o()), e.off("intersectionOnModelUpdate",
|
|
49
|
+
(c = (t = a.disposers) == null ? void 0 : t.forEach) == null || c.call(t, (o) => o == null ? void 0 : o()), e.off("intersectionOnModelUpdate", p), e.off("intersectionHidden", l);
|
|
50
50
|
}, H = w, x = (t, c) => {
|
|
51
51
|
const o = t.clone();
|
|
52
52
|
return e.camera.position.clone().sub(o).setLength(c).add(o);
|
|
@@ -54,6 +54,5 @@ const R = (e) => {
|
|
|
54
54
|
return { intersection: z, pointAxesHelper: P, movePointTowardsCamera: x, destroy: w, dispose: H, canSeePoint: h };
|
|
55
55
|
};
|
|
56
56
|
export {
|
|
57
|
-
R as PanoCursorRaycasterPlugin
|
|
58
|
-
R as default
|
|
57
|
+
R as PanoCursorRaycasterPlugin
|
|
59
58
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var a = (i, e, o) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
|
|
3
3
|
var t = (i, e, o) => (a(i, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
-
import l from "../Model/line.js";
|
|
5
|
-
import d from "../Model/point.js";
|
|
4
|
+
import { Line as l } from "../Model/line.js";
|
|
5
|
+
import { Point as d } from "../Model/point.js";
|
|
6
6
|
import { preventDefault as r } from "../utils/ironbox.js";
|
|
7
7
|
class G {
|
|
8
8
|
constructor(e) {
|
|
@@ -49,5 +49,5 @@ class G {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
|
-
G as
|
|
52
|
+
G as BaseController
|
|
53
53
|
};
|
|
@@ -3,10 +3,10 @@ var m = (h, n, e) => n in h ? p(h, n, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var s = (h, n, e) => (m(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import u from "hammerjs";
|
|
5
5
|
import { Model as f } from "../Model/index.js";
|
|
6
|
-
import l from "../Model/line.js";
|
|
7
|
-
import d from "../Model/point.js";
|
|
8
|
-
import v from "../../shared-utils/throttle.js";
|
|
9
|
-
import c from "./BaseController.js";
|
|
6
|
+
import { Line as l } from "../Model/line.js";
|
|
7
|
+
import { Point as d } from "../Model/point.js";
|
|
8
|
+
import { throttle as v } from "../../shared-utils/throttle.js";
|
|
9
|
+
import { BaseController as c } from "./BaseController.js";
|
|
10
10
|
import { getIntersectionFromEvent as r } from "../utils/getIntersectionFromEvent.js";
|
|
11
11
|
class A extends c {
|
|
12
12
|
constructor(e) {
|
|
@@ -98,5 +98,5 @@ class A extends c {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
export {
|
|
101
|
-
A as
|
|
101
|
+
A as EditController
|
|
102
102
|
};
|
|
@@ -2,12 +2,12 @@ var b = Object.defineProperty;
|
|
|
2
2
|
var k = (h, n, e) => n in h ? b(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
|
|
3
3
|
var t = (h, n, e) => (k(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import { Model as S } from "../Model/index.js";
|
|
5
|
-
import T from "../Model/line.js";
|
|
6
|
-
import D from "./BaseController.js";
|
|
7
|
-
import M from "../Modules/DeleteDom/index.js";
|
|
5
|
+
import { Line as T } from "../Model/line.js";
|
|
6
|
+
import { BaseController as D } from "./BaseController.js";
|
|
7
|
+
import { DeleteDom as M } from "../Modules/DeleteDom/index.js";
|
|
8
8
|
import { findAssociatedLines as G } from "../utils/findAssociatedLines.js";
|
|
9
9
|
import { Vector2 as m } from "three";
|
|
10
|
-
import v from "../utils/isNDCPointInScreen.js";
|
|
10
|
+
import { isNDCPointInScreen as v } from "../utils/isNDCPointInScreen.js";
|
|
11
11
|
import { closestPointOnLine as N } from "../utils/math.js";
|
|
12
12
|
class V extends D {
|
|
13
13
|
constructor(e) {
|
|
@@ -32,22 +32,22 @@ class V extends D {
|
|
|
32
32
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
33
33
|
if (!i)
|
|
34
34
|
return;
|
|
35
|
-
const
|
|
36
|
-
const [a, L] =
|
|
35
|
+
const o = this.five.camera, f = i.point.clone().project(o), d = this.container.clientWidth, r = this.container.clientHeight, p = new m(f.x * d, f.y * r), g = this.model.lines.map((s) => {
|
|
36
|
+
const [a, L] = s.points, l = a.position.clone().project(o), c = L.position.clone().project(o);
|
|
37
37
|
if (!v(l) && !v(c))
|
|
38
38
|
return null;
|
|
39
39
|
const C = new m(l.x * d, l.y * r), w = new m(c.x * d, c.y * r);
|
|
40
|
-
return { id:
|
|
41
|
-
}).filter((
|
|
40
|
+
return { id: s.id, points: [C, w] };
|
|
41
|
+
}).filter((s) => !!s);
|
|
42
42
|
if (g.length === 0)
|
|
43
43
|
return;
|
|
44
|
-
const u = g.map((
|
|
45
|
-
const a = N(p,
|
|
46
|
-
return { id:
|
|
47
|
-
}).sort((
|
|
44
|
+
const u = g.map((s) => {
|
|
45
|
+
const a = N(p, s.points);
|
|
46
|
+
return { id: s.id, distance: a.distanceTo(p) };
|
|
47
|
+
}).sort((s, a) => s.distance - a.distance)[0];
|
|
48
48
|
if (u.distance > 20)
|
|
49
49
|
return;
|
|
50
|
-
const P = this.model.lines.find(({ id:
|
|
50
|
+
const P = this.model.lines.find(({ id: s }) => s === u.id);
|
|
51
51
|
if (!!P)
|
|
52
52
|
return this.chooseLine(P), !1;
|
|
53
53
|
});
|
|
@@ -67,8 +67,8 @@ class V extends D {
|
|
|
67
67
|
t(this, "onGetEndPoint", (e) => {
|
|
68
68
|
const i = this.mobileNowPoint;
|
|
69
69
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && i) {
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
const o = new T(this.mobileStartPoint, i, this.model);
|
|
71
|
+
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.group.add(o.mesh), this.model.addLine(o);
|
|
72
72
|
}
|
|
73
73
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
74
74
|
});
|
|
@@ -86,7 +86,7 @@ class V extends D {
|
|
|
86
86
|
const i = G(e);
|
|
87
87
|
this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
88
88
|
"selectedChange",
|
|
89
|
-
i.map((
|
|
89
|
+
i.map((o) => o.toCompletelyJson())
|
|
90
90
|
);
|
|
91
91
|
});
|
|
92
92
|
t(this, "deleteDomClickCallback", () => {
|
|
@@ -121,5 +121,5 @@ class V extends D {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
export {
|
|
124
|
-
V as
|
|
124
|
+
V as MixedController
|
|
125
125
|
};
|
|
@@ -4,9 +4,9 @@ var o = (h, n, e) => (y(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
|
4
4
|
import T from "hammerjs";
|
|
5
5
|
import { Vector2 as g } from "three";
|
|
6
6
|
import { closestPointOnLine as H } from "../utils/math.js";
|
|
7
|
-
import L from "../utils/isNDCPointInScreen.js";
|
|
7
|
+
import { isNDCPointInScreen as L } from "../utils/isNDCPointInScreen.js";
|
|
8
8
|
import { findAssociatedLines as k } from "../utils/findAssociatedLines.js";
|
|
9
|
-
import E from "./BaseController.js";
|
|
9
|
+
import { BaseController as E } from "./BaseController.js";
|
|
10
10
|
class M extends E {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(e);
|
|
@@ -86,5 +86,5 @@ class M extends E {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
89
|
-
M as
|
|
89
|
+
M as ViewController
|
|
90
90
|
};
|
|
@@ -2,9 +2,9 @@ var w = Object.defineProperty;
|
|
|
2
2
|
var y = (r, h, e) => h in r ? w(r, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[h] = e;
|
|
3
3
|
var s = (r, h, e) => (y(r, typeof h != "symbol" ? h + "" : h, e), e);
|
|
4
4
|
import E from "hammerjs";
|
|
5
|
-
import G from "../Modules/DeleteDom/index.js";
|
|
6
|
-
import L from "../utils/isNDCPointInScreen.js";
|
|
7
|
-
import R from "./BaseController.js";
|
|
5
|
+
import { DeleteDom as G } from "../Modules/DeleteDom/index.js";
|
|
6
|
+
import { isNDCPointInScreen as L } from "../utils/isNDCPointInScreen.js";
|
|
7
|
+
import { BaseController as R } from "./BaseController.js";
|
|
8
8
|
import { Raycaster as T, Vector2 as f } from "three";
|
|
9
9
|
import { closestPointOnLine as H } from "../utils/math.js";
|
|
10
10
|
import { findClosestPoint as I } from "../utils/findClosestPoint.js";
|
|
@@ -72,7 +72,7 @@ class B extends R {
|
|
|
72
72
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
73
73
|
if (!i)
|
|
74
74
|
return;
|
|
75
|
-
const t = this.five.camera, n = i.point.clone().project(t), c = this.container.clientWidth, a = this.container.clientHeight, l = new f(n.x * c, n.y * a),
|
|
75
|
+
const t = this.five.camera, n = i.point.clone().project(t), c = this.container.clientWidth, a = this.container.clientHeight, l = new f(n.x * c, n.y * a), g = this.model.lines.map((o) => {
|
|
76
76
|
const [d, S] = o.points, m = d.position.clone().project(t), p = S.position.clone().project(t);
|
|
77
77
|
if (!L(m) && !L(p))
|
|
78
78
|
return null;
|
|
@@ -85,15 +85,15 @@ class B extends R {
|
|
|
85
85
|
);
|
|
86
86
|
return { id: o.id, points: [k, D] };
|
|
87
87
|
}).filter((o) => !!o);
|
|
88
|
-
if (
|
|
88
|
+
if (g.length === 0)
|
|
89
89
|
return;
|
|
90
|
-
const
|
|
90
|
+
const u = g.map((o) => {
|
|
91
91
|
const d = H(l, o.points);
|
|
92
92
|
return { id: o.id, distance: d.distanceTo(l) };
|
|
93
93
|
}).sort((o, d) => o.distance - d.distance)[0];
|
|
94
|
-
if (
|
|
94
|
+
if (u.distance > 20)
|
|
95
95
|
return;
|
|
96
|
-
const P = this.model.lines.find(({ id: o }) => o ===
|
|
96
|
+
const P = this.model.lines.find(({ id: o }) => o === u.id);
|
|
97
97
|
if (!!P)
|
|
98
98
|
return this.chooseLine(P), !1;
|
|
99
99
|
});
|
|
@@ -150,5 +150,5 @@ class B extends R {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
export {
|
|
153
|
-
B as
|
|
153
|
+
B as WatchController
|
|
154
154
|
};
|
|
@@ -10,12 +10,12 @@ var h = (o, e, t) => e in o ? g(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
12
|
var r = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
-
import v from "../Modules/Magnifier.js";
|
|
14
|
-
import w from "../Modules/FiveHelper.js";
|
|
15
|
-
import a from "./EditController.js";
|
|
16
|
-
import M from "./ViewController.js";
|
|
17
|
-
import c from "./WatchController.js";
|
|
18
|
-
import f from "./MixedController.js";
|
|
13
|
+
import { Magnifier as v } from "../Modules/Magnifier.js";
|
|
14
|
+
import { FiveHelper as w } from "../Modules/FiveHelper.js";
|
|
15
|
+
import { EditController as a } from "./EditController.js";
|
|
16
|
+
import { ViewController as M } from "./ViewController.js";
|
|
17
|
+
import { WatchController as c } from "./WatchController.js";
|
|
18
|
+
import { MixedController as f } from "./MixedController.js";
|
|
19
19
|
import { omit as y } from "../../shared-utils/filter.js";
|
|
20
20
|
import { Group as I } from "three";
|
|
21
21
|
import { Model as b } from "../Model/index.js";
|
|
@@ -24,7 +24,7 @@ import { getMouseGroup as x } from "../utils/mouseGroup.js";
|
|
|
24
24
|
import { UIController as p } from "../Modules/UIController/index.js";
|
|
25
25
|
import { GuideController as U } from "../Modules/GuideController.js";
|
|
26
26
|
import { ShortcutKeyController as k } from "./ShortcutKeyController.js";
|
|
27
|
-
import E from "../Modules/rangePiece/index.js";
|
|
27
|
+
import { RangePieceController as E } from "../Modules/rangePiece/index.js";
|
|
28
28
|
class A {
|
|
29
29
|
constructor(e, t) {
|
|
30
30
|
r(this, "hasOpen", !1);
|
|
@@ -136,5 +136,5 @@ class A {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
export {
|
|
139
|
-
A as
|
|
139
|
+
A as MeasureController
|
|
140
140
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
2
|
var m = (o, i, n) => i in o ? y(o, i, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[i] = n;
|
|
3
3
|
var r = (o, i, n) => (m(o, typeof i != "symbol" ? i + "" : i, n), n);
|
|
4
|
-
import a from "./line.js";
|
|
5
|
-
import g from "./point.js";
|
|
4
|
+
import { Line as a } from "./line.js";
|
|
5
|
+
import { Point as g } from "./point.js";
|
|
6
6
|
import { Subscribe as B } from "@realsee/five";
|
|
7
|
-
import c from "../../shared-utils/removeArrayItem.js";
|
|
7
|
+
import { removeArrayItem as c } from "../../shared-utils/removeArrayItem.js";
|
|
8
8
|
import { Polyline as f } from "./polyline.js";
|
|
9
9
|
class v {
|
|
10
10
|
constructor(i) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
2
|
var r = (s, i, t) => i in s ? h(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t;
|
|
3
3
|
var e = (s, i, t) => (r(s, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
|
-
import
|
|
5
|
-
import { Polyline as
|
|
6
|
-
import { createLineMesh as
|
|
7
|
-
import { Subscribe as
|
|
8
|
-
import { createDistanceItem as
|
|
9
|
-
class
|
|
4
|
+
import { uuid as m } from "../../shared-utils/uuid.js";
|
|
5
|
+
import { Polyline as u } from "./polyline.js";
|
|
6
|
+
import { createLineMesh as n } from "../utils/line.js";
|
|
7
|
+
import { Subscribe as p } from "@realsee/five";
|
|
8
|
+
import { createDistanceItem as d } from "../utils/distanceDom.js";
|
|
9
|
+
class l {
|
|
10
10
|
constructor(i, t, o) {
|
|
11
11
|
e(this, "id");
|
|
12
12
|
e(this, "selected", !1);
|
|
@@ -18,9 +18,9 @@ class n {
|
|
|
18
18
|
e(this, "hook");
|
|
19
19
|
e(this, "distanceItem");
|
|
20
20
|
e(this, "polyline");
|
|
21
|
-
if (this.id =
|
|
21
|
+
if (this.id = m(), this.model = o, i.id === t.id)
|
|
22
22
|
throw new Error("\u65E0\u6548\u7684\u7EBF\u6BB5, \u4E00\u4E2A\u70B9\u65E0\u6CD5\u6784\u6210\u7EBF\u6BB5");
|
|
23
|
-
this.hook = new
|
|
23
|
+
this.hook = new p(), this.points = [i, t], this.mesh = n(this, "normal"), this.lightMesh = n(this, "light"), this.distanceItem = d({
|
|
24
24
|
line: this,
|
|
25
25
|
clickCallback: () => this.hook.emit("selected", this),
|
|
26
26
|
userDistanceItem: this.model.params.userDistanceItemCreator ? this.model.params.userDistanceItemCreator() : void 0
|
|
@@ -35,7 +35,7 @@ class n {
|
|
|
35
35
|
const i = this.model.polylines.find((o) => o.lines.includes(this));
|
|
36
36
|
if (this.polyline = i, i)
|
|
37
37
|
return i;
|
|
38
|
-
const t = new
|
|
38
|
+
const t = new u();
|
|
39
39
|
return t.push(this), t;
|
|
40
40
|
}
|
|
41
41
|
findAnotherPoint(i) {
|
|
@@ -48,9 +48,9 @@ class n {
|
|
|
48
48
|
return { id: this.id, points: this.points.map((i) => i.toJson()) };
|
|
49
49
|
}
|
|
50
50
|
clone() {
|
|
51
|
-
return new
|
|
51
|
+
return new l(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
l as Line
|
|
56
56
|
};
|