@realsee/dnalogel 2.13.2-0 → 2.13.2-dev.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/index.cjs.js +21 -21
- package/dist/index.js +2006 -1999
- package/dist/index.umd.js +27 -27
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- 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 +5 -5
- 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 +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/ModelRoomLabelPlugin/Controller.js +4 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +118 -109
- package/libs/ModelRoomLabelPlugin/index.js +7 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,164 +1,173 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var A = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var G = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var C = (o, t, e) => t in o ? A(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, D = (o, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, S = (
|
|
13
|
-
import { SvelteComponent as
|
|
14
|
-
import { Raycaster as
|
|
15
|
-
import
|
|
7
|
+
G.call(t, e) && C(o, e, t[e]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var e of R(t))
|
|
10
|
+
J.call(t, e) && C(o, e, t[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, S = (o, t) => B(o, E(t));
|
|
13
|
+
import { SvelteComponent as K, init as N, safe_not_equal as Q, append_styles as X, element as Y, attr as Z, insert as T, action_destroyer as $, listen as U, update_keyed_each as ee, check_outros as te, transition_in as W, transition_out as V, detach as j, run_all as oe, afterUpdate as ne, onDestroy as re, globals as ie, empty as se, create_component as le, mount_component as ce, destroy_component as ae, group_outros as fe, outro_and_destroy_block as me } from "../vendor/svelte/internal/index.js";
|
|
14
|
+
import { Raycaster as ue, Vector3 as F } from "three";
|
|
15
|
+
import de from "./RoomLabelItem.js";
|
|
16
|
+
import { svelteResizeObserver as he } from "../shared-utils/svelte/resizeObserver.js";
|
|
16
17
|
import "./Assets/roomLabelBg.js";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
19
|
+
const { Map: pe } = ie;
|
|
20
|
+
function _e(o) {
|
|
21
|
+
X(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
20
22
|
}
|
|
21
|
-
function
|
|
22
|
-
const
|
|
23
|
-
return
|
|
23
|
+
function H(o, t, e) {
|
|
24
|
+
const c = o.slice();
|
|
25
|
+
return c[13] = t[e], c;
|
|
24
26
|
}
|
|
25
|
-
function
|
|
26
|
-
let e,
|
|
27
|
-
return
|
|
27
|
+
function O(o, t) {
|
|
28
|
+
let e, c, r;
|
|
29
|
+
return c = new de({
|
|
28
30
|
props: {
|
|
29
|
-
roomLabel: t[
|
|
31
|
+
roomLabel: t[13],
|
|
30
32
|
five: t[1]
|
|
31
33
|
}
|
|
32
34
|
}), {
|
|
33
|
-
key:
|
|
35
|
+
key: o,
|
|
34
36
|
first: null,
|
|
35
37
|
c() {
|
|
36
|
-
e =
|
|
38
|
+
e = se(), le(c.$$.fragment), this.first = e;
|
|
37
39
|
},
|
|
38
|
-
m(
|
|
39
|
-
|
|
40
|
+
m(n, f) {
|
|
41
|
+
T(n, e, f), ce(c, n, f), r = !0;
|
|
40
42
|
},
|
|
41
|
-
p(
|
|
42
|
-
t =
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
p(n, f) {
|
|
44
|
+
t = n;
|
|
45
|
+
const a = {};
|
|
46
|
+
f & 1 && (a.roomLabel = t[13]), f & 2 && (a.five = t[1]), c.$set(a);
|
|
45
47
|
},
|
|
46
|
-
i(
|
|
47
|
-
|
|
48
|
+
i(n) {
|
|
49
|
+
r || (W(c.$$.fragment, n), r = !0);
|
|
48
50
|
},
|
|
49
|
-
o(
|
|
50
|
-
V(
|
|
51
|
+
o(n) {
|
|
52
|
+
V(c.$$.fragment, n), r = !1;
|
|
51
53
|
},
|
|
52
|
-
d(
|
|
53
|
-
|
|
54
|
+
d(n) {
|
|
55
|
+
n && j(e), ae(c, n);
|
|
54
56
|
}
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
|
-
function
|
|
58
|
-
let t, e = [],
|
|
59
|
-
const
|
|
60
|
-
for (let
|
|
61
|
-
let
|
|
62
|
-
|
|
59
|
+
function ge(o) {
|
|
60
|
+
let t, e = [], c = new pe(), r, n, f, a = o[0];
|
|
61
|
+
const u = (i) => i[13].id;
|
|
62
|
+
for (let i = 0; i < a.length; i += 1) {
|
|
63
|
+
let s = H(o, a, i), d = u(s);
|
|
64
|
+
c.set(d, e[i] = O(d, s));
|
|
63
65
|
}
|
|
64
66
|
return {
|
|
65
67
|
c() {
|
|
66
|
-
t =
|
|
67
|
-
for (let
|
|
68
|
-
e[
|
|
69
|
-
|
|
68
|
+
t = Y("div");
|
|
69
|
+
for (let i = 0; i < e.length; i += 1)
|
|
70
|
+
e[i].c();
|
|
71
|
+
Z(t, "class", "room-labels-container svelte-9eg4zi");
|
|
70
72
|
},
|
|
71
|
-
m(
|
|
72
|
-
|
|
73
|
+
m(i, s) {
|
|
74
|
+
T(i, t, s);
|
|
73
75
|
for (let d = 0; d < e.length; d += 1)
|
|
74
76
|
e[d].m(t, null);
|
|
75
|
-
|
|
77
|
+
r = !0, n || (f = [
|
|
78
|
+
$(he.call(null, t)),
|
|
79
|
+
U(t, "clientWidth", o[6]),
|
|
80
|
+
U(t, "clientHeight", o[7])
|
|
81
|
+
], n = !0);
|
|
76
82
|
},
|
|
77
|
-
p(
|
|
78
|
-
|
|
83
|
+
p(i, [s]) {
|
|
84
|
+
s & 3 && (a = i[0], fe(), e = ee(e, s, u, 1, i, a, c, t, me, O, null, H), te());
|
|
79
85
|
},
|
|
80
|
-
i(
|
|
86
|
+
i(i) {
|
|
81
87
|
if (!r) {
|
|
82
|
-
for (let
|
|
83
|
-
|
|
88
|
+
for (let s = 0; s < a.length; s += 1)
|
|
89
|
+
W(e[s]);
|
|
84
90
|
r = !0;
|
|
85
91
|
}
|
|
86
92
|
},
|
|
87
|
-
o(
|
|
88
|
-
for (let
|
|
89
|
-
V(e[
|
|
93
|
+
o(i) {
|
|
94
|
+
for (let s = 0; s < e.length; s += 1)
|
|
95
|
+
V(e[s]);
|
|
90
96
|
r = !1;
|
|
91
97
|
},
|
|
92
|
-
d(
|
|
93
|
-
|
|
94
|
-
for (let
|
|
95
|
-
e[
|
|
96
|
-
|
|
98
|
+
d(i) {
|
|
99
|
+
i && j(t);
|
|
100
|
+
for (let s = 0; s < e.length; s += 1)
|
|
101
|
+
e[s].d();
|
|
102
|
+
n = !1, oe(f);
|
|
97
103
|
}
|
|
98
104
|
};
|
|
99
105
|
}
|
|
100
|
-
function
|
|
106
|
+
function be(o, t, e) {
|
|
101
107
|
var k;
|
|
102
|
-
let
|
|
103
|
-
function i(
|
|
104
|
-
if (!(
|
|
108
|
+
let c, { five: r } = t, { roomLabels: n } = t, f, a, u = (k = r.model.shownFloor) != null ? k : null;
|
|
109
|
+
function i(l) {
|
|
110
|
+
if (!(u === null || l.floorIndex === u))
|
|
105
111
|
return !1;
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
const [
|
|
109
|
-
return !(
|
|
112
|
+
const b = new ue(), h = r.camera.position.clone(), p = new F(l.position.x, l.position.y, l.position.z), y = p.distanceTo(h);
|
|
113
|
+
b.set(h.clone(), p.clone().sub(h).normalize());
|
|
114
|
+
const [m] = r.model.intersectRaycaster(b);
|
|
115
|
+
return !(m && m.distance + 1 < y);
|
|
110
116
|
}
|
|
111
|
-
function
|
|
112
|
-
const
|
|
113
|
-
return `translate(${
|
|
117
|
+
function s(l, _) {
|
|
118
|
+
const h = new F(l.position.x, l.position.y, l.position.z).clone().project(r.camera), p = Math.ceil((h.x + 1) / 2 * _.x), y = Math.ceil((-h.y + 1) / 2 * _.y);
|
|
119
|
+
return `translate(${p}px, ${y}px)`;
|
|
114
120
|
}
|
|
115
|
-
function
|
|
116
|
-
const { rendererSize:
|
|
117
|
-
function
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
return
|
|
121
|
-
const { x: w, y: v, z: x } =
|
|
122
|
-
return
|
|
121
|
+
function d(l) {
|
|
122
|
+
const { rendererSize: _, shownFloor: b } = l, h = /* @__PURE__ */ new Map();
|
|
123
|
+
function p(m) {
|
|
124
|
+
const g = h.get(m.id);
|
|
125
|
+
if (g)
|
|
126
|
+
return g;
|
|
127
|
+
const { x: w, y: v, z: x } = m.position, L = new F(w, v, x).clone().distanceTo(r.camera.position);
|
|
128
|
+
return h.set(m.id, L), L;
|
|
123
129
|
}
|
|
124
|
-
return
|
|
125
|
-
const
|
|
126
|
-
return S(
|
|
130
|
+
return n.map((m) => {
|
|
131
|
+
const g = i(m), w = g ? s(m, _) : m.transform, v = p(m), L = n.filter((M) => M.visible && p(M) < v).length * 10;
|
|
132
|
+
return S(D({}, m), { visible: g, transform: w, zIndex: L });
|
|
127
133
|
});
|
|
128
134
|
}
|
|
129
|
-
function
|
|
130
|
-
e(0,
|
|
135
|
+
function I() {
|
|
136
|
+
e(0, n = d({ rendererSize: c, shownFloor: u }));
|
|
131
137
|
}
|
|
132
|
-
function
|
|
133
|
-
e(4,
|
|
138
|
+
function z(l) {
|
|
139
|
+
e(4, u = l);
|
|
134
140
|
}
|
|
135
|
-
|
|
136
|
-
e(0,
|
|
137
|
-
}),
|
|
138
|
-
|
|
141
|
+
r.on("cameraUpdate", I), r.on("modelShownFloorChange", z), ne(() => {
|
|
142
|
+
e(0, n = d({ rendererSize: c, shownFloor: u }));
|
|
143
|
+
}), re(() => {
|
|
144
|
+
r.off("cameraUpdate", I), r.off("modelShownFloorChange", z);
|
|
139
145
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
const q = (l) => {
|
|
147
|
+
e(2, f = l.detail);
|
|
148
|
+
}, P = (l) => {
|
|
149
|
+
e(3, a = l.detail);
|
|
150
|
+
};
|
|
151
|
+
return o.$$set = (l) => {
|
|
152
|
+
"five" in l && e(1, r = l.five), "roomLabels" in l && e(0, n = l.roomLabels);
|
|
153
|
+
}, o.$$.update = () => {
|
|
154
|
+
o.$$.dirty & 12 && e(5, c = { x: f, y: a }), o.$$.dirty & 48 && e(0, n = d({ rendererSize: c, shownFloor: u }));
|
|
147
155
|
}, [
|
|
156
|
+
n,
|
|
148
157
|
r,
|
|
149
|
-
|
|
158
|
+
f,
|
|
150
159
|
a,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
160
|
+
u,
|
|
161
|
+
c,
|
|
162
|
+
q,
|
|
163
|
+
P
|
|
155
164
|
];
|
|
156
165
|
}
|
|
157
|
-
class
|
|
166
|
+
class ke extends K {
|
|
158
167
|
constructor(t) {
|
|
159
|
-
super(),
|
|
168
|
+
super(), N(this, t, be, ge, Q, { five: 1, roomLabels: 0 }, _e);
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
171
|
export {
|
|
163
|
-
|
|
172
|
+
ke as default
|
|
164
173
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { ModelRoomLabelController as
|
|
1
|
+
import { ModelRoomLabelController as r } from "./Controller.js";
|
|
2
2
|
import "./RoomLabelItems.js";
|
|
3
3
|
import "../vendor/svelte/internal/index.js";
|
|
4
4
|
import "three";
|
|
5
5
|
import "./RoomLabelItem.js";
|
|
6
6
|
import "./Assets/roomLabelBg.js";
|
|
7
|
+
import "../shared-utils/svelte/resizeObserver.js";
|
|
8
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
7
9
|
import "./utils/parseData.js";
|
|
8
|
-
const
|
|
10
|
+
const s = (o) => new r(o), u = {
|
|
9
11
|
name: "ModelRoomLabelPlugin",
|
|
10
12
|
version: 0
|
|
11
13
|
};
|
|
12
14
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
s as ModelRoomLabelPlugin,
|
|
16
|
+
s as default,
|
|
17
|
+
u as modelRoomLabelPluginServerParams
|
|
16
18
|
};
|
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 x {
|
|
6
6
|
constructor(r, t) {
|
|
7
|
-
s(this, "VERSION", "2.13.2-0");
|
|
7
|
+
s(this, "VERSION", "2.13.2-dev.0");
|
|
8
8
|
s(this, "five");
|
|
9
9
|
s(this, "hooks", new c());
|
|
10
10
|
s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
package/libs/index.js
CHANGED
|
@@ -77,6 +77,8 @@ import "./ModelRoomLabelPlugin/RoomLabelItems.js";
|
|
|
77
77
|
import "./vendor/svelte/internal/index.js";
|
|
78
78
|
import "./ModelRoomLabelPlugin/RoomLabelItem.js";
|
|
79
79
|
import "./ModelRoomLabelPlugin/Assets/roomLabelBg.js";
|
|
80
|
+
import "./shared-utils/svelte/resizeObserver.js";
|
|
81
|
+
import "./vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
80
82
|
import "./ModelRoomLabelPlugin/utils/parseData.js";
|
|
81
83
|
import "./floorplan/ModelFloorplanPlugin/Controller.js";
|
|
82
84
|
import "./shared-utils/to.js";
|
|
@@ -97,8 +99,6 @@ import "./floorplan/Components/Normalmage.js";
|
|
|
97
99
|
import "./floorplan/Components/SvgImage.js";
|
|
98
100
|
import "./floorplan/Components/RoomLabels/RoomLabels.js";
|
|
99
101
|
import "./floorplan/Components/RoomLabels/RoomLabel.js";
|
|
100
|
-
import "./shared-utils/svelte/resizeObserver.js";
|
|
101
|
-
import "./vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
102
102
|
import "./floorplan/Components/RuleLabels/RuleLabels.js";
|
|
103
103
|
import "./floorplan/Components/RuleLabels/RuleItem.js";
|
|
104
104
|
import "./floorplan/Components/RoomMaterials/RoomMaterial.js";
|
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.13.2-0",
|
|
10
|
+
"version": "2.13.2-dev.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*",
|