@realsee/dnalogel 2.16.0-16 → 2.16.0-17
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/GuideLineItem.d.ts +4 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -8
- package/dist/GuideLinePlugin/typing.d.ts +6 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +445 -452
- package/dist/index.umd.js +4 -4
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +50 -15
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +28 -28
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- 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/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/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +13 -13
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +39 -7
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/GuideLinePlugin/GuideLineItem/index.js +67 -57
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +4 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +39 -55
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -8
- package/libs/GuideLinePlugin/typing.d.ts +6 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var C = Object.defineProperty, y = Object.defineProperties;
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var v = Object.getOwnPropertySymbols;
|
|
4
|
-
var w = Object.prototype.hasOwnProperty,
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var m = (o, e, i) => e in o ? C(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, u = (o, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
w.call(e, i) && m(o, i, e[i]);
|
|
8
8
|
if (v)
|
|
9
9
|
for (var i of v(e))
|
|
10
|
-
|
|
10
|
+
T.call(e, i) && m(o, i, e[i]);
|
|
11
11
|
return o;
|
|
12
12
|
}, g = (o, e) => y(o, k(e));
|
|
13
13
|
var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
|
|
14
|
-
import * as
|
|
15
|
-
import { logWarning as
|
|
14
|
+
import * as h from "three";
|
|
15
|
+
import { logWarning as U, logError as V } from "../../shared-utils/log.js";
|
|
16
16
|
import { createLineGeometry as x } from "../utils/createLineGeometry.js";
|
|
17
|
-
import { isPanoramaLike as
|
|
17
|
+
import { isPanoramaLike as _, isModelLike as L } 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 O, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as P } from "../../shared-utils/three/loadTexture.js";
|
|
25
25
|
import b from "../../PanoTagPlugin/controller/index.js";
|
|
26
26
|
import G from "../Components/Tag.js";
|
|
27
27
|
import { filterAdjacentDistinct as M } from "../utils/index.js";
|
|
@@ -36,7 +36,7 @@ const A = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), B = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -120,7 +120,7 @@ const A = (
|
|
|
120
120
|
}
|
|
121
121
|
`
|
|
122
122
|
);
|
|
123
|
-
class
|
|
123
|
+
class S {
|
|
124
124
|
constructor(e, i) {
|
|
125
125
|
t(this, "startTagContainer");
|
|
126
126
|
t(this, "endTagContainer");
|
|
@@ -146,27 +146,11 @@ class B {
|
|
|
146
146
|
t(this, "plugin");
|
|
147
147
|
t(this, "textureHasLoaded", !1);
|
|
148
148
|
t(this, "disposed", !1);
|
|
149
|
-
t(this, "flowAnime", new
|
|
150
|
-
t(this, "flickerAnime",
|
|
149
|
+
t(this, "flowAnime", new O({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
|
|
150
|
+
t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
151
151
|
t(this, "dispose", () => {
|
|
152
152
|
var e, i;
|
|
153
|
-
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.
|
|
154
|
-
});
|
|
155
|
-
/** 当设置 GuideLinePLugin 展示 */
|
|
156
|
-
t(this, "onPluginShow", () => {
|
|
157
|
-
this.updateVisible();
|
|
158
|
-
});
|
|
159
|
-
/** 当设置 GuideLinePLugin 隐藏 */
|
|
160
|
-
t(this, "onPluginHide", () => {
|
|
161
|
-
this.updateVisible();
|
|
162
|
-
});
|
|
163
|
-
/** 当设置 GuideLinePLugin 开启 */
|
|
164
|
-
t(this, "onPluginEnable", () => {
|
|
165
|
-
this.updateVisible();
|
|
166
|
-
});
|
|
167
|
-
/** 当设置 GuideLinePLugin 关闭 */
|
|
168
|
-
t(this, "onPluginDisable", () => {
|
|
169
|
-
this.updateVisible();
|
|
153
|
+
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
|
|
170
154
|
});
|
|
171
155
|
/** 开始走点动画 */
|
|
172
156
|
t(this, "onWalkAnimationStart", () => {
|
|
@@ -178,7 +162,12 @@ class B {
|
|
|
178
162
|
});
|
|
179
163
|
/** 模型状态变更 */
|
|
180
164
|
t(this, "onFiveModeChange", (e) => {
|
|
181
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
165
|
+
this.modeVisible = this.mode === "panorama" ? _(e) : L(e), this.updateVisible();
|
|
166
|
+
});
|
|
167
|
+
/** 更新可见性 */
|
|
168
|
+
t(this, "updateVisible", () => {
|
|
169
|
+
const e = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
|
|
170
|
+
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
182
171
|
});
|
|
183
172
|
t(this, "onFlowAnimeUpdate", (e) => {
|
|
184
173
|
const { progress: i } = e;
|
|
@@ -189,21 +178,21 @@ class B {
|
|
|
189
178
|
const { progress: i } = e, r = 1 - i;
|
|
190
179
|
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
|
|
191
180
|
});
|
|
192
|
-
t(this, "logWarning", (e) =>
|
|
193
|
-
t(this, "logError", (e) =>
|
|
181
|
+
t(this, "logWarning", (e) => U("GuideLineModeItem: ", e));
|
|
182
|
+
t(this, "logError", (e) => V("GuideLineModeItem: ", e));
|
|
194
183
|
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new b(this.five) }, this.endTagContainer = { tag: null, plugin: new b(this.five) };
|
|
195
|
-
const r = new
|
|
184
|
+
const r = new h.BufferGeometry(), a = new h.ShaderMaterial({
|
|
196
185
|
vertexShader: A,
|
|
197
|
-
fragmentShader:
|
|
186
|
+
fragmentShader: B,
|
|
198
187
|
transparent: !0,
|
|
199
188
|
uniforms: {
|
|
200
189
|
map: { value: null },
|
|
201
190
|
useMapColor: { value: 0 },
|
|
202
|
-
mapColor: { value: new
|
|
191
|
+
mapColor: { value: new h.Color() },
|
|
203
192
|
mapOpacity: { value: 1 },
|
|
204
|
-
backgroundColor: { value: new
|
|
193
|
+
backgroundColor: { value: new h.Color() },
|
|
205
194
|
backgroundOpacity: { value: 0 },
|
|
206
|
-
borderColor: { value: new
|
|
195
|
+
borderColor: { value: new h.Color() },
|
|
207
196
|
borderOpacity: { value: 0 },
|
|
208
197
|
opacity: { value: 1 },
|
|
209
198
|
flicker: { value: 1 },
|
|
@@ -211,7 +200,7 @@ class B {
|
|
|
211
200
|
vOffset: { value: 0 }
|
|
212
201
|
}
|
|
213
202
|
});
|
|
214
|
-
this.mesh = new
|
|
203
|
+
this.mesh = new h.Mesh(r, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), 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.onFiveModeChange(this.five.getCurrentState().mode);
|
|
215
204
|
}
|
|
216
205
|
get panoGroup() {
|
|
217
206
|
return this._panoGroup;
|
|
@@ -261,13 +250,13 @@ class B {
|
|
|
261
250
|
return this.logError("disposed");
|
|
262
251
|
const r = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, a = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (c = i == null ? void 0 : i.unit_length) != null ? c : this.unitLength;
|
|
263
252
|
this.path = e, this.scale = r, this.width = a, this.unitLength = s;
|
|
264
|
-
const { geometry: n, maxU:
|
|
253
|
+
const { geometry: n, maxU: l } = x({
|
|
265
254
|
path: e,
|
|
266
255
|
width: a * r,
|
|
267
256
|
unitLength: s * r,
|
|
268
257
|
skipPositions: this.skippedPositions
|
|
269
258
|
});
|
|
270
|
-
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value =
|
|
259
|
+
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
|
|
271
260
|
}
|
|
272
261
|
/** 设置线条材质 */
|
|
273
262
|
setMartial(e) {
|
|
@@ -280,13 +269,13 @@ class B {
|
|
|
280
269
|
setColor(e) {
|
|
281
270
|
if (this.disposed)
|
|
282
271
|
return this.logError("disposed");
|
|
283
|
-
e && (this.mesh.material.uniforms.mapColor.value = new
|
|
272
|
+
e && (this.mesh.material.uniforms.mapColor.value = new h.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
284
273
|
}
|
|
285
274
|
/** 设置边框 */
|
|
286
275
|
setBorderColor(e) {
|
|
287
276
|
if (this.disposed)
|
|
288
277
|
return this.logError("disposed");
|
|
289
|
-
this.mesh.material.uniforms.borderColor.value = new
|
|
278
|
+
this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
290
279
|
}
|
|
291
280
|
/** 设置边框透明度 */
|
|
292
281
|
setBorderOpacity(e) {
|
|
@@ -298,7 +287,7 @@ class B {
|
|
|
298
287
|
setBackgroundColor(e) {
|
|
299
288
|
if (this.disposed)
|
|
300
289
|
return this.logError("disposed");
|
|
301
|
-
|
|
290
|
+
this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
302
291
|
}
|
|
303
292
|
/** 设置背景透明度 */
|
|
304
293
|
setBackgroundOpacity(e) {
|
|
@@ -322,8 +311,8 @@ class B {
|
|
|
322
311
|
setTextureUrl(e) {
|
|
323
312
|
if (this.disposed)
|
|
324
313
|
return this.logError("disposed");
|
|
325
|
-
this.textureUrl = e,
|
|
326
|
-
this.disposed || this.textureUrl === e && (i.wrapT =
|
|
314
|
+
this.textureUrl = e, P(e).then((i) => {
|
|
315
|
+
this.disposed || this.textureUrl === e && (i.wrapT = h.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
327
316
|
});
|
|
328
317
|
}
|
|
329
318
|
setStartTag(e) {
|
|
@@ -349,20 +338,15 @@ class B {
|
|
|
349
338
|
s.tag = a, f(a) && (s.tag.element = (n) => {
|
|
350
339
|
var d;
|
|
351
340
|
(d = s.app) == null || d.$destroy();
|
|
352
|
-
const
|
|
353
|
-
return s.app =
|
|
341
|
+
const l = new G({ target: n, intro: !0, props: a.data });
|
|
342
|
+
return s.app = l, () => l.$destroy();
|
|
354
343
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
355
344
|
}
|
|
356
|
-
/** 更新可见性 */
|
|
357
|
-
updateVisible() {
|
|
358
|
-
const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
|
|
359
|
-
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
360
|
-
}
|
|
361
345
|
doShow() {
|
|
362
|
-
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.five.needsRender = !0;
|
|
346
|
+
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
363
347
|
}
|
|
364
348
|
doHide() {
|
|
365
|
-
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
349
|
+
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
366
350
|
}
|
|
367
351
|
/** 通过 panoIndex 数组计算路径 */
|
|
368
352
|
getPathFromPanoGroup(e, i, r) {
|
|
@@ -377,9 +361,9 @@ function f(o) {
|
|
|
377
361
|
}
|
|
378
362
|
const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
379
363
|
__proto__: null,
|
|
380
|
-
GuideLineModeItem:
|
|
364
|
+
GuideLineModeItem: S
|
|
381
365
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
382
366
|
export {
|
|
383
|
-
|
|
367
|
+
S as GuideLineModeItem,
|
|
384
368
|
Z as GuideLineModeItem$1
|
|
385
369
|
};
|
|
@@ -85,14 +85,6 @@ declare class GuideLineModeItem {
|
|
|
85
85
|
/** 闪烁 */
|
|
86
86
|
flicker(): void;
|
|
87
87
|
private setTag;
|
|
88
|
-
/** 当设置 GuideLinePLugin 展示 */
|
|
89
|
-
private onPluginShow;
|
|
90
|
-
/** 当设置 GuideLinePLugin 隐藏 */
|
|
91
|
-
private onPluginHide;
|
|
92
|
-
/** 当设置 GuideLinePLugin 开启 */
|
|
93
|
-
private onPluginEnable;
|
|
94
|
-
/** 当设置 GuideLinePLugin 关闭 */
|
|
95
|
-
private onPluginDisable;
|
|
96
88
|
/** 开始走点动画 */
|
|
97
89
|
private onWalkAnimationStart;
|
|
98
90
|
/** 结束走点动画 */
|
|
@@ -41,6 +41,12 @@ export interface EventMap extends BasePluginWithData.EventMap<PluginState, Plugi
|
|
|
41
41
|
}) => void;
|
|
42
42
|
}
|
|
43
43
|
export type GuideLineItemEventMap = {
|
|
44
|
+
show: (options: {
|
|
45
|
+
userAction: boolean;
|
|
46
|
+
}) => void;
|
|
47
|
+
hide: (options: {
|
|
48
|
+
userAction: boolean;
|
|
49
|
+
}) => void;
|
|
44
50
|
walkStart: (options: {
|
|
45
51
|
userAction: boolean;
|
|
46
52
|
}) => void;
|
|
@@ -188,8 +188,7 @@ class be extends S {
|
|
|
188
188
|
* @description: 获取是否展开
|
|
189
189
|
*/
|
|
190
190
|
getUnfoldedByCamera(e) {
|
|
191
|
-
|
|
192
|
-
return console.log("🐶 ==> visible:", i), i ? (() => {
|
|
191
|
+
return this.getVisible(e) ? (() => {
|
|
193
192
|
var l;
|
|
194
193
|
const s = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
|
|
195
194
|
if (t) {
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -363,7 +363,7 @@ import "./shared-utils/three/PointHelper.js";
|
|
|
363
363
|
import "./shared-utils/three/Assets/index.js";
|
|
364
364
|
import "./shared-utils/three/PointDomHelper.js";
|
|
365
365
|
import "./shared-utils/three/FivePointSelector.js";
|
|
366
|
-
console.info("@realsee/dnalogel %cv2.16.0-
|
|
366
|
+
console.info("@realsee/dnalogel %cv2.16.0-17", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
367
367
|
export {
|
|
368
368
|
le as CSS3DRender,
|
|
369
369
|
Zm as CSS3DRenderPlugin,
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
9
9
|
"description": "如视 VR 看房插件合集",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "2.16.0-
|
|
11
|
+
"version": "2.16.0-17",
|
|
12
12
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|