@realsee/dnalogel 2.16.0-13 → 2.16.0-14
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 +8 -4
- package/dist/GuideLinePlugin/typing.d.ts +7 -3
- package/dist/index.cjs.js +49 -33
- package/dist/index.js +708 -677
- package/dist/index.umd.js +38 -22
- 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 +6 -6
- 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/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 +89 -59
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +8 -4
- 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,31 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var g = Object.getOwnPropertySymbols;
|
|
3
|
-
var b = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
3
|
+
var b = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (s, e, i) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i, f = (s, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
|
-
b.call(e, i) &&
|
|
6
|
+
b.call(e, i) && d(s, i, e[i]);
|
|
7
7
|
if (g)
|
|
8
8
|
for (var i of g(e))
|
|
9
|
-
|
|
10
|
-
return
|
|
9
|
+
y.call(e, i) && d(s, i, e[i]);
|
|
10
|
+
return s;
|
|
11
11
|
};
|
|
12
|
-
var t = (
|
|
12
|
+
var t = (s, e, i) => (d(s, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
13
|
import * as l from "three";
|
|
14
|
-
import { logWarning as
|
|
14
|
+
import { logWarning as C, logError as k } from "../../shared-utils/log.js";
|
|
15
15
|
import { createLineGeometry as w } from "../utils/createLineGeometry.js";
|
|
16
|
-
import { isPanoramaLike as
|
|
16
|
+
import { isPanoramaLike as U, isModelLike as P } from "../../shared-utils/five/mode.js";
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "@realsee/five";
|
|
19
19
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
20
20
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import { BetterTween as
|
|
23
|
-
import { loadTexture as
|
|
22
|
+
import { BetterTween as x, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
23
|
+
import { loadTexture as _ } from "../../shared-utils/three/loadTexture.js";
|
|
24
24
|
import p from "../../PanoTagPlugin/controller/index.js";
|
|
25
|
-
import
|
|
26
|
-
import { filterAdjacentDistinct as
|
|
27
|
-
import { objectAssignDeepExports as
|
|
28
|
-
const
|
|
25
|
+
import T from "../Components/Tag.js";
|
|
26
|
+
import { filterAdjacentDistinct as L } from "../utils/index.js";
|
|
27
|
+
import { objectAssignDeepExports as O } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
28
|
+
const V = (
|
|
29
29
|
/* glsl */
|
|
30
30
|
`
|
|
31
31
|
varying vec2 vUv;
|
|
@@ -35,7 +35,7 @@ const M = (
|
|
|
35
35
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
36
36
|
}
|
|
37
37
|
`
|
|
38
|
-
),
|
|
38
|
+
), G = (
|
|
39
39
|
/* glsl */
|
|
40
40
|
`
|
|
41
41
|
// 是否使用颜色
|
|
@@ -48,6 +48,10 @@ const M = (
|
|
|
48
48
|
uniform float mapOpacity;
|
|
49
49
|
// 背景颜色
|
|
50
50
|
uniform vec3 backgroundColor;
|
|
51
|
+
// 边框颜色
|
|
52
|
+
uniform vec3 borderColor;
|
|
53
|
+
// 边框透明度
|
|
54
|
+
uniform float borderOpacity;
|
|
51
55
|
// 背景透明度
|
|
52
56
|
uniform float backgroundOpacity;
|
|
53
57
|
// 整体透明度
|
|
@@ -62,7 +66,7 @@ const M = (
|
|
|
62
66
|
varying vec2 vUv;
|
|
63
67
|
|
|
64
68
|
// 获取纹理颜色
|
|
65
|
-
vec4
|
|
69
|
+
vec4 getImage() {
|
|
66
70
|
vec2 uv = vUv;
|
|
67
71
|
uv.y = uv.y - vOffset;
|
|
68
72
|
// 原始贴图颜色
|
|
@@ -78,24 +82,36 @@ const M = (
|
|
|
78
82
|
|
|
79
83
|
// 获取线性渐变的透明度
|
|
80
84
|
float linearGradientOpacity() {
|
|
81
|
-
// 当前的
|
|
82
|
-
float
|
|
85
|
+
// 当前的 v 值
|
|
86
|
+
float v = vUv.y;
|
|
83
87
|
float gradientLength = 1.0;
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
} else if (
|
|
88
|
+
if (v <= gradientLength) {
|
|
89
|
+
return v / gradientLength; // 在 [0, gradientLength] 范围内,透明度为 [0, 1]
|
|
90
|
+
} else if (v <= maxU - gradientLength) {
|
|
87
91
|
return 1.0; // 在 (gradientLength, maxU - gradientLength) 范围内,透明度为 1
|
|
88
92
|
} else {
|
|
89
|
-
return (maxU -
|
|
93
|
+
return (maxU - v) / gradientLength; // 在 [maxU - gradientLength, maxU] 范围内,透明度为 [1, 0]
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
|
|
97
|
+
vec4 getBorder() {
|
|
98
|
+
float u = vUv.x;
|
|
99
|
+
float borderSize = 0.05;
|
|
100
|
+
if (u <= borderSize || u >= 1.0 - borderSize) {
|
|
101
|
+
return vec4(borderColor, borderOpacity);
|
|
102
|
+
}
|
|
103
|
+
return vec4(0.0, 0.0, 0.0, 0.0);
|
|
104
|
+
}
|
|
105
|
+
|
|
93
106
|
void main() {
|
|
94
|
-
vec4 image =
|
|
107
|
+
vec4 image = getImage();
|
|
108
|
+
vec4 border = getBorder();
|
|
95
109
|
// 设置背景颜色
|
|
96
110
|
gl_FragColor = vec4(backgroundColor, backgroundOpacity);
|
|
97
111
|
// 混合颜色和背景
|
|
98
112
|
gl_FragColor = mix(gl_FragColor, image, image.a);
|
|
113
|
+
// 混合边框
|
|
114
|
+
gl_FragColor = mix(gl_FragColor, border, border.a);
|
|
99
115
|
// 设置整体透明度
|
|
100
116
|
gl_FragColor.a = gl_FragColor.a * opacity;
|
|
101
117
|
gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
|
|
@@ -103,7 +119,7 @@ const M = (
|
|
|
103
119
|
}
|
|
104
120
|
`
|
|
105
121
|
);
|
|
106
|
-
class
|
|
122
|
+
class M {
|
|
107
123
|
constructor(e, i) {
|
|
108
124
|
t(this, "startTagContainer");
|
|
109
125
|
t(this, "endTagContainer");
|
|
@@ -129,12 +145,12 @@ class A {
|
|
|
129
145
|
t(this, "plugin");
|
|
130
146
|
t(this, "textureHasLoaded", !1);
|
|
131
147
|
t(this, "disposed", !1);
|
|
132
|
-
t(this, "flowAnime", new
|
|
133
|
-
t(this, "flickerAnime",
|
|
148
|
+
t(this, "flowAnime", new x({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
|
|
149
|
+
t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
134
150
|
t(this, "dispose", () => {
|
|
135
151
|
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());
|
|
136
152
|
});
|
|
137
|
-
t(this, "onTagContainerChange", (e, i) => new
|
|
153
|
+
t(this, "onTagContainerChange", (e, i) => new T({ target: e, intro: !0, props: i.data }).$destroy);
|
|
138
154
|
/** 当设置 GuideLinePLugin 展示 */
|
|
139
155
|
t(this, "onPluginShow", () => {
|
|
140
156
|
this.updateVisible();
|
|
@@ -161,7 +177,7 @@ class A {
|
|
|
161
177
|
});
|
|
162
178
|
/** 模型状态变更 */
|
|
163
179
|
t(this, "onFiveModeChange", (e) => {
|
|
164
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
180
|
+
this.modeVisible = this.mode === "panorama" ? U(e) : P(e), this.updateVisible();
|
|
165
181
|
});
|
|
166
182
|
t(this, "onFlowAnimeUpdate", (e) => {
|
|
167
183
|
const { progress: i } = e;
|
|
@@ -171,12 +187,12 @@ class A {
|
|
|
171
187
|
const { progress: i } = e;
|
|
172
188
|
this.mesh.material.uniforms.flicker.value = 1 - i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
173
189
|
});
|
|
174
|
-
t(this, "logWarning", (e) =>
|
|
175
|
-
t(this, "logError", (e) =>
|
|
190
|
+
t(this, "logWarning", (e) => C("GuideLineModeItem: ", e));
|
|
191
|
+
t(this, "logError", (e) => k("GuideLineModeItem: ", e));
|
|
176
192
|
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new p(this.five) }, this.endTagContainer = { tag: null, plugin: new p(this.five) };
|
|
177
|
-
const
|
|
178
|
-
vertexShader:
|
|
179
|
-
fragmentShader:
|
|
193
|
+
const r = new l.BufferGeometry(), a = new l.ShaderMaterial({
|
|
194
|
+
vertexShader: V,
|
|
195
|
+
fragmentShader: G,
|
|
180
196
|
transparent: !0,
|
|
181
197
|
uniforms: {
|
|
182
198
|
map: { value: null },
|
|
@@ -185,13 +201,15 @@ class A {
|
|
|
185
201
|
mapOpacity: { value: 1 },
|
|
186
202
|
backgroundColor: { value: new l.Color() },
|
|
187
203
|
backgroundOpacity: { value: 0 },
|
|
204
|
+
borderColor: { value: new l.Color() },
|
|
205
|
+
borderOpacity: { value: 0 },
|
|
188
206
|
opacity: { value: 1 },
|
|
189
207
|
flicker: { value: 1 },
|
|
190
208
|
maxU: { value: 0 },
|
|
191
209
|
vOffset: { value: 0 }
|
|
192
210
|
}
|
|
193
211
|
});
|
|
194
|
-
this.mesh = new l.Mesh(
|
|
212
|
+
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
213
|
}
|
|
196
214
|
get panoGroup() {
|
|
197
215
|
return this._panoGroup;
|
|
@@ -226,25 +244,25 @@ class A {
|
|
|
226
244
|
return this.logError("disposed");
|
|
227
245
|
if (!this.five.work)
|
|
228
246
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
229
|
-
const
|
|
230
|
-
if (this._panoGroup =
|
|
231
|
-
const o = i.skipPanoGroup ?
|
|
247
|
+
const r = L(e);
|
|
248
|
+
if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
249
|
+
const o = i.skipPanoGroup ? r.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
|
|
232
250
|
this.skippedPositions = o;
|
|
233
251
|
}
|
|
234
|
-
const a = this.getPathFromPanoGroup(
|
|
252
|
+
const a = this.getPathFromPanoGroup(r, this.five.work, i);
|
|
235
253
|
this.path = a, this.setGeometryByPath(a, i);
|
|
236
254
|
}
|
|
237
255
|
/** 通过路径设置线条形状 */
|
|
238
256
|
setGeometryByPath(e, i) {
|
|
239
|
-
var
|
|
257
|
+
var h, u, m;
|
|
240
258
|
if (this.disposed)
|
|
241
259
|
return this.logError("disposed");
|
|
242
|
-
const
|
|
243
|
-
this.path = e, this.scale =
|
|
260
|
+
const r = (h = i == null ? void 0 : i.scale) != null ? h : this.scale, a = (u = i == null ? void 0 : i.width) != null ? u : this.width, o = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
|
|
261
|
+
this.path = e, this.scale = r, this.width = a, this.unitLength = o;
|
|
244
262
|
const { geometry: n, maxU: c } = w({
|
|
245
263
|
path: e,
|
|
246
|
-
width: a *
|
|
247
|
-
unitLength: o *
|
|
264
|
+
width: a * r,
|
|
265
|
+
unitLength: o * r,
|
|
248
266
|
skipPositions: this.skippedPositions
|
|
249
267
|
});
|
|
250
268
|
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = c, this.five.needsRender = !0;
|
|
@@ -254,25 +272,31 @@ class A {
|
|
|
254
272
|
var i;
|
|
255
273
|
if (this.disposed)
|
|
256
274
|
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);
|
|
275
|
+
(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
276
|
}
|
|
259
277
|
/** 设置贴图颜色 */
|
|
260
278
|
setColor(e) {
|
|
261
279
|
if (this.disposed)
|
|
262
280
|
return this.logError("disposed");
|
|
263
|
-
this.mesh.material.uniforms.
|
|
281
|
+
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
282
|
}
|
|
265
|
-
/**
|
|
266
|
-
|
|
283
|
+
/** 设置边框 */
|
|
284
|
+
setBorderColor(e) {
|
|
267
285
|
if (this.disposed)
|
|
268
286
|
return this.logError("disposed");
|
|
269
|
-
this.mesh.material.uniforms.
|
|
287
|
+
this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
270
288
|
}
|
|
271
|
-
/**
|
|
272
|
-
|
|
289
|
+
/** 设置边框透明度 */
|
|
290
|
+
setBorderOpacity(e) {
|
|
273
291
|
if (this.disposed)
|
|
274
292
|
return this.logError("disposed");
|
|
275
|
-
this.mesh.material.uniforms.
|
|
293
|
+
this.mesh.material.uniforms.borderOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
294
|
+
}
|
|
295
|
+
/** 设置背景颜色 */
|
|
296
|
+
setBackgroundColor(e) {
|
|
297
|
+
if (this.disposed)
|
|
298
|
+
return this.logError("disposed");
|
|
299
|
+
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
300
|
}
|
|
277
301
|
/** 设置背景透明度 */
|
|
278
302
|
setBackgroundOpacity(e) {
|
|
@@ -280,6 +304,12 @@ class A {
|
|
|
280
304
|
return this.logError("disposed");
|
|
281
305
|
this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
282
306
|
}
|
|
307
|
+
/** 设置整体透明度 */
|
|
308
|
+
setOpacity(e) {
|
|
309
|
+
if (this.disposed)
|
|
310
|
+
return this.logError("disposed");
|
|
311
|
+
this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
312
|
+
}
|
|
283
313
|
/** 设置贴图透明度 */
|
|
284
314
|
setMapOpacity(e) {
|
|
285
315
|
if (this.disposed)
|
|
@@ -290,7 +320,7 @@ class A {
|
|
|
290
320
|
setTextureUrl(e) {
|
|
291
321
|
if (this.disposed)
|
|
292
322
|
return this.logError("disposed");
|
|
293
|
-
this.textureUrl = e,
|
|
323
|
+
this.textureUrl = e, _(e).then((i) => {
|
|
294
324
|
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
325
|
});
|
|
296
326
|
}
|
|
@@ -307,7 +337,7 @@ class A {
|
|
|
307
337
|
this.flickerAnime.play();
|
|
308
338
|
}
|
|
309
339
|
setTag(e, i) {
|
|
310
|
-
const a =
|
|
340
|
+
const a = O({}, {
|
|
311
341
|
contentType: "Custom",
|
|
312
342
|
stickType: "2DPoint",
|
|
313
343
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"] } },
|
|
@@ -328,21 +358,21 @@ class A {
|
|
|
328
358
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
329
359
|
}
|
|
330
360
|
/** 通过 panoIndex 数组计算路径 */
|
|
331
|
-
getPathFromPanoGroup(e, i,
|
|
361
|
+
getPathFromPanoGroup(e, i, r) {
|
|
332
362
|
if (e.length < 2)
|
|
333
363
|
return [];
|
|
334
364
|
const o = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
|
|
335
|
-
return [f({ type: "CatmullRomCurve3", points: o },
|
|
365
|
+
return [f({ type: "CatmullRomCurve3", points: o }, r)];
|
|
336
366
|
}
|
|
337
367
|
}
|
|
338
|
-
function F(
|
|
339
|
-
return
|
|
368
|
+
function F(s) {
|
|
369
|
+
return s.contentType === "Custom";
|
|
340
370
|
}
|
|
341
371
|
const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
342
372
|
__proto__: null,
|
|
343
|
-
GuideLineModeItem:
|
|
373
|
+
GuideLineModeItem: M
|
|
344
374
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
345
375
|
export {
|
|
346
|
-
|
|
376
|
+
M as GuideLineModeItem,
|
|
347
377
|
Q as GuideLineModeItem$1
|
|
348
378
|
};
|
|
@@ -63,13 +63,17 @@ declare class GuideLineModeItem {
|
|
|
63
63
|
/** 设置线条材质 */
|
|
64
64
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
65
65
|
/** 设置贴图颜色 */
|
|
66
|
-
setColor(color: null |
|
|
66
|
+
setColor(color: null | string): void;
|
|
67
|
+
/** 设置边框 */
|
|
68
|
+
setBorderColor(color: string): void;
|
|
69
|
+
/** 设置边框透明度 */
|
|
70
|
+
setBorderOpacity(opacity: number): void;
|
|
67
71
|
/** 设置背景颜色 */
|
|
68
|
-
setBackgroundColor(color:
|
|
69
|
-
/** 设置整体透明度 */
|
|
70
|
-
setOpacity(opacity: number): void;
|
|
72
|
+
setBackgroundColor(color: string): void;
|
|
71
73
|
/** 设置背景透明度 */
|
|
72
74
|
setBackgroundOpacity(opacity: number): void;
|
|
75
|
+
/** 设置整体透明度 */
|
|
76
|
+
setOpacity(opacity: number): void;
|
|
73
77
|
/** 设置贴图透明度 */
|
|
74
78
|
setMapOpacity(opacity: number): void;
|
|
75
79
|
/** 设置贴图 */
|
|
@@ -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-14", "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-14",
|
|
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*",
|