@realsee/dnalogel 2.15.0 → 2.16.0-0
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/Controller.d.ts +1 -0
- package/dist/CruisePlugin/Controller.d.ts +1 -2
- package/dist/CruisePlugin/typing.d.ts +12 -2
- package/dist/GuideLinePlugin/Controller.d.ts +17 -11
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +26 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
- package/dist/GuideLinePlugin/index.d.ts +3 -0
- package/dist/GuideLinePlugin/typing.d.ts +78 -1
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
- package/dist/GuideLinePlugin/utils/index.d.ts +7 -0
- package/dist/base/BasePlugin.d.ts +1 -0
- package/dist/index.cjs.js +118 -118
- package/dist/index.js +4431 -4294
- package/dist/index.umd.js +117 -117
- package/dist/shared-utils/five/index.d.ts +1 -0
- package/dist/shared-utils/five/mode.d.ts +3 -0
- package/dist/shared-utils/index.d.ts +3 -0
- package/dist/shared-utils/isAbsoluteURL.d.ts +1 -0
- package/dist/shared-utils/log.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/CruisePluginController.html +43 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +168 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +283 -0
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/Object3DHelperController.html +42 -24
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +25 -23
- package/docs/classes/PanoMeasurePluginModel.html +24 -22
- package/docs/classes/PanoMeasurePluginPoint.html +16 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +28 -26
- package/docs/classes/PanoTagPluginController.html +64 -46
- package/docs/classes/Util.BetterTween.html +10 -8
- package/docs/classes/Util.FivePointSelector.html +14 -12
- package/docs/classes/Util.Interval.html +14 -12
- package/docs/classes/Util.Magnifier.html +19 -17
- package/docs/classes/Util.PointDomHelper.html +13 -11
- package/docs/classes/Util.PointHelper.html +13 -11
- package/docs/classes/Util.Rectangle.html +15 -13
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +21 -19
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +6 -4
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.getCoordsFromClient.html +12 -6
- package/docs/functions/Util.getCoordsFromElement.html +12 -6
- package/docs/functions/Util.getFrameTime.html +12 -6
- package/docs/functions/Util.getIntersectFromRelativePosition.html +12 -6
- package/docs/functions/Util.getRaycasterFromFivePointer.html +12 -6
- package/docs/functions/Util.isAbsoluteURL.html +78 -0
- package/docs/functions/Util.isModelLike.html +78 -0
- package/docs/functions/Util.isNil.html +12 -6
- package/docs/functions/Util.isPanoramaLike.html +78 -0
- package/docs/functions/Util.nextFrame.html +12 -6
- package/docs/functions/Util.notNil.html +12 -6
- package/docs/functions/Util.requestAnimationFrameInterval.html +12 -6
- package/docs/functions/Util.tweenProgress.html +12 -6
- package/docs/functions/Util.uuid.html +75 -0
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +6 -4
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +16 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +13 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +13 -11
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +13 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
- package/docs/modules/GuideLineItem.html +52 -0
- package/docs/modules/GuideLineModeItem.html +52 -0
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +16 -6
- package/docs/modules.html +9 -5
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelElement.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/PlaneTagElement.html +7 -5
- package/docs/types/Point2DElement.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DElement.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagElement.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +7 -5
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagIconSize.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/Controller.js +40 -31
- package/libs/CSS3DRenderPlugin/index.js +12 -6
- package/libs/CruisePlugin/Controller.d.ts +1 -2
- package/libs/CruisePlugin/Controller.js +197 -174
- package/libs/CruisePlugin/index.js +33 -10
- package/libs/CruisePlugin/typing.d.ts +12 -2
- package/libs/GuideLinePlugin/Controller.d.ts +17 -11
- package/libs/GuideLinePlugin/Controller.js +111 -85
- package/libs/GuideLinePlugin/GuideLineItem/index.js +35 -0
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +26 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +31 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +148 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.js +29 -0
- package/libs/GuideLinePlugin/index.d.ts +3 -0
- package/libs/GuideLinePlugin/index.js +33 -7
- package/libs/GuideLinePlugin/typing.d.ts +78 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +35 -0
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +2 -0
- package/libs/GuideLinePlugin/utils/dataFormatter.js +6 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/index.js +32 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +37 -31
- package/libs/ModelTVVideoPlugin/index.js +11 -5
- package/libs/Object3DHelperPlugin/Controller.js +33 -28
- package/libs/Object3DHelperPlugin/index.js +18 -13
- package/libs/PanoCompassPlugin/Controller.js +8 -6
- package/libs/PanoCompassPlugin/index.js +12 -10
- package/libs/PanoDoorLabelPlugin/BaseController.js +47 -28
- package/libs/PanoDoorLabelPlugin/Controller.js +40 -22
- package/libs/PanoDoorLabelPlugin/index.js +21 -3
- package/libs/PanoMeasurePlugin/typings/index.js +20 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +8 -3
- package/libs/PanoSpatialTagPlugin/index.js +8 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +42 -22
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +8 -3
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +11 -10
- package/libs/PanoVideoPlugin/Controller.js +4 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +7 -6
- package/libs/base/BasePlugin.d.ts +1 -0
- package/libs/base/BasePlugin.js +21 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +57 -38
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +48 -29
- package/libs/floorplan/ModelFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +31 -11
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +23 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +59 -40
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/index.js +6 -0
- package/libs/index.js +116 -110
- package/libs/shared-utils/five/index.d.ts +1 -0
- package/libs/shared-utils/five/index.js +1 -0
- package/libs/shared-utils/five/mode.d.ts +3 -0
- package/libs/shared-utils/five/mode.js +11 -0
- package/libs/shared-utils/index.d.ts +3 -0
- package/libs/shared-utils/index.js +36 -29
- package/libs/shared-utils/isAbsoluteURL.d.ts +1 -0
- package/libs/shared-utils/isAbsoluteURL.js +6 -0
- package/libs/shared-utils/log.d.ts +2 -0
- package/libs/shared-utils/log.js +10 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/package.json +2 -2
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +0 -64
package/libs/index.js
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
import { PaintBrush as
|
|
2
|
-
import { PaintBrushTypeEnum as
|
|
3
|
-
import { ModelViewPlugin as
|
|
4
|
-
import { CSS3DRenderPlugin as
|
|
5
|
-
import { PanoCursorRaycasterPlugin as
|
|
6
|
-
import { ModelRoomLabelPlugin as
|
|
7
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
8
|
-
import { ModelFloorplanPlugin as
|
|
9
|
-
import { MapviewFloorplanPlugin as
|
|
10
|
-
import { TopviewFloorplanPlugin as
|
|
11
|
-
import { PanoFloorplanRadarPlugin as
|
|
12
|
-
import { FLOOR_TYPE_MAP as
|
|
13
|
-
import { ModelChassisCompassPlugin as
|
|
14
|
-
import { ModelEntryDoorGuidePlugin as
|
|
15
|
-
import { CameraMovementPlugin as
|
|
16
|
-
import { CameraMovementEffect as
|
|
17
|
-
import { PanoRulerPlugin as
|
|
18
|
-
import { PanoRulerProPlugin as
|
|
19
|
-
import { PanoCompassPlugin as
|
|
20
|
-
import { PanoMeasurePlugin as
|
|
21
|
-
import { PanoSpatialTagPlugin as
|
|
22
|
-
import { modelItemLabelPluginServerParams as
|
|
23
|
-
import { ModelTVVideoPlugin as
|
|
24
|
-
import { DIRECTION as
|
|
25
|
-
import { itemLabelPluginServerParams as
|
|
26
|
-
import { PanoDoorLabelPlugin as
|
|
27
|
-
import { GuideLinePlugin as
|
|
28
|
-
import { CruisePlugin as
|
|
29
|
-
import { PanoTagPlugin as
|
|
30
|
-
import { Object3DHelperPlugin as
|
|
31
|
-
import { PanoVideoPlugin as
|
|
32
|
-
import { index as
|
|
33
|
-
import { CSS3DRender as
|
|
34
|
-
import { Model as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { Polyline as
|
|
38
|
-
import { default as
|
|
39
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
40
|
-
import { ModelItemLabelPlugin as
|
|
41
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
42
|
-
import { Plugin as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
1
|
+
import { PaintBrush as hm } from "./components/PaintBrush/index.js";
|
|
2
|
+
import { PaintBrushTypeEnum as Bm } from "./components/PaintBrush/typings.js";
|
|
3
|
+
import { ModelViewPlugin as Um } from "./ModelViewPlugin/Plugin.js";
|
|
4
|
+
import { CSS3DRenderPlugin as jm } from "./CSS3DRenderPlugin/index.js";
|
|
5
|
+
import { PanoCursorRaycasterPlugin as qm } from "./PanoCursorRaycasterPlugin/index.js";
|
|
6
|
+
import { ModelRoomLabelPlugin as Jm, modelRoomLabelPluginServerParams as Km } from "./ModelRoomLabelPlugin/index.js";
|
|
7
|
+
import { FLOOR_PLAN_ATTACHED_TO as Wm } from "./floorplan/constant.js";
|
|
8
|
+
import { ModelFloorplanPlugin as Zm } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
9
|
+
import { MapviewFloorplanPlugin as rp } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
10
|
+
import { TopviewFloorplanPlugin as ip } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
11
|
+
import { PanoFloorplanRadarPlugin as pp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
12
|
+
import { FLOOR_TYPE_MAP as lp, ROOM_FETILE_TYPE_MAP as np, ROOM_TYPE_MAP as ap } from "./floorplan/typings/floorplanServerData.js";
|
|
13
|
+
import { ModelChassisCompassPlugin as up } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
14
|
+
import { ModelEntryDoorGuidePlugin as xp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
15
|
+
import { CameraMovementPlugin as sp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
16
|
+
import { CameraMovementEffect as Mp, Rotation as Tp } from "./CameraMovementPlugin/typing.js";
|
|
17
|
+
import { PanoRulerPlugin as _p } from "./PanoRulerPlugin/Plugin.js";
|
|
18
|
+
import { PanoRulerProPlugin as Ep } from "./PanoRulerProPlugin/index.js";
|
|
19
|
+
import { PanoCompassPlugin as Ip } from "./PanoCompassPlugin/index.js";
|
|
20
|
+
import { PanoMeasurePlugin as Op } from "./PanoMeasurePlugin/index.js";
|
|
21
|
+
import { PanoSpatialTagPlugin as cp } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
22
|
+
import { modelItemLabelPluginServerParams as Dp } from "./ModelItemLabelPlugin/index.js";
|
|
23
|
+
import { ModelTVVideoPlugin as yp } from "./ModelTVVideoPlugin/Plugin.js";
|
|
24
|
+
import { DIRECTION as vp } from "./ModelTVVideoPlugin/typings.js";
|
|
25
|
+
import { itemLabelPluginServerParams as Vp } from "./ItemLabelPlugin/index.js";
|
|
26
|
+
import { PanoDoorLabelPlugin as hp } from "./PanoDoorLabelPlugin/index.js";
|
|
27
|
+
import { GuideLinePlugin as Bp } from "./GuideLinePlugin/index.js";
|
|
28
|
+
import { CruisePlugin as Up } from "./CruisePlugin/index.js";
|
|
29
|
+
import { PanoTagPlugin as jp } from "./PanoTagPlugin/index.js";
|
|
30
|
+
import { Object3DHelperPlugin as qp } from "./Object3DHelperPlugin/index.js";
|
|
31
|
+
import { PanoVideoPlugin as Jp } from "./PanoVideoPlugin/index.js";
|
|
32
|
+
import { index as Qp } from "./shared-utils/index.js";
|
|
33
|
+
import { CSS3DRender as Xp } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
|
+
import { Model as oe } from "./PanoMeasurePlugin/Model/index.js";
|
|
35
|
+
import { default as te } from "./PanoMeasurePlugin/Model/point.js";
|
|
36
|
+
import { default as me } from "./PanoMeasurePlugin/Model/line.js";
|
|
37
|
+
import { Polyline as ee } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
38
|
+
import { default as ne } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
39
|
+
import { DISPLAY_STRATEGY_TYPE as Pe } from "./ModelItemLabelPlugin/typings.js";
|
|
40
|
+
import { ModelItemLabelPlugin as fe } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
41
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as ge } from "./ItemLabelPlugin/typings.js";
|
|
42
|
+
import { Plugin as de } from "./ItemLabelPlugin/Plugin.js";
|
|
43
|
+
import { GuideLineItem$1 as Te } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
44
|
+
import { GuideLineModeItem$1 as _e } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
45
|
+
import { default as Ee } from "./CruisePlugin/Controller.js";
|
|
46
|
+
import { default as Ie, pluginFlag as be } from "./PanoTagPlugin/controller/index.js";
|
|
47
|
+
import { ContentType as Se } from "./PanoTagPlugin/typings/tag/TagData.js";
|
|
48
|
+
import { DimensionType as Ae } from "./PanoTagPlugin/typings/tag/Utils.js";
|
|
49
|
+
import { Object3DHelperController as Ge, PLUGIN as ye } from "./Object3DHelperPlugin/Controller.js";
|
|
50
|
+
import { typings as ve } from "./PanoVideoPlugin/typings/index.js";
|
|
49
51
|
import "./components/PaintBrush/Controller.js";
|
|
50
52
|
import "./components/PaintBrush/utils.js";
|
|
51
53
|
import "./components/PaintBrush/tween.js";
|
|
@@ -58,6 +60,10 @@ import "three";
|
|
|
58
60
|
import "./CSS3DRenderPlugin/Controller.js";
|
|
59
61
|
import "./CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
60
62
|
import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
63
|
+
import "hammerjs";
|
|
64
|
+
import "./shared-utils/isAbsoluteURL.js";
|
|
65
|
+
import "./shared-utils/animationFrame/BetterTween.js";
|
|
66
|
+
import "./shared-utils/animationFrame/index.js";
|
|
61
67
|
import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
62
68
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
63
69
|
import "./CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -134,8 +140,6 @@ import "./shared-utils/three/transformToMeshBasicMaterial.js";
|
|
|
134
140
|
import "./shared-utils/createCanvasTextTexture.js";
|
|
135
141
|
import "./shared-utils/three/transformPositionToVector3.js";
|
|
136
142
|
import "./shared-utils/animationFrame/tween.js";
|
|
137
|
-
import "./shared-utils/animationFrame/index.js";
|
|
138
|
-
import "./shared-utils/animationFrame/BetterTween.js";
|
|
139
143
|
import "./shared-utils/animationFrame/formatRad.js";
|
|
140
144
|
import "./shared-utils/animationFrame/calculateProgress.js";
|
|
141
145
|
import "./shared-utils/math/planimetry.js";
|
|
@@ -151,7 +155,6 @@ import "./shared-utils/three/loadTexture.js";
|
|
|
151
155
|
import "./PanoMeasurePlugin/Controller/index.js";
|
|
152
156
|
import "./PanoMeasurePlugin/Modules/FiveHelper.js";
|
|
153
157
|
import "./PanoMeasurePlugin/Controller/EditController.js";
|
|
154
|
-
import "hammerjs";
|
|
155
158
|
import "./PanoMeasurePlugin/Controller/BaseController.js";
|
|
156
159
|
import "./PanoMeasurePlugin/utils/ironbox.js";
|
|
157
160
|
import "./PanoMeasurePlugin/utils/line.js";
|
|
@@ -209,10 +212,11 @@ import "./PanoDoorLabelPlugin/BaseController.js";
|
|
|
209
212
|
import "./PanoDoorLabelPlugin/DoorLabelItem.js";
|
|
210
213
|
import "./PanoDoorLabelPlugin/utils.js";
|
|
211
214
|
import "./GuideLinePlugin/Controller.js";
|
|
212
|
-
import "./GuideLinePlugin/utils/getLineGeometries.js";
|
|
213
215
|
import "polyline-normals";
|
|
214
|
-
import "
|
|
215
|
-
import "./shared-utils/
|
|
216
|
+
import "object-assign-deep";
|
|
217
|
+
import "./shared-utils/log.js";
|
|
218
|
+
import "./GuideLinePlugin/utils/createLineGeometry.js";
|
|
219
|
+
import "./shared-utils/five/mode.js";
|
|
216
220
|
import "./CruisePlugin/utils/coordinatesAngle.js";
|
|
217
221
|
import "./CruisePlugin/utils/coordinatesToVector.js";
|
|
218
222
|
import "./CruisePlugin/utils/safeCall.js";
|
|
@@ -220,7 +224,6 @@ import "./CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
220
224
|
import "./CruisePlugin/utils/formatRad.js";
|
|
221
225
|
import "./CruisePlugin/utils/linerValue.js";
|
|
222
226
|
import "./CruisePlugin/utils/sleep.js";
|
|
223
|
-
import "object-assign-deep";
|
|
224
227
|
import "./PanoTagPlugin/utils/addDebugPoints.js";
|
|
225
228
|
import "@realsee/five/gltf-loader";
|
|
226
229
|
import "./PanoTagPlugin/utils/tag/tagCheck.js";
|
|
@@ -234,6 +237,7 @@ import "./PanoTagPlugin/controller/TagRender.js";
|
|
|
234
237
|
import "./PanoTagPlugin/controller/TagComputer.js";
|
|
235
238
|
import "./PanoTagPlugin/utils/tagPosition.js";
|
|
236
239
|
import "./PanoTagPlugin/utils/checkRange.js";
|
|
240
|
+
import "./shared-utils/isNil.js";
|
|
237
241
|
import "./PanoTagPlugin/controller/TagUtil.js";
|
|
238
242
|
import "./PanoTagPlugin/tag.config.js";
|
|
239
243
|
import "./PanoTagPlugin/utils/planeNormal.js";
|
|
@@ -349,60 +353,62 @@ import "./shared-utils/three/PointHelper.js";
|
|
|
349
353
|
import "./shared-utils/three/Assets/index.js";
|
|
350
354
|
import "./shared-utils/three/PointDomHelper.js";
|
|
351
355
|
import "./shared-utils/three/FivePointSelector.js";
|
|
352
|
-
console.info("@realsee/dnalogel %cv2.
|
|
356
|
+
console.info("@realsee/dnalogel %cv2.16.0-0", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
353
357
|
export {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
358
|
+
Xp as CSS3DRender,
|
|
359
|
+
jm as CSS3DRenderPlugin,
|
|
360
|
+
Mp as CameraMovementEffect,
|
|
361
|
+
sp as CameraMovementPlugin,
|
|
362
|
+
Se as ContentType,
|
|
363
|
+
Up as CruisePlugin,
|
|
364
|
+
Ee as CruisePluginController,
|
|
365
|
+
vp as DIRECTION,
|
|
366
|
+
Pe as DISPLAY_STRATEGY_TYPE,
|
|
367
|
+
Ae as DimensionType,
|
|
368
|
+
Wm as FLOOR_PLAN_ATTACHED_TO,
|
|
369
|
+
lp as FLOOR_TYPE_MAP,
|
|
370
|
+
Te as GuideLineItem,
|
|
371
|
+
_e as GuideLineModeItem,
|
|
372
|
+
Bp as GuideLinePlugin,
|
|
373
|
+
ge as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
374
|
+
de as ItemLabelPlugin,
|
|
375
|
+
ne as Magnifier,
|
|
376
|
+
rp as MapviewFloorplanPlugin,
|
|
377
|
+
up as ModelChassisCompassPlugin,
|
|
378
|
+
xp as ModelEntryDoorGuidePlugin,
|
|
379
|
+
Zm as ModelFloorplanPlugin,
|
|
380
|
+
fe as ModelItemLabelPlugin,
|
|
381
|
+
Jm as ModelRoomLabelPlugin,
|
|
382
|
+
yp as ModelTVVideoPlugin,
|
|
383
|
+
Um as ModelViewPlugin,
|
|
384
|
+
Ge as Object3DHelperController,
|
|
385
|
+
qp as Object3DHelperPlugin,
|
|
386
|
+
ye as PLUGIN,
|
|
387
|
+
hm as PaintBrush,
|
|
388
|
+
Bm as PaintBrushTypeEnum,
|
|
389
|
+
Ip as PanoCompassPlugin,
|
|
390
|
+
qm as PanoCursorRaycasterPlugin,
|
|
391
|
+
hp as PanoDoorLabelPlugin,
|
|
392
|
+
pp as PanoFloorplanRadarPlugin,
|
|
393
|
+
Op as PanoMeasurePlugin,
|
|
394
|
+
me as PanoMeasurePluginLine,
|
|
395
|
+
oe as PanoMeasurePluginModel,
|
|
396
|
+
te as PanoMeasurePluginPoint,
|
|
397
|
+
ee as PanoMeasurePluginPolyline,
|
|
398
|
+
_p as PanoRulerPlugin,
|
|
399
|
+
Ep as PanoRulerProPlugin,
|
|
400
|
+
cp as PanoSpatialTagPlugin,
|
|
401
|
+
jp as PanoTagPlugin,
|
|
402
|
+
Ie as PanoTagPluginController,
|
|
403
|
+
Jp as PanoVideoPlugin,
|
|
404
|
+
ve as PanoVideoPluginType,
|
|
405
|
+
np as ROOM_FETILE_TYPE_MAP,
|
|
406
|
+
ap as ROOM_TYPE_MAP,
|
|
407
|
+
Tp as Rotation,
|
|
408
|
+
ip as TopviewFloorplanPlugin,
|
|
409
|
+
Qp as Util,
|
|
410
|
+
Vp as itemLabelPluginServerParams,
|
|
411
|
+
Dp as modelItemLabelPluginServerParams,
|
|
412
|
+
Km as modelRoomLabelPluginServerParams,
|
|
413
|
+
be as pluginFlag
|
|
408
414
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mode';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@realsee/five";
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
import { Interval as
|
|
1
|
+
import { Interval as o } from "./math/Interval.js";
|
|
2
2
|
import { Rectangle as r } from "./math/Rectangle.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
3
|
+
import { isPanoramaLike as e, isModelLike as t } from "./five/mode.js";
|
|
4
|
+
import { Magnifier as m } from "./three/Magnifier.js";
|
|
5
|
+
import { getCoordsFromClient as i, getCoordsFromElement as n } from "./three/getCoords.js";
|
|
6
|
+
import { getRaycasterFromFivePointer as p } from "./three/getRaycaster.js";
|
|
7
|
+
import { getIntersectFromRelativePosition as f } from "./three/getIntersect.js";
|
|
8
|
+
import { PointHelper as l } from "./three/PointHelper.js";
|
|
9
|
+
import { PointDomHelper as a } from "./three/PointDomHelper.js";
|
|
10
|
+
import { FivePointSelector as s } from "./three/FivePointSelector.js";
|
|
11
|
+
import { isNil as g, notNil as F } from "./isNil.js";
|
|
12
|
+
import { uuid as P } from "./uuid.js";
|
|
13
|
+
import { isAbsoluteURL as c } from "./isAbsoluteURL.js";
|
|
14
|
+
import { nextFrame as d, requestAnimationFrameInterval as u, getFrameTime as v } from "./animationFrame/index.js";
|
|
15
|
+
import { BetterTween as b, tweenProgress as R } from "./animationFrame/BetterTween.js";
|
|
16
|
+
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
17
|
__proto__: null,
|
|
15
|
-
Interval:
|
|
18
|
+
Interval: o,
|
|
16
19
|
Rectangle: r,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
isPanoramaLike: e,
|
|
21
|
+
isModelLike: t,
|
|
22
|
+
Magnifier: m,
|
|
23
|
+
getCoordsFromClient: i,
|
|
24
|
+
getCoordsFromElement: n,
|
|
25
|
+
getRaycasterFromFivePointer: p,
|
|
26
|
+
getIntersectFromRelativePosition: f,
|
|
27
|
+
PointHelper: l,
|
|
28
|
+
PointDomHelper: a,
|
|
29
|
+
FivePointSelector: s,
|
|
30
|
+
isNil: g,
|
|
31
|
+
notNil: F,
|
|
32
|
+
uuid: P,
|
|
33
|
+
isAbsoluteURL: c,
|
|
34
|
+
BetterTween: b,
|
|
35
|
+
tweenProgress: R,
|
|
36
|
+
nextFrame: d,
|
|
37
|
+
requestAnimationFrameInterval: u,
|
|
38
|
+
getFrameTime: v
|
|
32
39
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
33
40
|
export {
|
|
34
|
-
|
|
41
|
+
O as index
|
|
35
42
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isAbsoluteURL(url: string): boolean;
|
|
@@ -3,8 +3,8 @@ var m = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var n = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as a from "three";
|
|
5
5
|
import * as p from "@tweenjs/tween.js";
|
|
6
|
-
import "hammerjs";
|
|
7
6
|
import "@realsee/five";
|
|
7
|
+
import "hammerjs";
|
|
8
8
|
import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
|
|
9
9
|
import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
|
|
10
10
|
import { BetterTween as u } from "../animationFrame/BetterTween.js";
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.16.0-0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"svelte-carousel": "1.0.22",
|
|
69
69
|
"svelte-preprocess": "^4.10.7",
|
|
70
70
|
"three": "0.117.1",
|
|
71
|
-
"type-fest": "3.
|
|
71
|
+
"type-fest": "3.8.0",
|
|
72
72
|
"typedoc": "^0.23.21",
|
|
73
73
|
"typescript": "^4.9.3",
|
|
74
74
|
"vite": "3.2.3",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
export interface LineGeometriesConfig {
|
|
3
|
-
/** 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示 */
|
|
4
|
-
skipPanoIndexMesh?: boolean;
|
|
5
|
-
unitWidth?: number;
|
|
6
|
-
unitHeight?: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @description: 根据坐标获取平滑曲线
|
|
10
|
-
* @param {Vector3[]} positionList 坐标点数组
|
|
11
|
-
* @param {number} config.unitWidth 宽
|
|
12
|
-
* @param {number} config.unitHeight 高
|
|
13
|
-
* @param {boolean} config.skipPanoIndexMesh 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示
|
|
14
|
-
* @return {THREE.BufferGeometry[]} THREE.BufferGeometry[]
|
|
15
|
-
*/
|
|
16
|
-
export default function getLineGeometries(positionList: THREE.Vector3[], config?: LineGeometriesConfig): THREE.BufferGeometry[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
export interface LineGeometriesConfig {
|
|
3
|
-
/** 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示 */
|
|
4
|
-
skipPanoIndexMesh?: boolean;
|
|
5
|
-
unitWidth?: number;
|
|
6
|
-
unitHeight?: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @description: 根据坐标获取平滑曲线
|
|
10
|
-
* @param {Vector3[]} positionList 坐标点数组
|
|
11
|
-
* @param {number} config.unitWidth 宽
|
|
12
|
-
* @param {number} config.unitHeight 高
|
|
13
|
-
* @param {boolean} config.skipPanoIndexMesh 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示
|
|
14
|
-
* @return {THREE.BufferGeometry[]} THREE.BufferGeometry[]
|
|
15
|
-
*/
|
|
16
|
-
export default function getLineGeometries(positionList: THREE.Vector3[], config?: LineGeometriesConfig): THREE.BufferGeometry[];
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as T from "three";
|
|
2
|
-
import { Vector3 as A } from "three";
|
|
3
|
-
import L from "polyline-normals";
|
|
4
|
-
const O = 2, U = 3, V = 3, F = 2;
|
|
5
|
-
function X(i, r) {
|
|
6
|
-
var w, I, _;
|
|
7
|
-
if (i.length < 2)
|
|
8
|
-
return console.warn("positionList length must be greater than 1"), [];
|
|
9
|
-
const p = (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.5, u = (I = r == null ? void 0 : r.unitHeight) != null ? I : 0.5, R = (_ = r == null ? void 0 : r.skipPanoIndexMesh) != null ? _ : !1, f = new T.CatmullRomCurve3(i, !1, "catmullrom", 1);
|
|
10
|
-
if (R) {
|
|
11
|
-
const E = Math.ceil(f.getLength() / u * 1.5), s = f.getPoints(E), v = [];
|
|
12
|
-
let o = 0;
|
|
13
|
-
const a = i;
|
|
14
|
-
return a.forEach((l, y) => {
|
|
15
|
-
let n = 0, t = 99999999;
|
|
16
|
-
s.forEach((c, e) => {
|
|
17
|
-
const h = c.distanceTo(l);
|
|
18
|
-
h < t && (n = e, t = h);
|
|
19
|
-
});
|
|
20
|
-
const m = s[n + 1], x = m == null ? void 0 : m.distanceTo(l), d = s[n - 1], g = d == null ? void 0 : d.distanceTo(l);
|
|
21
|
-
if (n > o && n - o > 1) {
|
|
22
|
-
let c = n;
|
|
23
|
-
d !== void 0 && g > 0.8 && (c = n + 1), d !== void 0 && g > 0.2 && g < 0.3 ? c = n : t > 0.2 && t < 0.3 && (c = n + 1);
|
|
24
|
-
let e = o;
|
|
25
|
-
if (m !== void 0 && x > 0.2 && x < 0.3 ? e = o + 1 : t > 0.2 && t < 0.3 && (e = o), s[e] && s[e + 1]) {
|
|
26
|
-
const b = a[y - 1];
|
|
27
|
-
if (b)
|
|
28
|
-
if (b.equals(s[e]))
|
|
29
|
-
e += 1;
|
|
30
|
-
else {
|
|
31
|
-
const P = new A().subVectors(s[e + 1], s[e]), M = new A().subVectors(b, s[e]);
|
|
32
|
-
P.angleTo(M) < Math.PI / 2 && (e += 1);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (c < e || c - e <= 1)
|
|
36
|
-
return;
|
|
37
|
-
const h = s.slice(e, c), N = B(h, p, u);
|
|
38
|
-
v.push(N), o = n;
|
|
39
|
-
}
|
|
40
|
-
}), v;
|
|
41
|
-
} else {
|
|
42
|
-
const E = Math.ceil(f.getLength()), s = f.getPoints(E);
|
|
43
|
-
return [B(s, p, u)];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function B(i, r, p) {
|
|
47
|
-
const u = r / 2, R = p / r, f = i.length, w = L(i.map((t) => [t.x, t.z])), _ = (i.length - 1) * O * U, E = 2 * f, s = E * V, v = E * F, o = new Uint32Array(_), a = new Float32Array(s), l = new Float32Array(v);
|
|
48
|
-
i.forEach((t, m) => {
|
|
49
|
-
});
|
|
50
|
-
let y = 0;
|
|
51
|
-
for (let t = 0; t < i.length; t++) {
|
|
52
|
-
const [m, x] = w[t][0], d = i[t], { x: g, y: c, z: e } = d, h = new A(g + m * u, c + 0.05, e + x * u);
|
|
53
|
-
a[t * 6 + 0] = h.x, a[t * 6 + 1] = h.y, a[t * 6 + 2] = h.z;
|
|
54
|
-
const N = new A(g - m * u, c + 0.05, e - x * u);
|
|
55
|
-
a[t * 6 + 3] = N.x, a[t * 6 + 4] = N.y, a[t * 6 + 5] = N.z, y += t > 0 ? i[t - 1].clone().sub(i[t]).length() : 0;
|
|
56
|
-
const b = y / r / R;
|
|
57
|
-
l[t * 4 + 0] = 0, l[t * 4 + 1] = b, l[t * 4 + 2] = 1, l[t * 4 + 3] = b, t !== i.length - 1 && (o[t * 6 + 0] = t * 2 + 0, o[t * 6 + 1] = t * 2 + 2, o[t * 6 + 2] = t * 2 + 1, o[t * 6 + 3] = t * 2 + 2, o[t * 6 + 4] = t * 2 + 3, o[t * 6 + 5] = t * 2 + 1);
|
|
58
|
-
}
|
|
59
|
-
const n = new T.BufferGeometry();
|
|
60
|
-
return n.setAttribute("position", new T.BufferAttribute(a, 3)), n.setAttribute("uv", new T.BufferAttribute(l, 2)), n.setIndex(new T.BufferAttribute(o, 1)), n;
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
X as default
|
|
64
|
-
};
|