@realsee/dnalogel 2.16.0-13 → 2.16.0-15
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 +10 -5
- package/dist/GuideLinePlugin/typing.d.ts +7 -3
- package/dist/index.cjs.js +74 -58
- package/dist/index.js +2521 -2473
- package/dist/index.umd.js +76 -60
- 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 +15 -15
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +62 -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 +15 -8
- 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 +31 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +38 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +18 -18
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +38 -18
- 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 +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.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/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Components/Tag.js +33 -22
- package/libs/GuideLinePlugin/Controller.js +18 -17
- package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -54
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +115 -78
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -5
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/typing.d.ts +7 -3
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,118 +1,117 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var d = (o, e, t) => e in o ?
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (o, e, t) => e in o ? L(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, h = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
S.call(e, t) && d(o, t, e[t]);
|
|
7
7
|
if (w)
|
|
8
8
|
for (var t of w(e))
|
|
9
|
-
|
|
9
|
+
_.call(e, t) && d(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
12
|
var s = (o, e, t) => (d(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
-
var
|
|
14
|
-
var l = (
|
|
13
|
+
var c = (o, e, t) => new Promise((r, n) => {
|
|
14
|
+
var l = (a) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
n(
|
|
16
|
+
i(t.next(a));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
n(p);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, m = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
n(
|
|
22
|
+
i(t.throw(a));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
n(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, i = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(l, m);
|
|
27
|
+
i((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
class E {
|
|
29
|
+
import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
|
|
30
|
+
import P from "../../CruisePlugin/Controller.js";
|
|
31
|
+
import { logError as x } from "../../shared-utils/log.js";
|
|
32
|
+
import { to as k } from "../../shared-utils/to.js";
|
|
33
|
+
import { Subscribe as v } from "@realsee/five";
|
|
34
|
+
import { changeMode as C } from "../../shared-utils/five/changeMode.js";
|
|
35
|
+
class M {
|
|
37
36
|
constructor(e) {
|
|
38
37
|
s(this, "id");
|
|
39
38
|
s(this, "renderID");
|
|
40
39
|
s(this, "isGuideLine", !0);
|
|
41
40
|
s(this, "panoramaItem");
|
|
42
41
|
s(this, "modelItem");
|
|
43
|
-
s(this, "hooks", new
|
|
42
|
+
s(this, "hooks", new v());
|
|
44
43
|
s(this, "plugin");
|
|
45
44
|
s(this, "five");
|
|
46
|
-
s(this, "logError", (e) =>
|
|
47
|
-
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new
|
|
45
|
+
s(this, "logError", (e) => x("GuideLineItem: ", e));
|
|
46
|
+
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new y(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new y(this.five, { mode: "model", plugin: this.plugin, parent: this });
|
|
48
47
|
}
|
|
49
48
|
setData(e) {
|
|
50
49
|
this.setDataByMode("panorama", e), this.setDataByMode("model", e);
|
|
51
50
|
}
|
|
52
51
|
setDataByMode(e, t) {
|
|
53
|
-
const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path,
|
|
52
|
+
const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, m = n, i = n;
|
|
54
53
|
if (t.pano_group) {
|
|
55
|
-
const
|
|
56
|
-
r.setGeometryByPanoGroup(t.pano_group,
|
|
54
|
+
const a = e === "panorama";
|
|
55
|
+
r.setGeometryByPanoGroup(t.pano_group, h({ skipPanoGroup: a }, m));
|
|
57
56
|
} else
|
|
58
|
-
t.path && r.setGeometryByPath(l,
|
|
57
|
+
t.path && r.setGeometryByPath(l, m);
|
|
59
58
|
r.setMartial(i), n != null && n.start_tag && r.setStartTag(n.start_tag), n != null && n.end_tag && r.setEndTag(n.end_tag);
|
|
60
59
|
}
|
|
61
60
|
dispose() {
|
|
62
61
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
63
62
|
}
|
|
64
63
|
walk(e) {
|
|
65
|
-
return
|
|
64
|
+
return c(this, null, function* () {
|
|
66
65
|
if (!this.panoramaItem.panoGroup)
|
|
67
66
|
return;
|
|
68
|
-
const t =
|
|
67
|
+
const t = h({ panoIndexList: this.panoramaItem.panoGroup }, e);
|
|
69
68
|
this.hooks.emit("walkStart", { userAction: !0 });
|
|
70
|
-
const [r] = yield
|
|
69
|
+
const [r] = yield k(E(this.five, t));
|
|
71
70
|
if (this.hooks.emit("walkEnded", { userAction: !0 }), r)
|
|
72
71
|
return this.logError(r.message);
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
75
|
+
function E(o, e) {
|
|
76
|
+
return c(this, null, function* () {
|
|
78
77
|
if (e.panoIndexList.length === 0)
|
|
79
78
|
return;
|
|
80
79
|
const t = o.getCurrentState();
|
|
81
|
-
t.mode !== "Panorama" && (yield
|
|
82
|
-
const r = new
|
|
80
|
+
t.mode !== "Panorama" && (yield C(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
|
|
81
|
+
const r = new P(o, { useGuideLine: !1 });
|
|
83
82
|
yield r.load(e), yield new Promise((n, l) => {
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
function
|
|
83
|
+
const m = o.getCurrentState();
|
|
84
|
+
let i = e.panoIndexList.slice();
|
|
85
|
+
m.panoIndex === i[0] && p(m.panoIndex), r.playFromStart();
|
|
86
|
+
function a(u) {
|
|
88
87
|
if (u !== "Panorama")
|
|
89
88
|
return f(new Error("mode not match"));
|
|
90
89
|
}
|
|
91
|
-
function
|
|
92
|
-
const I =
|
|
93
|
-
if (
|
|
90
|
+
function p(u) {
|
|
91
|
+
const I = i[0];
|
|
92
|
+
if (i = i.slice(1), u !== I)
|
|
94
93
|
return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
|
|
95
|
-
if (
|
|
96
|
-
return
|
|
94
|
+
if (i.length === 0)
|
|
95
|
+
return G();
|
|
97
96
|
}
|
|
98
97
|
function g() {
|
|
99
|
-
o.off("modeChange",
|
|
98
|
+
o.off("modeChange", a), o.off("panoArrived", p);
|
|
100
99
|
}
|
|
101
100
|
function f(u) {
|
|
102
101
|
g(), l(u);
|
|
103
102
|
}
|
|
104
|
-
function
|
|
103
|
+
function G() {
|
|
105
104
|
g(), n();
|
|
106
105
|
}
|
|
107
|
-
o.on("modeChange",
|
|
106
|
+
o.on("modeChange", a), o.on("panoArrived", p);
|
|
108
107
|
});
|
|
109
108
|
});
|
|
110
109
|
}
|
|
111
|
-
const
|
|
110
|
+
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
111
|
__proto__: null,
|
|
113
|
-
GuideLineItem:
|
|
112
|
+
GuideLineItem: M
|
|
114
113
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
115
114
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
M as GuideLineItem,
|
|
116
|
+
O as GuideLineItem$1
|
|
118
117
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
2
1
|
import "./GuideLineModeItem/index.js";
|
|
3
2
|
import "../CruisePlugin/Controller.js";
|
|
4
3
|
import "../shared-utils/log.js";
|
|
@@ -36,6 +35,7 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
36
35
|
import "../shared-utils/animationFrame/index.js";
|
|
37
36
|
import "../shared-utils/three/loadTexture.js";
|
|
38
37
|
import "../PanoTagPlugin/controller/index.js";
|
|
38
|
+
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
39
39
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
40
40
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
41
41
|
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var C = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
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) => {
|
|
5
6
|
for (var i in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
};
|
|
12
|
-
var t = (
|
|
7
|
+
w.call(e, i) && m(o, i, e[i]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var i of v(e))
|
|
10
|
+
U.call(e, i) && m(o, i, e[i]);
|
|
11
|
+
return o;
|
|
12
|
+
}, g = (o, e) => y(o, k(e));
|
|
13
|
+
var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
14
|
import * as l from "three";
|
|
14
|
-
import { logWarning as
|
|
15
|
-
import { createLineGeometry as
|
|
16
|
-
import { isPanoramaLike as
|
|
15
|
+
import { logWarning as P, logError as T } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as x } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as E, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
17
18
|
import "hammerjs";
|
|
18
19
|
import "@realsee/five";
|
|
19
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
20
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import { BetterTween as
|
|
23
|
-
import { loadTexture as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { filterAdjacentDistinct as
|
|
27
|
-
import { objectAssignDeepExports as
|
|
28
|
-
const
|
|
23
|
+
import { BetterTween as L, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as V } from "../../shared-utils/three/loadTexture.js";
|
|
25
|
+
import b from "../../PanoTagPlugin/controller/index.js";
|
|
26
|
+
import G from "../Components/Tag.js";
|
|
27
|
+
import { filterAdjacentDistinct as M } from "../utils/index.js";
|
|
28
|
+
import { objectAssignDeepExports as F } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const A = (
|
|
29
30
|
/* glsl */
|
|
30
31
|
`
|
|
31
32
|
varying vec2 vUv;
|
|
@@ -35,7 +36,7 @@ const M = (
|
|
|
35
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
36
37
|
}
|
|
37
38
|
`
|
|
38
|
-
),
|
|
39
|
+
), S = (
|
|
39
40
|
/* glsl */
|
|
40
41
|
`
|
|
41
42
|
// 是否使用颜色
|
|
@@ -48,6 +49,10 @@ const M = (
|
|
|
48
49
|
uniform float mapOpacity;
|
|
49
50
|
// 背景颜色
|
|
50
51
|
uniform vec3 backgroundColor;
|
|
52
|
+
// 边框颜色
|
|
53
|
+
uniform vec3 borderColor;
|
|
54
|
+
// 边框透明度
|
|
55
|
+
uniform float borderOpacity;
|
|
51
56
|
// 背景透明度
|
|
52
57
|
uniform float backgroundOpacity;
|
|
53
58
|
// 整体透明度
|
|
@@ -62,7 +67,7 @@ const M = (
|
|
|
62
67
|
varying vec2 vUv;
|
|
63
68
|
|
|
64
69
|
// 获取纹理颜色
|
|
65
|
-
vec4
|
|
70
|
+
vec4 getImage() {
|
|
66
71
|
vec2 uv = vUv;
|
|
67
72
|
uv.y = uv.y - vOffset;
|
|
68
73
|
// 原始贴图颜色
|
|
@@ -78,24 +83,36 @@ const M = (
|
|
|
78
83
|
|
|
79
84
|
// 获取线性渐变的透明度
|
|
80
85
|
float linearGradientOpacity() {
|
|
81
|
-
// 当前的
|
|
82
|
-
float
|
|
86
|
+
// 当前的 v 值
|
|
87
|
+
float v = vUv.y;
|
|
83
88
|
float gradientLength = 1.0;
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
} else if (
|
|
89
|
+
if (v <= gradientLength) {
|
|
90
|
+
return v / gradientLength; // 在 [0, gradientLength] 范围内,透明度为 [0, 1]
|
|
91
|
+
} else if (v <= maxU - gradientLength) {
|
|
87
92
|
return 1.0; // 在 (gradientLength, maxU - gradientLength) 范围内,透明度为 1
|
|
88
93
|
} else {
|
|
89
|
-
return (maxU -
|
|
94
|
+
return (maxU - v) / gradientLength; // 在 [maxU - gradientLength, maxU] 范围内,透明度为 [1, 0]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
vec4 getBorder() {
|
|
99
|
+
float u = vUv.x;
|
|
100
|
+
float borderSize = 0.05;
|
|
101
|
+
if (u <= borderSize || u >= 1.0 - borderSize) {
|
|
102
|
+
return vec4(borderColor, borderOpacity);
|
|
90
103
|
}
|
|
104
|
+
return vec4(0.0, 0.0, 0.0, 0.0);
|
|
91
105
|
}
|
|
92
106
|
|
|
93
107
|
void main() {
|
|
94
|
-
vec4 image =
|
|
108
|
+
vec4 image = getImage();
|
|
109
|
+
vec4 border = getBorder();
|
|
95
110
|
// 设置背景颜色
|
|
96
111
|
gl_FragColor = vec4(backgroundColor, backgroundOpacity);
|
|
97
112
|
// 混合颜色和背景
|
|
98
113
|
gl_FragColor = mix(gl_FragColor, image, image.a);
|
|
114
|
+
// 混合边框
|
|
115
|
+
gl_FragColor = mix(gl_FragColor, border, border.a);
|
|
99
116
|
// 设置整体透明度
|
|
100
117
|
gl_FragColor.a = gl_FragColor.a * opacity;
|
|
101
118
|
gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
|
|
@@ -103,7 +120,7 @@ const M = (
|
|
|
103
120
|
}
|
|
104
121
|
`
|
|
105
122
|
);
|
|
106
|
-
class
|
|
123
|
+
class B {
|
|
107
124
|
constructor(e, i) {
|
|
108
125
|
t(this, "startTagContainer");
|
|
109
126
|
t(this, "endTagContainer");
|
|
@@ -129,12 +146,12 @@ class A {
|
|
|
129
146
|
t(this, "plugin");
|
|
130
147
|
t(this, "textureHasLoaded", !1);
|
|
131
148
|
t(this, "disposed", !1);
|
|
132
|
-
t(this, "flowAnime", new
|
|
133
|
-
t(this, "flickerAnime",
|
|
149
|
+
t(this, "flowAnime", new L({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
|
|
150
|
+
t(this, "flickerAnime", O(300).yoyo(!0).repeat(5));
|
|
134
151
|
t(this, "dispose", () => {
|
|
135
|
-
|
|
152
|
+
var e, i;
|
|
153
|
+
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
|
|
136
154
|
});
|
|
137
|
-
t(this, "onTagContainerChange", (e, i) => new L({ target: e, intro: !0, props: i.data }).$destroy);
|
|
138
155
|
/** 当设置 GuideLinePLugin 展示 */
|
|
139
156
|
t(this, "onPluginShow", () => {
|
|
140
157
|
this.updateVisible();
|
|
@@ -161,22 +178,23 @@ class A {
|
|
|
161
178
|
});
|
|
162
179
|
/** 模型状态变更 */
|
|
163
180
|
t(this, "onFiveModeChange", (e) => {
|
|
164
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
181
|
+
this.modeVisible = this.mode === "panorama" ? E(e) : _(e), this.updateVisible();
|
|
165
182
|
});
|
|
166
183
|
t(this, "onFlowAnimeUpdate", (e) => {
|
|
167
184
|
const { progress: i } = e;
|
|
168
185
|
this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
169
186
|
});
|
|
170
187
|
t(this, "onFlickerAnimeUpdate", (e) => {
|
|
171
|
-
|
|
172
|
-
|
|
188
|
+
var a, s;
|
|
189
|
+
const { progress: i } = e, r = 1 - i;
|
|
190
|
+
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 })));
|
|
173
191
|
});
|
|
174
|
-
t(this, "logWarning", (e) =>
|
|
175
|
-
t(this, "logError", (e) =>
|
|
176
|
-
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new
|
|
177
|
-
const
|
|
178
|
-
vertexShader:
|
|
179
|
-
fragmentShader:
|
|
192
|
+
t(this, "logWarning", (e) => P("GuideLineModeItem: ", e));
|
|
193
|
+
t(this, "logError", (e) => T("GuideLineModeItem: ", e));
|
|
194
|
+
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 l.BufferGeometry(), a = new l.ShaderMaterial({
|
|
196
|
+
vertexShader: A,
|
|
197
|
+
fragmentShader: S,
|
|
180
198
|
transparent: !0,
|
|
181
199
|
uniforms: {
|
|
182
200
|
map: { value: null },
|
|
@@ -185,13 +203,15 @@ class A {
|
|
|
185
203
|
mapOpacity: { value: 1 },
|
|
186
204
|
backgroundColor: { value: new l.Color() },
|
|
187
205
|
backgroundOpacity: { value: 0 },
|
|
206
|
+
borderColor: { value: new l.Color() },
|
|
207
|
+
borderOpacity: { value: 0 },
|
|
188
208
|
opacity: { value: 1 },
|
|
189
209
|
flicker: { value: 1 },
|
|
190
210
|
maxU: { value: 0 },
|
|
191
211
|
vOffset: { value: 0 }
|
|
192
212
|
}
|
|
193
213
|
});
|
|
194
|
-
this.mesh = new l.Mesh(
|
|
214
|
+
this.mesh = new l.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.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
|
|
195
215
|
}
|
|
196
216
|
get panoGroup() {
|
|
197
217
|
return this._panoGroup;
|
|
@@ -226,53 +246,59 @@ class A {
|
|
|
226
246
|
return this.logError("disposed");
|
|
227
247
|
if (!this.five.work)
|
|
228
248
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
229
|
-
const
|
|
230
|
-
if (this._panoGroup =
|
|
231
|
-
const
|
|
232
|
-
this.skippedPositions =
|
|
249
|
+
const r = M(e);
|
|
250
|
+
if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
251
|
+
const s = i.skipPanoGroup ? r.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
|
|
252
|
+
this.skippedPositions = s;
|
|
233
253
|
}
|
|
234
|
-
const a = this.getPathFromPanoGroup(
|
|
254
|
+
const a = this.getPathFromPanoGroup(r, this.five.work, i);
|
|
235
255
|
this.path = a, this.setGeometryByPath(a, i);
|
|
236
256
|
}
|
|
237
257
|
/** 通过路径设置线条形状 */
|
|
238
258
|
setGeometryByPath(e, i) {
|
|
239
|
-
var d,
|
|
259
|
+
var d, p, c;
|
|
240
260
|
if (this.disposed)
|
|
241
261
|
return this.logError("disposed");
|
|
242
|
-
const
|
|
243
|
-
this.path = e, this.scale =
|
|
244
|
-
const { geometry: n, maxU:
|
|
262
|
+
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
|
+
this.path = e, this.scale = r, this.width = a, this.unitLength = s;
|
|
264
|
+
const { geometry: n, maxU: h } = x({
|
|
245
265
|
path: e,
|
|
246
|
-
width: a *
|
|
247
|
-
unitLength:
|
|
266
|
+
width: a * r,
|
|
267
|
+
unitLength: s * r,
|
|
248
268
|
skipPositions: this.skippedPositions
|
|
249
269
|
});
|
|
250
|
-
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value =
|
|
270
|
+
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = h, this.five.needsRender = !0;
|
|
251
271
|
}
|
|
252
272
|
/** 设置线条材质 */
|
|
253
273
|
setMartial(e) {
|
|
254
274
|
var i;
|
|
255
275
|
if (this.disposed)
|
|
256
276
|
return this.logError("disposed");
|
|
257
|
-
(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), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.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);
|
|
277
|
+
(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), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.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);
|
|
258
278
|
}
|
|
259
279
|
/** 设置贴图颜色 */
|
|
260
280
|
setColor(e) {
|
|
261
281
|
if (this.disposed)
|
|
262
282
|
return this.logError("disposed");
|
|
263
|
-
this.mesh.material.uniforms.
|
|
283
|
+
e && (this.mesh.material.uniforms.mapColor.value = new l.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
264
284
|
}
|
|
265
|
-
/**
|
|
266
|
-
|
|
285
|
+
/** 设置边框 */
|
|
286
|
+
setBorderColor(e) {
|
|
267
287
|
if (this.disposed)
|
|
268
288
|
return this.logError("disposed");
|
|
269
|
-
this.mesh.material.uniforms.
|
|
289
|
+
this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
270
290
|
}
|
|
271
|
-
/**
|
|
272
|
-
|
|
291
|
+
/** 设置边框透明度 */
|
|
292
|
+
setBorderOpacity(e) {
|
|
273
293
|
if (this.disposed)
|
|
274
294
|
return this.logError("disposed");
|
|
275
|
-
this.mesh.material.uniforms.
|
|
295
|
+
this.mesh.material.uniforms.borderOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
296
|
+
}
|
|
297
|
+
/** 设置背景颜色 */
|
|
298
|
+
setBackgroundColor(e) {
|
|
299
|
+
if (this.disposed)
|
|
300
|
+
return this.logError("disposed");
|
|
301
|
+
console.log("🐶 ==> color:", e), this.mesh.material.uniforms.backgroundColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
276
302
|
}
|
|
277
303
|
/** 设置背景透明度 */
|
|
278
304
|
setBackgroundOpacity(e) {
|
|
@@ -280,6 +306,12 @@ class A {
|
|
|
280
306
|
return this.logError("disposed");
|
|
281
307
|
this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
282
308
|
}
|
|
309
|
+
/** 设置整体透明度 */
|
|
310
|
+
setOpacity(e) {
|
|
311
|
+
if (this.disposed)
|
|
312
|
+
return this.logError("disposed");
|
|
313
|
+
this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
314
|
+
}
|
|
283
315
|
/** 设置贴图透明度 */
|
|
284
316
|
setMapOpacity(e) {
|
|
285
317
|
if (this.disposed)
|
|
@@ -290,7 +322,7 @@ class A {
|
|
|
290
322
|
setTextureUrl(e) {
|
|
291
323
|
if (this.disposed)
|
|
292
324
|
return this.logError("disposed");
|
|
293
|
-
this.textureUrl = e,
|
|
325
|
+
this.textureUrl = e, V(e).then((i) => {
|
|
294
326
|
this.disposed || this.textureUrl === e && (i.wrapT = l.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());
|
|
295
327
|
});
|
|
296
328
|
}
|
|
@@ -307,14 +339,19 @@ class A {
|
|
|
307
339
|
this.flickerAnime.play();
|
|
308
340
|
}
|
|
309
341
|
setTag(e, i) {
|
|
310
|
-
const a =
|
|
342
|
+
const a = F({}, {
|
|
311
343
|
contentType: "Custom",
|
|
312
344
|
stickType: "2DPoint",
|
|
313
345
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"] } },
|
|
314
346
|
style: { point: { enabled: !1 } },
|
|
315
347
|
data: {}
|
|
316
|
-
}, i),
|
|
317
|
-
|
|
348
|
+
}, i), s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
349
|
+
s.tag = a, f(a) && (s.tag.element = (n) => {
|
|
350
|
+
var d;
|
|
351
|
+
(d = s.app) == null || d.$destroy();
|
|
352
|
+
const h = new G({ target: n, intro: !0, props: a.data });
|
|
353
|
+
return s.app = h, () => h.$destroy();
|
|
354
|
+
}), s.plugin.load({ tagList: [s.tag] });
|
|
318
355
|
}
|
|
319
356
|
/** 更新可见性 */
|
|
320
357
|
updateVisible() {
|
|
@@ -328,21 +365,21 @@ class A {
|
|
|
328
365
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
329
366
|
}
|
|
330
367
|
/** 通过 panoIndex 数组计算路径 */
|
|
331
|
-
getPathFromPanoGroup(e, i,
|
|
368
|
+
getPathFromPanoGroup(e, i, r) {
|
|
332
369
|
if (e.length < 2)
|
|
333
370
|
return [];
|
|
334
|
-
const
|
|
335
|
-
return [
|
|
371
|
+
const s = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
|
|
372
|
+
return [u({ type: "CatmullRomCurve3", points: s }, r)];
|
|
336
373
|
}
|
|
337
374
|
}
|
|
338
|
-
function
|
|
339
|
-
return
|
|
375
|
+
function f(o) {
|
|
376
|
+
return o.contentType === "Custom";
|
|
340
377
|
}
|
|
341
|
-
const
|
|
378
|
+
const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
342
379
|
__proto__: null,
|
|
343
|
-
GuideLineModeItem:
|
|
380
|
+
GuideLineModeItem: B
|
|
344
381
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
345
382
|
export {
|
|
346
|
-
|
|
347
|
-
|
|
383
|
+
B as GuideLineModeItem,
|
|
384
|
+
Z as GuideLineModeItem$1
|
|
348
385
|
};
|
|
@@ -5,11 +5,13 @@ import type * as PluginType from './typing';
|
|
|
5
5
|
import type { GuideLineItem } from './GuideLineItem';
|
|
6
6
|
import * as THREE from 'three';
|
|
7
7
|
import { PanoTagPluginController } from '../PanoTagPlugin';
|
|
8
|
+
import CustomTag from './Components/Tag.svelte';
|
|
8
9
|
/** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
|
|
9
10
|
type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
|
|
10
11
|
export interface GuideLineTagContainer {
|
|
11
12
|
tag: Tag | null;
|
|
12
13
|
plugin: PanoTagPluginController;
|
|
14
|
+
app?: CustomTag;
|
|
13
15
|
}
|
|
14
16
|
/** 在不同模态下的 GuideLine */
|
|
15
17
|
declare class GuideLineModeItem {
|
|
@@ -63,13 +65,17 @@ declare class GuideLineModeItem {
|
|
|
63
65
|
/** 设置线条材质 */
|
|
64
66
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
65
67
|
/** 设置贴图颜色 */
|
|
66
|
-
setColor(color: null |
|
|
68
|
+
setColor(color: null | string): void;
|
|
69
|
+
/** 设置边框 */
|
|
70
|
+
setBorderColor(color: string): void;
|
|
71
|
+
/** 设置边框透明度 */
|
|
72
|
+
setBorderOpacity(opacity: number): void;
|
|
67
73
|
/** 设置背景颜色 */
|
|
68
|
-
setBackgroundColor(color:
|
|
69
|
-
/** 设置整体透明度 */
|
|
70
|
-
setOpacity(opacity: number): void;
|
|
74
|
+
setBackgroundColor(color: string): void;
|
|
71
75
|
/** 设置背景透明度 */
|
|
72
76
|
setBackgroundOpacity(opacity: number): void;
|
|
77
|
+
/** 设置整体透明度 */
|
|
78
|
+
setOpacity(opacity: number): void;
|
|
73
79
|
/** 设置贴图透明度 */
|
|
74
80
|
setMapOpacity(opacity: number): void;
|
|
75
81
|
/** 设置贴图 */
|
|
@@ -79,7 +85,6 @@ declare class GuideLineModeItem {
|
|
|
79
85
|
/** 闪烁 */
|
|
80
86
|
flicker(): void;
|
|
81
87
|
private setTag;
|
|
82
|
-
private onTagContainerChange;
|
|
83
88
|
/** 当设置 GuideLinePLugin 展示 */
|
|
84
89
|
private onPluginShow;
|
|
85
90
|
/** 当设置 GuideLinePLugin 隐藏 */
|
|
@@ -34,7 +34,6 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
34
34
|
import "../CruisePlugin/utils/formatRad.js";
|
|
35
35
|
import "../CruisePlugin/utils/linerValue.js";
|
|
36
36
|
import "../CruisePlugin/utils/sleep.js";
|
|
37
|
-
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
38
37
|
import "../shared-utils/log.js";
|
|
39
38
|
import "./utils/createLineGeometry.js";
|
|
40
39
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -49,6 +48,7 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
49
48
|
import "../shared-utils/animationFrame/index.js";
|
|
50
49
|
import "../shared-utils/three/loadTexture.js";
|
|
51
50
|
import "../PanoTagPlugin/controller/index.js";
|
|
51
|
+
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
52
52
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
53
53
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
54
54
|
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
@@ -103,12 +103,16 @@ export interface GuideLineGeometryStyle {
|
|
|
103
103
|
export interface GuideLineMaterialStyle {
|
|
104
104
|
/** 是否可见 */
|
|
105
105
|
visible?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
color?:
|
|
106
|
+
/** hex 颜色 */
|
|
107
|
+
color?: string;
|
|
108
108
|
/** 背景颜色 */
|
|
109
|
-
background_color?:
|
|
109
|
+
background_color?: string;
|
|
110
110
|
/** 背景透明度 */
|
|
111
111
|
background_opacity?: number;
|
|
112
|
+
/** 边框颜色 */
|
|
113
|
+
border_color?: string;
|
|
114
|
+
/** 边框透明度 */
|
|
115
|
+
border_opacity?: number;
|
|
112
116
|
/** 透明度 */
|
|
113
117
|
opacity?: number;
|
|
114
118
|
/** 贴图 */
|
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-15", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
367
367
|
export {
|
|
368
368
|
le as CSS3DRender,
|
|
369
369
|
Zm as CSS3DRenderPlugin,
|