@realsee/dnalogel 2.14.4-alpha.0 → 2.15.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -0
- package/dist/index.cjs.js +40 -40
- package/dist/index.js +2994 -2996
- package/dist/index.umd.js +40 -40
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoMeasurePluginLine.html +4 -4
- package/docs/classes/PanoMeasurePluginModel.html +4 -4
- package/docs/classes/PanoMeasurePluginPoint.html +4 -4
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +38 -18
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- 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.isNil.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/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/EventMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/HelperOffset.html +4 -4
- package/docs/interfaces/ImagePlaneGroup.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/MinMax.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/ObjectHelperControllers.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/TagGLTFObjectGroup.html +4 -4
- package/docs/interfaces/TagIconUrl.html +4 -4
- package/docs/interfaces/TagObjectGroup.html +4 -4
- package/docs/interfaces/TagStyle.html +4 -4
- package/docs/interfaces/Tags.html +5 -5
- package/docs/interfaces/TemporaryState.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.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/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/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 +5 -5
- 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/PanoTagPlugin/Components/Tag/index.js +156 -155
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +110 -109
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +11 -10
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/threex/domevents/index.js +11 -13
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
1
|
+
import { SvelteComponent as M, init as O, safe_not_equal as Q, append_styles as U, element as C, space as W, attr as d, null_to_empty as V, set_style as h, toggle_class as _, insert as P, append as j, transition_out as y, check_outros as B, transition_in as v, detach as N, getContext as X, group_outros as E, noop as S, create_component as H, mount_component as J, destroy_component as K } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import Y from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as F } from "../utils/noTypecheck.js";
|
|
5
5
|
import "@realsee/five/gltf-loader";
|
|
6
6
|
import "../../shared-utils/three/loadTexture.js";
|
|
7
|
-
import
|
|
7
|
+
import Z from "./Common/TagPoint.js";
|
|
8
|
+
import G from "classnames";
|
|
8
9
|
import "./Tag/TextTag/index.js";
|
|
9
10
|
import "./Tag/TextTag/TextTag.js";
|
|
10
11
|
import "./Common/Line/Straight.js";
|
|
@@ -92,173 +93,173 @@ import "./Tag/LinkTag.js";
|
|
|
92
93
|
import "./Common/Icon/Icon.js";
|
|
93
94
|
import "../utils/getImageInfo.js";
|
|
94
95
|
import "./Tag/CustomTag.js";
|
|
95
|
-
function
|
|
96
|
-
|
|
96
|
+
function x(i) {
|
|
97
|
+
U(i, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function $(i) {
|
|
99
100
|
let e;
|
|
100
101
|
return {
|
|
101
102
|
c() {
|
|
102
|
-
e =
|
|
103
|
+
e = C("div"), d(e, "data-info", "tag content is disable");
|
|
103
104
|
},
|
|
104
|
-
m(t,
|
|
105
|
-
|
|
105
|
+
m(t, o) {
|
|
106
|
+
P(t, e, o);
|
|
106
107
|
},
|
|
107
|
-
p:
|
|
108
|
-
i:
|
|
109
|
-
o:
|
|
108
|
+
p: S,
|
|
109
|
+
i: S,
|
|
110
|
+
o: S,
|
|
110
111
|
d(t) {
|
|
111
|
-
t &&
|
|
112
|
+
t && N(e);
|
|
112
113
|
}
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function tt(i) {
|
|
116
117
|
let e, t;
|
|
117
|
-
return e = new
|
|
118
|
+
return e = new Y({
|
|
118
119
|
props: {
|
|
119
|
-
mediaStore:
|
|
120
|
-
withAnimation:
|
|
121
|
-
tag: F(
|
|
122
|
-
hooks:
|
|
123
|
-
state:
|
|
124
|
-
temporaryState:
|
|
120
|
+
mediaStore: i[2],
|
|
121
|
+
withAnimation: i[0],
|
|
122
|
+
tag: F(i[1]),
|
|
123
|
+
hooks: i[14],
|
|
124
|
+
state: i[3],
|
|
125
|
+
temporaryState: i[4]
|
|
125
126
|
}
|
|
126
127
|
}), {
|
|
127
128
|
c() {
|
|
128
|
-
|
|
129
|
+
H(e.$$.fragment);
|
|
129
130
|
},
|
|
130
|
-
m(
|
|
131
|
-
|
|
131
|
+
m(o, p) {
|
|
132
|
+
J(e, o, p), t = !0;
|
|
132
133
|
},
|
|
133
|
-
p(
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
p(o, p) {
|
|
135
|
+
const m = {};
|
|
136
|
+
p & 4 && (m.mediaStore = o[2]), p & 1 && (m.withAnimation = o[0]), p & 2 && (m.tag = F(o[1])), p & 8 && (m.state = o[3]), p & 16 && (m.temporaryState = o[4]), e.$set(m);
|
|
136
137
|
},
|
|
137
|
-
i(
|
|
138
|
-
t || (
|
|
138
|
+
i(o) {
|
|
139
|
+
t || (v(e.$$.fragment, o), t = !0);
|
|
139
140
|
},
|
|
140
|
-
o(
|
|
141
|
-
|
|
141
|
+
o(o) {
|
|
142
|
+
y(e.$$.fragment, o), t = !1;
|
|
142
143
|
},
|
|
143
|
-
d(
|
|
144
|
-
|
|
144
|
+
d(o) {
|
|
145
|
+
K(e, o);
|
|
145
146
|
}
|
|
146
147
|
};
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function et(i) {
|
|
149
150
|
let e;
|
|
150
151
|
return {
|
|
151
152
|
c() {
|
|
152
|
-
e =
|
|
153
|
+
e = C("div"), d(e, "data-info", "tag point is disable");
|
|
153
154
|
},
|
|
154
|
-
m(t,
|
|
155
|
-
|
|
155
|
+
m(t, o) {
|
|
156
|
+
P(t, e, o);
|
|
156
157
|
},
|
|
157
|
-
p:
|
|
158
|
-
i:
|
|
159
|
-
o:
|
|
158
|
+
p: S,
|
|
159
|
+
i: S,
|
|
160
|
+
o: S,
|
|
160
161
|
d(t) {
|
|
161
|
-
t &&
|
|
162
|
+
t && N(e);
|
|
162
163
|
}
|
|
163
164
|
};
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
+
function it(i) {
|
|
166
167
|
let e, t;
|
|
167
|
-
return e = new
|
|
168
|
+
return e = new Z({ props: { tag: i[1] } }), {
|
|
168
169
|
c() {
|
|
169
|
-
|
|
170
|
+
H(e.$$.fragment);
|
|
170
171
|
},
|
|
171
|
-
m(
|
|
172
|
-
|
|
172
|
+
m(o, p) {
|
|
173
|
+
J(e, o, p), t = !0;
|
|
173
174
|
},
|
|
174
|
-
p(
|
|
175
|
-
const
|
|
176
|
-
|
|
175
|
+
p(o, p) {
|
|
176
|
+
const m = {};
|
|
177
|
+
p & 2 && (m.tag = o[1]), e.$set(m);
|
|
177
178
|
},
|
|
178
|
-
i(
|
|
179
|
-
t || (
|
|
179
|
+
i(o) {
|
|
180
|
+
t || (v(e.$$.fragment, o), t = !0);
|
|
180
181
|
},
|
|
181
|
-
o(
|
|
182
|
-
|
|
182
|
+
o(o) {
|
|
183
|
+
y(e.$$.fragment, o), t = !1;
|
|
183
184
|
},
|
|
184
|
-
d(
|
|
185
|
-
|
|
185
|
+
d(o) {
|
|
186
|
+
K(e, o);
|
|
186
187
|
}
|
|
187
188
|
};
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
-
let e, t,
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
return
|
|
190
|
+
function ot(i) {
|
|
191
|
+
let e, t, o, p, m, s, f, g, w, l;
|
|
192
|
+
const T = [tt, $], u = [];
|
|
193
|
+
function a(n, r) {
|
|
194
|
+
return n[12] ? 0 : 1;
|
|
194
195
|
}
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
return
|
|
196
|
+
o = a(i), p = u[o] = T[o](i);
|
|
197
|
+
const z = [it, et], c = [];
|
|
198
|
+
function A(n, r) {
|
|
199
|
+
return n[13] ? 0 : 1;
|
|
199
200
|
}
|
|
200
|
-
return s =
|
|
201
|
+
return s = A(i), f = c[s] = z[s](i), {
|
|
201
202
|
c() {
|
|
202
|
-
e =
|
|
203
|
+
e = C("div"), t = C("div"), p.c(), m = W(), f.c(), d(t, "class", g = V(G("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), d(t, "data-tag-unfolded", i[8]), d(t, "data-tag-id", i[11]), d(t, "data-content-type", w = i[1].contentType), h(t, "left", i[7]), h(t, "top", i[6]), h(t, "z-index", i[5]), d(e, "class", "tag svelte-pzwdws"), d(e, "data-tag-id", i[11]), _(e, "unClickable", i[1].mergedConfig.clickable === !1), _(e, "disable", i[10]), _(e, "hide", i[9]), _(e, "withAnimation", i[0]);
|
|
203
204
|
},
|
|
204
|
-
m(
|
|
205
|
-
|
|
205
|
+
m(n, r) {
|
|
206
|
+
P(n, e, r), j(e, t), u[o].m(t, null), j(t, m), c[s].m(t, null), l = !0;
|
|
206
207
|
},
|
|
207
|
-
p(
|
|
208
|
-
let
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}), B(),
|
|
212
|
-
let
|
|
213
|
-
s =
|
|
214
|
-
|
|
215
|
-
}), B(),
|
|
208
|
+
p(n, [r]) {
|
|
209
|
+
let b = o;
|
|
210
|
+
o = a(n), o === b ? u[o].p(n, r) : (E(), y(u[b], 1, 1, () => {
|
|
211
|
+
u[b] = null;
|
|
212
|
+
}), B(), p = u[o], p ? p.p(n, r) : (p = u[o] = T[o](n), p.c()), v(p, 1), p.m(t, m));
|
|
213
|
+
let k = s;
|
|
214
|
+
s = A(n), s === k ? c[s].p(n, r) : (E(), y(c[k], 1, 1, () => {
|
|
215
|
+
c[k] = null;
|
|
216
|
+
}), B(), f = c[s], f ? f.p(n, r) : (f = c[s] = z[s](n), f.c()), v(f, 1), f.m(t, null)), (!l || r & 2 && g !== (g = V(G("wrapper", n[1].className ? `${n[1].className}__wrapper` : void 0)) + " svelte-pzwdws")) && d(t, "class", g), (!l || r & 256) && d(t, "data-tag-unfolded", n[8]), (!l || r & 2048) && d(t, "data-tag-id", n[11]), (!l || r & 2 && w !== (w = n[1].contentType)) && d(t, "data-content-type", w), r & 128 && h(t, "left", n[7]), r & 64 && h(t, "top", n[6]), r & 32 && h(t, "z-index", n[5]), (!l || r & 2048) && d(e, "data-tag-id", n[11]), (!l || r & 2) && _(e, "unClickable", n[1].mergedConfig.clickable === !1), (!l || r & 1024) && _(e, "disable", n[10]), (!l || r & 512) && _(e, "hide", n[9]), (!l || r & 1) && _(e, "withAnimation", n[0]);
|
|
216
217
|
},
|
|
217
|
-
i(
|
|
218
|
-
|
|
218
|
+
i(n) {
|
|
219
|
+
l || (v(p), v(f), l = !0);
|
|
219
220
|
},
|
|
220
|
-
o(
|
|
221
|
-
|
|
221
|
+
o(n) {
|
|
222
|
+
y(p), y(f), l = !1;
|
|
222
223
|
},
|
|
223
|
-
d(
|
|
224
|
-
|
|
224
|
+
d(n) {
|
|
225
|
+
n && N(e), u[o].d(), c[s].d();
|
|
225
226
|
}
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
let
|
|
230
|
-
const
|
|
231
|
-
return
|
|
232
|
-
"withAnimation" in
|
|
233
|
-
},
|
|
234
|
-
var
|
|
235
|
-
|
|
229
|
+
function rt(i, e, t) {
|
|
230
|
+
let o, p, m, s, f, g, w, l, T, { withAnimation: u = !1 } = e, { tag: a } = e, { mediaStore: z } = e, { state: c } = e, { temporaryState: A } = e;
|
|
231
|
+
const n = X("hooks");
|
|
232
|
+
return i.$$set = (r) => {
|
|
233
|
+
"withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, a = r.tag), "mediaStore" in r && t(2, z = r.mediaStore), "state" in r && t(3, c = r.state), "temporaryState" in r && t(4, A = r.temporaryState);
|
|
234
|
+
}, i.$$.update = () => {
|
|
235
|
+
var r, b, k, L, I, q, D, R;
|
|
236
|
+
i.$$.dirty & 2 && t(13, o = (() => !(a.contentType === "Sticker" || a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane"))()), i.$$.dirty & 2 && t(12, p = (() => a.stickType === "2DPoint")()), i.$$.dirty & 2 && t(11, m = a.id), i.$$.dirty & 2 && t(10, s = !((r = a.pointTagStyle) != null && r.leftPercent) || !((b = a.pointTagStyle) != null && b.topPercent) || a.enabled === !1 || !a.state), i.$$.dirty & 2 && t(9, f = !((k = a.state) != null && k.visible) || ((L = a.temporaryState) == null ? void 0 : L.visible) === !1), i.$$.dirty & 2 && t(8, g = (I = a.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && t(7, w = ((q = a.pointTagStyle) == null ? void 0 : q.leftPercent) + "%"), i.$$.dirty & 2 && t(6, l = ((D = a.pointTagStyle) == null ? void 0 : D.topPercent) + "%"), i.$$.dirty & 2 && t(5, T = (R = a.state) != null && R.unfolded ? 1 : 0);
|
|
236
237
|
}, [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
_,
|
|
238
|
+
u,
|
|
239
|
+
a,
|
|
240
240
|
z,
|
|
241
|
-
r,
|
|
242
241
|
c,
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
A,
|
|
243
|
+
T,
|
|
244
|
+
l,
|
|
245
245
|
w,
|
|
246
|
-
|
|
246
|
+
g,
|
|
247
|
+
f,
|
|
247
248
|
s,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
m,
|
|
250
|
+
p,
|
|
251
|
+
o,
|
|
252
|
+
n
|
|
252
253
|
];
|
|
253
254
|
}
|
|
254
|
-
class
|
|
255
|
+
class Qe extends M {
|
|
255
256
|
constructor(e) {
|
|
256
|
-
super(),
|
|
257
|
+
super(), O(
|
|
257
258
|
this,
|
|
258
259
|
e,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
rt,
|
|
261
|
+
ot,
|
|
262
|
+
Q,
|
|
262
263
|
{
|
|
263
264
|
withAnimation: 0,
|
|
264
265
|
tag: 1,
|
|
@@ -266,10 +267,10 @@ class Me extends K {
|
|
|
266
267
|
state: 3,
|
|
267
268
|
temporaryState: 4
|
|
268
269
|
},
|
|
269
|
-
|
|
270
|
+
x
|
|
270
271
|
);
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
274
|
export {
|
|
274
|
-
|
|
275
|
+
Qe as default
|
|
275
276
|
};
|
|
@@ -70,6 +70,7 @@ import "../Components/Common/Icon/Icon.js";
|
|
|
70
70
|
import "../utils/getImageInfo.js";
|
|
71
71
|
import "../utils/px2rem.js";
|
|
72
72
|
import "../Assets/Icon.js";
|
|
73
|
+
import "classnames";
|
|
73
74
|
import "../Components/Tag/TextTag/index.js";
|
|
74
75
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
75
76
|
import "../Components/Common/Line/Straight.js";
|
|
@@ -131,7 +132,7 @@ import "../Components/Tag/LinkTag.js";
|
|
|
131
132
|
import "../Components/Tag/CustomTag.js";
|
|
132
133
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
133
134
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
134
|
-
class
|
|
135
|
+
class Le extends O {
|
|
135
136
|
constructor(t) {
|
|
136
137
|
super(t);
|
|
137
138
|
d(this, "group", new P());
|
|
@@ -320,5 +321,5 @@ class Ue extends O {
|
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
export {
|
|
323
|
-
|
|
324
|
+
Le as TagRender
|
|
324
325
|
};
|
|
@@ -206,7 +206,7 @@ class le extends b {
|
|
|
206
206
|
if (!i || !this.domEvents)
|
|
207
207
|
return () => {
|
|
208
208
|
};
|
|
209
|
-
const t = () => !(
|
|
209
|
+
const t = () => !(!e.state.visible || !this.state.visible || v(e) && !e.mediaVisible), d = (s) => {
|
|
210
210
|
if (!t()) {
|
|
211
211
|
this.mouseInfo = void 0;
|
|
212
212
|
return;
|
|
@@ -142,14 +142,15 @@ import "../Components/Tag/LinkTag.js";
|
|
|
142
142
|
import "../Components/Common/Icon/Icon.js";
|
|
143
143
|
import "../utils/getImageInfo.js";
|
|
144
144
|
import "../Components/Tag/CustomTag.js";
|
|
145
|
+
import "classnames";
|
|
145
146
|
import "../Components/Common/TagPoint.js";
|
|
146
147
|
import "../utils/model/imagePlane.js";
|
|
147
148
|
import "../../CSS3DRenderPlugin/index.js";
|
|
148
149
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
149
150
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
150
151
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
151
|
-
const D = "Dnalogel-PanoTagPlugin",
|
|
152
|
-
class
|
|
152
|
+
const D = "Dnalogel-PanoTagPlugin", Yt = (d) => `${D}--${d}`;
|
|
153
|
+
class Zt extends k {
|
|
153
154
|
constructor(e, t) {
|
|
154
155
|
super(e);
|
|
155
156
|
p(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -417,7 +418,7 @@ class Yt extends k {
|
|
|
417
418
|
}
|
|
418
419
|
}
|
|
419
420
|
export {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
Zt as PanoTagPluginController,
|
|
422
|
+
Zt as default,
|
|
423
|
+
Yt as pluginFlag
|
|
423
424
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as Dr, pluginFlag as Fr } from "./controller/index.js";
|
|
3
|
+
import { ContentType as hr } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as kr } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "object-assign-deep";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -117,18 +117,19 @@ import "./Components/Tag/LinkTag.js";
|
|
|
117
117
|
import "./Components/Common/Icon/Icon.js";
|
|
118
118
|
import "./utils/getImageInfo.js";
|
|
119
119
|
import "./Components/Tag/CustomTag.js";
|
|
120
|
+
import "classnames";
|
|
120
121
|
import "./Components/Common/TagPoint.js";
|
|
121
122
|
import "./utils/model/imagePlane.js";
|
|
122
123
|
import "../CSS3DRenderPlugin/index.js";
|
|
123
124
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
124
125
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
125
126
|
import "../shared-utils/three/GLTFLoader.js";
|
|
126
|
-
const
|
|
127
|
+
const yr = (o, r) => new t(o, r);
|
|
127
128
|
export {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
hr as ContentType,
|
|
130
|
+
kr as DimensionType,
|
|
131
|
+
yr as PanoTagPlugin,
|
|
132
|
+
Dr as PanoTagPluginController,
|
|
133
|
+
yr as default,
|
|
134
|
+
Fr as pluginFlag
|
|
134
135
|
};
|
|
@@ -35,6 +35,8 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
|
|
|
35
35
|
normal?: Position;
|
|
36
36
|
/** 自定义标签内容 */
|
|
37
37
|
element?: string | Element | ElementRenderer;
|
|
38
|
+
/** 标签 wrapper 的 classname */
|
|
39
|
+
className?: string;
|
|
38
40
|
/** 标签数据 */
|
|
39
41
|
data: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
|
|
40
42
|
/** 「展开/收起」 「可见/不可见」 的策略配置 */
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
|
|
|
4
4
|
import { Subscribe as c } from "../shared-utils/Subscribe.js";
|
|
5
5
|
class o {
|
|
6
6
|
constructor(r, t) {
|
|
7
|
-
s(this, "VERSION", "2.
|
|
7
|
+
s(this, "VERSION", "2.15.0-alpha.0");
|
|
8
8
|
s(this, "five");
|
|
9
9
|
s(this, "hooks", new c());
|
|
10
10
|
s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as d from "three";
|
|
2
2
|
function n(t, e) {
|
|
3
|
-
this._camera = t || null, this._domElement = e || document, this._raycaster = new
|
|
3
|
+
this._camera = t || null, this._domElement = e || document, this._raycaster = new d.Raycaster(), this._selected = null, this._boundObjs = {};
|
|
4
4
|
var o = this;
|
|
5
5
|
this._$onClick = function() {
|
|
6
6
|
o._onClick.apply(o, arguments);
|
|
@@ -100,27 +100,27 @@ n.prototype._bound = function(t, e) {
|
|
|
100
100
|
n.prototype._onMove = function(t, e, o, i) {
|
|
101
101
|
var s = this._boundObjs[t];
|
|
102
102
|
if (!(s === void 0 || s.length === 0)) {
|
|
103
|
-
var r = new
|
|
103
|
+
var r = new d.Vector2();
|
|
104
104
|
r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
|
|
105
105
|
var a = this._raycaster.intersectObjects(s), u = this._selected;
|
|
106
106
|
if (a.length > 0) {
|
|
107
|
-
var h,
|
|
108
|
-
this._selected = _,
|
|
107
|
+
var h, c, l, p = a[0], _ = p.object;
|
|
108
|
+
this._selected = _, l = this._bound("mousemove", _), u != _ && (h = this._bound("mouseover", _), c = u && this._bound("mouseout", u));
|
|
109
109
|
} else
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
c = u && this._bound("mouseout", u), this._selected = null;
|
|
111
|
+
l && this._notify("mousemove", _, i, p), h && this._notify("mouseover", _, i, p), c && this._notify("mouseout", u, i, p);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
n.prototype._onEvent = function(t, e, o, i) {
|
|
115
115
|
var s = this._boundObjs[t];
|
|
116
116
|
if (!(s === void 0 || s.length === 0)) {
|
|
117
|
-
var r = new
|
|
117
|
+
var r = new d.Vector2();
|
|
118
118
|
r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
|
|
119
119
|
var a = this._raycaster.intersectObjects(s, !0);
|
|
120
120
|
if (a.length !== 0) {
|
|
121
|
-
for (var u = a[0], h = u.object,
|
|
122
|
-
|
|
123
|
-
!
|
|
121
|
+
for (var u = a[0], h = u.object, c = this._objectCtxGet(h), l = h.parent; typeof c == "undefined" && l; )
|
|
122
|
+
c = this._objectCtxGet(l), l = l.parent;
|
|
123
|
+
!c || this._notify(t, h, i, u);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
};
|
|
@@ -174,7 +174,6 @@ n.prototype._onTouchEnd = function(t) {
|
|
|
174
174
|
};
|
|
175
175
|
n.prototype._onTouchMove = function(t) {
|
|
176
176
|
if (t.touches.length == 1) {
|
|
177
|
-
t.preventDefault();
|
|
178
177
|
var e = Number(t.touches[0].pageX / window.innerWidth) * 2 - 1, o = -(t.touches[0].pageY / window.innerHeight) * 2 + 1;
|
|
179
178
|
this._onMove("mousemove", e, o, t), this._onMove("mouseover", e, o, t), this._onMove("mouseout", e, o, t);
|
|
180
179
|
}
|
|
@@ -182,7 +181,6 @@ n.prototype._onTouchMove = function(t) {
|
|
|
182
181
|
n.prototype._onTouchEvent = function(t, e) {
|
|
183
182
|
var o = e.touches;
|
|
184
183
|
if (o.length == 0 && (o = e.changedTouches), o.length == 1) {
|
|
185
|
-
e.preventDefault();
|
|
186
184
|
var i = Number(o[0].pageX / window.innerWidth) * 2 - 1, s = -(o[0].pageY / window.innerHeight) * 2 + 1;
|
|
187
185
|
this._onEvent(t, i, s, e);
|
|
188
186
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.15.0-alpha.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|