@realsee/dnalogel 3.12.7 → 3.14.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/GuideLinePlugin/GuideLineModeItem.d.ts +5 -0
- package/dist/GuideLinePlugin/typing.d.ts +13 -0
- package/dist/index.cjs.js +25 -7
- package/dist/index.js +41 -8
- package/dist/index.umd.js +25 -7
- package/docs/assets/highlight.css +9 -2
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +73 -40
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +39 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +41 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +41 -7
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +102 -69
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +5 -0
- package/libs/GuideLinePlugin/typing.d.ts +13 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/loadTexture.js +2 -2
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var P = Object.defineProperty, V = Object.defineProperties;
|
|
2
2
|
var T = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var v = (h, e, t) => e in h ? P(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, d = (h, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
U.call(e, t) && v(h, t, e[t]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var t of k(e))
|
|
10
|
-
|
|
10
|
+
x.call(e, t) && v(h, t, e[t]);
|
|
11
11
|
return h;
|
|
12
12
|
}, p = (h, e) => V(h, T(e));
|
|
13
13
|
var i = (h, e, t) => (v(h, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import * as n from "three";
|
|
15
|
-
import { logWarning as
|
|
16
|
-
import { createLineGeometry as
|
|
17
|
-
import { isPanoramaLike as
|
|
15
|
+
import { logWarning as F, logError as L } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as S } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as _, isModelLike as O } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { BetterTween as
|
|
24
|
-
import { loadTexture as
|
|
23
|
+
import { BetterTween as M, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as A } from "../../shared-utils/three/loadTexture.js";
|
|
25
25
|
import w from "../../PanoTagPlugin/controller/index.js";
|
|
26
|
-
import
|
|
26
|
+
import G from "../Components/Tag.js";
|
|
27
27
|
import { filterAdjacentDistinct as B } from "../utils/index.js";
|
|
28
|
-
import { objectAssignDeepExports as
|
|
29
|
-
const
|
|
28
|
+
import { objectAssignDeepExports as W } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const I = (
|
|
30
30
|
/* glsl */
|
|
31
31
|
`
|
|
32
32
|
varying vec2 vUv;
|
|
@@ -36,7 +36,7 @@ const R = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), R = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -53,8 +53,12 @@ const R = (
|
|
|
53
53
|
uniform vec3 borderColor;
|
|
54
54
|
// 边框透明度
|
|
55
55
|
uniform float borderOpacity;
|
|
56
|
+
// 边框宽度
|
|
57
|
+
uniform float borderWidth;
|
|
56
58
|
// 背景透明度
|
|
57
59
|
uniform float backgroundOpacity;
|
|
60
|
+
// @link https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
|
|
61
|
+
uniform int backgroundClip;
|
|
58
62
|
// 整体透明度
|
|
59
63
|
uniform float opacity;
|
|
60
64
|
// 最大 U 值
|
|
@@ -97,18 +101,32 @@ const R = (
|
|
|
97
101
|
|
|
98
102
|
vec4 getBorder() {
|
|
99
103
|
float u = vUv.x;
|
|
100
|
-
|
|
101
|
-
if (u <= borderSize || u >= 1.0 - borderSize) {
|
|
104
|
+
if (u <= borderWidth || u >= 1.0 - borderWidth) {
|
|
102
105
|
return vec4(borderColor, borderOpacity);
|
|
103
106
|
}
|
|
104
107
|
return vec4(0.0, 0.0, 0.0, 0.0);
|
|
105
108
|
}
|
|
106
109
|
|
|
110
|
+
vec4 getBackground() {
|
|
111
|
+
// border-box
|
|
112
|
+
if (backgroundClip == 0) {
|
|
113
|
+
return vec4(backgroundColor, backgroundOpacity);
|
|
114
|
+
} else {
|
|
115
|
+
// padding-box
|
|
116
|
+
float u = vUv.x;
|
|
117
|
+
if (u > borderWidth && u < 1.0 - borderWidth) {
|
|
118
|
+
return vec4(backgroundColor, backgroundOpacity);
|
|
119
|
+
}
|
|
120
|
+
return vec4(0.0, 0.0, 0.0, 0.0);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
107
124
|
void main() {
|
|
108
125
|
vec4 image = getImage();
|
|
109
126
|
vec4 border = getBorder();
|
|
127
|
+
vec4 background = getBackground();
|
|
110
128
|
// 设置背景颜色
|
|
111
|
-
gl_FragColor =
|
|
129
|
+
gl_FragColor = background;
|
|
112
130
|
// 混合颜色和背景
|
|
113
131
|
gl_FragColor = mix(gl_FragColor, image, image.a);
|
|
114
132
|
// 混合边框
|
|
@@ -155,8 +173,8 @@ class N {
|
|
|
155
173
|
i(this, "plugin");
|
|
156
174
|
i(this, "textureHasLoaded", !1);
|
|
157
175
|
i(this, "disposed", !1);
|
|
158
|
-
i(this, "flowAnime", new
|
|
159
|
-
i(this, "flickerAnime",
|
|
176
|
+
i(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
177
|
+
i(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
160
178
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
161
179
|
i(this, "cacheLengths", []);
|
|
162
180
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
@@ -175,7 +193,7 @@ class N {
|
|
|
175
193
|
});
|
|
176
194
|
/** 模型状态变更 */
|
|
177
195
|
i(this, "onFiveModeChange", (e) => {
|
|
178
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
196
|
+
this.modeVisible = this.mode === "panorama" ? _(e) : O(e), this.updateVisible();
|
|
179
197
|
});
|
|
180
198
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
181
199
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -190,21 +208,21 @@ class N {
|
|
|
190
208
|
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
191
209
|
});
|
|
192
210
|
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
193
|
-
var
|
|
194
|
-
const { progress: t } = e,
|
|
195
|
-
this.mesh.material.uniforms.flicker.value =
|
|
196
|
-
opacity:
|
|
211
|
+
var r, o, a, l;
|
|
212
|
+
const { progress: t } = e, s = 1 - t;
|
|
213
|
+
this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(d({}, this.startTagContainer.tag.data), {
|
|
214
|
+
opacity: s,
|
|
197
215
|
name: this.name,
|
|
198
|
-
distance: Math.round((o = (
|
|
199
|
-
}))), this.endTagContainer.tag &&
|
|
216
|
+
distance: Math.round((o = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? o : 0)
|
|
217
|
+
}))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((l = this.endTagContainer.app) == null || l.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
|
|
200
218
|
});
|
|
201
|
-
i(this, "logWarning", (e) =>
|
|
202
|
-
i(this, "logError", (e) =>
|
|
219
|
+
i(this, "logWarning", (e) => F("GuideLineModeItem: ", e));
|
|
220
|
+
i(this, "logError", (e) => L("GuideLineModeItem: ", e));
|
|
203
221
|
var o, a;
|
|
204
222
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new w(this.five) }, this.endTagContainer = { tag: null, plugin: new w(this.five) };
|
|
205
|
-
const
|
|
206
|
-
vertexShader:
|
|
207
|
-
fragmentShader:
|
|
223
|
+
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
224
|
+
vertexShader: I,
|
|
225
|
+
fragmentShader: R,
|
|
208
226
|
transparent: !0,
|
|
209
227
|
uniforms: {
|
|
210
228
|
map: { value: null },
|
|
@@ -215,13 +233,15 @@ class N {
|
|
|
215
233
|
backgroundOpacity: { value: 0 },
|
|
216
234
|
borderColor: { value: new n.Color() },
|
|
217
235
|
borderOpacity: { value: 0 },
|
|
236
|
+
backgroundClip: { value: 0 },
|
|
237
|
+
borderWidth: { value: 0.05 },
|
|
218
238
|
opacity: { value: 1 },
|
|
219
239
|
flicker: { value: 1 },
|
|
220
240
|
maxU: { value: 0 },
|
|
221
241
|
vOffset: { value: 0 }
|
|
222
242
|
}
|
|
223
243
|
});
|
|
224
|
-
this.mesh = new n.Mesh(
|
|
244
|
+
this.mesh = new n.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (o = this.five.model) == null ? void 0 : o.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
225
245
|
}
|
|
226
246
|
get panoGroup() {
|
|
227
247
|
return this._panoGroup;
|
|
@@ -268,25 +288,25 @@ class N {
|
|
|
268
288
|
return this.logError("disposed");
|
|
269
289
|
if (!this.five.work)
|
|
270
290
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
271
|
-
const
|
|
272
|
-
if (this._panoGroup =
|
|
273
|
-
const o = t.skipPanoGroup ?
|
|
291
|
+
const s = B(e);
|
|
292
|
+
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
293
|
+
const o = t.skipPanoGroup ? s.map((a) => this.plugin.workUtils.getObserverStandingPosition(a)) : null;
|
|
274
294
|
this.skippedPositions = o;
|
|
275
295
|
}
|
|
276
|
-
const
|
|
277
|
-
this.path =
|
|
296
|
+
const r = this.getPathFromPanoGroup(s, this.five.work, t);
|
|
297
|
+
this.path = r, this.setGeometryByPath(r, t);
|
|
278
298
|
}
|
|
279
299
|
/** 通过路径设置线条形状 */
|
|
280
300
|
setGeometryByPath(e, t) {
|
|
281
|
-
var c,
|
|
301
|
+
var c, y, C;
|
|
282
302
|
if (this.disposed)
|
|
283
303
|
return this.logError("disposed");
|
|
284
|
-
const
|
|
285
|
-
this.scale =
|
|
286
|
-
const { geometry: a, maxU: l, curvePath: u, curvePoints: g } =
|
|
304
|
+
const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
|
|
305
|
+
this.scale = s, this.width = r, this.unitLength = o;
|
|
306
|
+
const { geometry: a, maxU: l, curvePath: u, curvePoints: g } = S({
|
|
287
307
|
path: e,
|
|
288
|
-
width:
|
|
289
|
-
unitLength: o *
|
|
308
|
+
width: r * s,
|
|
309
|
+
unitLength: o * s,
|
|
290
310
|
skipPositions: this.skippedPositions
|
|
291
311
|
});
|
|
292
312
|
this._curvePath = u, this._curvePoints = g, this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
|
|
@@ -295,28 +315,28 @@ class N {
|
|
|
295
315
|
}
|
|
296
316
|
/** 设置线条材质 */
|
|
297
317
|
setMartial(e) {
|
|
298
|
-
var
|
|
318
|
+
var s;
|
|
299
319
|
if (this.disposed)
|
|
300
320
|
return this.logError("disposed");
|
|
301
|
-
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((
|
|
321
|
+
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((s = e == null ? void 0 : e.texture) == null ? void 0 : s.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
|
|
302
322
|
const t = d(d({}, this.materialStyle), e);
|
|
303
323
|
this.materialStyle = t;
|
|
304
324
|
}
|
|
305
325
|
/** 设置模型状态 */
|
|
306
326
|
setMeshStyle(e) {
|
|
307
327
|
if (e != null && e.translate) {
|
|
308
|
-
const
|
|
309
|
-
o.y += this.heightOffset,
|
|
328
|
+
const r = new n.Vector3(), o = new n.Vector3().fromArray(e.translate);
|
|
329
|
+
o.y += this.heightOffset, r.add(o), this.mesh.position.copy(r), s(this.startTagContainer, o), s(this.endTagContainer, o);
|
|
310
330
|
}
|
|
311
331
|
const t = d(d({}, this.meshStyle), e);
|
|
312
332
|
this.meshStyle = t;
|
|
313
|
-
function r
|
|
314
|
-
if (!
|
|
333
|
+
function s(r, o) {
|
|
334
|
+
if (!r.tag)
|
|
315
335
|
return;
|
|
316
|
-
const a = new n.Vector3().fromArray(
|
|
336
|
+
const a = new n.Vector3().fromArray(r.tag.position);
|
|
317
337
|
a.add(o);
|
|
318
338
|
const l = a.toArray();
|
|
319
|
-
|
|
339
|
+
r.plugin.changeTagById(r.tag.id, { position: l });
|
|
320
340
|
}
|
|
321
341
|
}
|
|
322
342
|
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
@@ -342,6 +362,19 @@ class N {
|
|
|
342
362
|
return this.logError("disposed");
|
|
343
363
|
this.mesh.material.uniforms.borderOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
344
364
|
}
|
|
365
|
+
setBackgroundClip(e) {
|
|
366
|
+
if (this.disposed)
|
|
367
|
+
return this.logError("disposed");
|
|
368
|
+
this.mesh.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* @description: 设置边框宽度
|
|
372
|
+
*/
|
|
373
|
+
setBorderWidth(e) {
|
|
374
|
+
if (this.disposed)
|
|
375
|
+
return this.logError("disposed");
|
|
376
|
+
this.mesh.material.uniforms.borderWidth.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
377
|
+
}
|
|
345
378
|
/** 设置背景颜色 */
|
|
346
379
|
setBackgroundColor(e) {
|
|
347
380
|
if (this.disposed)
|
|
@@ -370,15 +403,15 @@ class N {
|
|
|
370
403
|
setTextureUrl(e) {
|
|
371
404
|
if (this.disposed)
|
|
372
405
|
return this.logError("disposed");
|
|
373
|
-
this.textureUrl = e,
|
|
406
|
+
this.textureUrl = e, A(e).then((t) => {
|
|
374
407
|
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
375
408
|
});
|
|
376
409
|
}
|
|
377
410
|
setVisibleFloorIndexes(e) {
|
|
378
|
-
var t,
|
|
411
|
+
var t, s;
|
|
379
412
|
if (this.disposed)
|
|
380
413
|
return this.logError("disposed");
|
|
381
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
414
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
|
|
382
415
|
}
|
|
383
416
|
setStartTag(e) {
|
|
384
417
|
this.setTag("start", e);
|
|
@@ -405,39 +438,39 @@ class N {
|
|
|
405
438
|
var u;
|
|
406
439
|
if (!this.curvePoints || !this.curvePath)
|
|
407
440
|
return [];
|
|
408
|
-
const e = this.curvePoints.length, t = this.curvePath.getLength(),
|
|
441
|
+
const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s, o = (u = this.curvePath.getLengths(s)) != null ? u : [], a = [];
|
|
409
442
|
let l = 0;
|
|
410
443
|
for (let g = 0; g < e; g++) {
|
|
411
444
|
const m = this.curvePoints[g], f = this.plugin.workUtils.getObserverStandingPosition(l);
|
|
412
445
|
if (!f)
|
|
413
446
|
break;
|
|
414
|
-
f.clone().setY(0).distanceTo(m.clone().setY(0)) <
|
|
447
|
+
f.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (a.push(o[g]), l += 1);
|
|
415
448
|
}
|
|
416
449
|
return a;
|
|
417
450
|
}
|
|
418
451
|
setTag(e, t) {
|
|
419
|
-
const
|
|
452
|
+
const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
420
453
|
if (!(t != null && t.data))
|
|
421
|
-
return
|
|
422
|
-
const a =
|
|
454
|
+
return r.plugin.clearTags();
|
|
455
|
+
const a = W({}, {
|
|
423
456
|
contentType: "Custom",
|
|
424
457
|
stickType: "2DPoint",
|
|
425
458
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
426
459
|
style: { point: { enabled: !1 } },
|
|
427
460
|
data: {}
|
|
428
461
|
}, t);
|
|
429
|
-
|
|
462
|
+
r.tag = a, b(a) && (r.tag.element = (u) => {
|
|
430
463
|
var f, c;
|
|
431
|
-
(f =
|
|
432
|
-
const g = e === "start" ? p(d({}, a.data), { name: this.name, distance: Math.round((c =
|
|
433
|
-
return
|
|
434
|
-
}),
|
|
464
|
+
(f = r.app) == null || f.$destroy();
|
|
465
|
+
const g = e === "start" ? p(d({}, a.data), { name: this.name, distance: Math.round((c = s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : a.data, m = new G({ target: u, intro: !0, props: g });
|
|
466
|
+
return r.app = m, () => m.$destroy();
|
|
467
|
+
}), r.plugin.load({ tagList: [r.tag] });
|
|
435
468
|
const l = this.meshStyle.translate;
|
|
436
469
|
if (l && a.position) {
|
|
437
470
|
const u = new n.Vector3().fromArray(a.position), g = new n.Vector3().fromArray(l);
|
|
438
471
|
u.add(g), u.y += this.heightOffset;
|
|
439
472
|
const m = u.toArray();
|
|
440
|
-
|
|
473
|
+
r.plugin.changeTagById(r.tag.id, { position: m });
|
|
441
474
|
}
|
|
442
475
|
}
|
|
443
476
|
doShow() {
|
|
@@ -447,21 +480,21 @@ class N {
|
|
|
447
480
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
448
481
|
}
|
|
449
482
|
/** 通过 panoIndex 数组计算路径 */
|
|
450
|
-
getPathFromPanoGroup(e, t,
|
|
483
|
+
getPathFromPanoGroup(e, t, s) {
|
|
451
484
|
if (e.length < 2)
|
|
452
485
|
return [];
|
|
453
|
-
const
|
|
454
|
-
return [d({ type: "CatmullRomCurve3", points:
|
|
486
|
+
const r = e.map((o) => this.plugin.workUtils.getObserverStandingPosition(o).toArray());
|
|
487
|
+
return [d({ type: "CatmullRomCurve3", points: r }, s)];
|
|
455
488
|
}
|
|
456
489
|
}
|
|
457
|
-
function
|
|
490
|
+
function b(h) {
|
|
458
491
|
return h.contentType === "Custom";
|
|
459
492
|
}
|
|
460
|
-
const
|
|
493
|
+
const re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
461
494
|
__proto__: null,
|
|
462
495
|
GuideLineModeItem: N
|
|
463
496
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
464
497
|
export {
|
|
465
498
|
N as GuideLineModeItem,
|
|
466
|
-
|
|
499
|
+
re as GuideLineModeItem$1
|
|
467
500
|
};
|
|
@@ -93,6 +93,11 @@ declare class GuideLineModeItem {
|
|
|
93
93
|
setBorderColor(color: string): void;
|
|
94
94
|
/** 设置边框透明度 */
|
|
95
95
|
setBorderOpacity(opacity: number): void;
|
|
96
|
+
setBackgroundClip(backgroundClip: PluginType.GuideLineMaterialStyle['background_clip']): void;
|
|
97
|
+
/**
|
|
98
|
+
* @description: 设置边框宽度
|
|
99
|
+
*/
|
|
100
|
+
setBorderWidth(width: number): void;
|
|
96
101
|
/** 设置背景颜色 */
|
|
97
102
|
setBackgroundColor(color: string): void;
|
|
98
103
|
/** 设置背景透明度 */
|
|
@@ -124,6 +124,19 @@ export interface GuideLineMaterialStyle {
|
|
|
124
124
|
border_color?: string;
|
|
125
125
|
/** 边框透明度 */
|
|
126
126
|
border_opacity?: number;
|
|
127
|
+
/**
|
|
128
|
+
* @description: 背景裁剪
|
|
129
|
+
* @param border-box 背景在边框下方
|
|
130
|
+
* @param padding-box 背景不在边框下方
|
|
131
|
+
* @default border-box
|
|
132
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
|
|
133
|
+
*/
|
|
134
|
+
background_clip?: 'border-box' | 'padding-box';
|
|
135
|
+
/**
|
|
136
|
+
* @description 边框宽度
|
|
137
|
+
* @default 0.05
|
|
138
|
+
*/
|
|
139
|
+
border_width?: number;
|
|
127
140
|
/** 透明度 */
|
|
128
141
|
opacity?: number;
|
|
129
142
|
/** 贴图 */
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.14.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -20,14 +20,14 @@ function p(n) {
|
|
|
20
20
|
return i(this, null, function* () {
|
|
21
21
|
return new Promise((e, t) => {
|
|
22
22
|
m.load(n, e, void 0, t);
|
|
23
|
-
}).then((e) => (e.encoding = a.sRGBEncoding, e));
|
|
23
|
+
}).then((e) => (e.encoding = a.sRGBEncoding, e.minFilter = a.NearestFilter, e.magFilter = a.NearestFilter, e));
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function u(n) {
|
|
27
27
|
return i(this, null, function* () {
|
|
28
28
|
return p(n).then((e) => {
|
|
29
29
|
const t = n.startsWith("data:") ? n.includes("png") : new URL(n, location.href).pathname.toLowerCase().endsWith(".png");
|
|
30
|
-
return
|
|
30
|
+
return { texture: e, transparent: t };
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
}
|