@realsee/dnalogel 2.13.1 → 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 +51 -51
- package/dist/index.js +5485 -5179
- package/dist/index.umd.js +46 -46
- package/dist/shared-utils/svelte/resizeObserver.d.ts +10 -0
- 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 +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/PanoVideoPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- 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/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +99 -93
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +72 -66
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -5
- package/libs/PanoTagPlugin/index.js +13 -11
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +108 -100
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +96 -92
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +33 -31
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +109 -100
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +106 -104
- package/libs/shared-utils/svelte/resizeObserver.d.ts +10 -0
- package/libs/shared-utils/svelte/resizeObserver.js +12 -0
- package/libs/vendor/resize-observer-polyfill/dist/ResizeObserver.es.js +269 -0
- package/package.json +2 -1
|
@@ -1,57 +1,61 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
1
|
+
import { SvelteComponent as T, init as V, safe_not_equal as D, append_styles as I, empty as k, insert as h, transition_in as _, group_outros as A, transition_out as d, check_outros as y, detach as g, element as W, attr as w, action_destroyer as z, listen as q, update_keyed_each as C, outro_and_destroy_block as M, run_all as O, assign as S, create_component as j, mount_component as B, get_spread_update as F, destroy_component as G } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { RoomLabel as H } from "./RoomLabel.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { svelteResizeObserver as J } from "../../../shared-utils/svelte/resizeObserver.js";
|
|
4
|
+
function K(m) {
|
|
5
|
+
I(m, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
5
6
|
}
|
|
6
|
-
function R(
|
|
7
|
-
const l =
|
|
7
|
+
function R(m, e, o) {
|
|
8
|
+
const l = m.slice();
|
|
8
9
|
return l[12] = e[o], l;
|
|
9
10
|
}
|
|
10
|
-
function L(
|
|
11
|
-
let e, o = [], l = /* @__PURE__ */ new Map(),
|
|
12
|
-
const
|
|
13
|
-
for (let
|
|
14
|
-
let
|
|
15
|
-
l.set(
|
|
11
|
+
function L(m) {
|
|
12
|
+
let e, o = [], l = /* @__PURE__ */ new Map(), n, f, u, t = m[8];
|
|
13
|
+
const b = (a) => a[12].id;
|
|
14
|
+
for (let a = 0; a < t.length; a += 1) {
|
|
15
|
+
let r = R(m, t, a), s = b(r);
|
|
16
|
+
l.set(s, o[a] = v(s, r));
|
|
16
17
|
}
|
|
17
18
|
return {
|
|
18
19
|
c() {
|
|
19
|
-
e =
|
|
20
|
-
for (let
|
|
21
|
-
o[
|
|
22
|
-
w(e, "class", "floorplan-plugin__room-labels svelte-13xux0b")
|
|
20
|
+
e = W("div");
|
|
21
|
+
for (let a = 0; a < o.length; a += 1)
|
|
22
|
+
o[a].c();
|
|
23
|
+
w(e, "class", "floorplan-plugin__room-labels svelte-13xux0b");
|
|
23
24
|
},
|
|
24
|
-
m(
|
|
25
|
-
|
|
26
|
-
for (let
|
|
27
|
-
o[
|
|
28
|
-
|
|
25
|
+
m(a, r) {
|
|
26
|
+
h(a, e, r);
|
|
27
|
+
for (let s = 0; s < o.length; s += 1)
|
|
28
|
+
o[s].m(e, null);
|
|
29
|
+
n = !0, f || (u = [
|
|
30
|
+
z(J.call(null, e)),
|
|
31
|
+
q(e, "clientWidth", m[11])
|
|
32
|
+
], f = !0);
|
|
29
33
|
},
|
|
30
|
-
p(
|
|
31
|
-
|
|
34
|
+
p(a, r) {
|
|
35
|
+
r & 447 && (t = a[8], A(), o = C(o, r, b, 1, a, t, l, e, M, v, null, R), y());
|
|
32
36
|
},
|
|
33
|
-
i(
|
|
34
|
-
if (!
|
|
35
|
-
for (let
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
i(a) {
|
|
38
|
+
if (!n) {
|
|
39
|
+
for (let r = 0; r < t.length; r += 1)
|
|
40
|
+
_(o[r]);
|
|
41
|
+
n = !0;
|
|
38
42
|
}
|
|
39
43
|
},
|
|
40
|
-
o(
|
|
41
|
-
for (let
|
|
42
|
-
d(o[
|
|
43
|
-
|
|
44
|
+
o(a) {
|
|
45
|
+
for (let r = 0; r < o.length; r += 1)
|
|
46
|
+
d(o[r]);
|
|
47
|
+
n = !1;
|
|
44
48
|
},
|
|
45
|
-
d(
|
|
46
|
-
|
|
47
|
-
for (let
|
|
48
|
-
o[
|
|
49
|
-
|
|
49
|
+
d(a) {
|
|
50
|
+
a && g(e);
|
|
51
|
+
for (let r = 0; r < o.length; r += 1)
|
|
52
|
+
o[r].d();
|
|
53
|
+
f = !1, O(u);
|
|
50
54
|
}
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
|
-
function
|
|
54
|
-
let o, l,
|
|
57
|
+
function v(m, e) {
|
|
58
|
+
let o, l, n;
|
|
55
59
|
const f = [
|
|
56
60
|
{
|
|
57
61
|
pxmm: e[7],
|
|
@@ -64,21 +68,21 @@ function k(i, e) {
|
|
|
64
68
|
adaptiveRoomLabelVisibleEnable: e[5]
|
|
65
69
|
}
|
|
66
70
|
];
|
|
67
|
-
let
|
|
68
|
-
for (let
|
|
69
|
-
|
|
70
|
-
return l = new H({ props:
|
|
71
|
-
key:
|
|
71
|
+
let u = {};
|
|
72
|
+
for (let t = 0; t < f.length; t += 1)
|
|
73
|
+
u = S(u, f[t]);
|
|
74
|
+
return l = new H({ props: u }), {
|
|
75
|
+
key: m,
|
|
72
76
|
first: null,
|
|
73
77
|
c() {
|
|
74
|
-
o =
|
|
78
|
+
o = k(), j(l.$$.fragment), this.first = o;
|
|
75
79
|
},
|
|
76
|
-
m(
|
|
77
|
-
|
|
80
|
+
m(t, b) {
|
|
81
|
+
h(t, o, b), B(l, t, b), n = !0;
|
|
78
82
|
},
|
|
79
|
-
p(
|
|
80
|
-
e =
|
|
81
|
-
const
|
|
83
|
+
p(t, b) {
|
|
84
|
+
e = t;
|
|
85
|
+
const a = b & 447 ? F(f, [
|
|
82
86
|
{
|
|
83
87
|
pxmm: e[7],
|
|
84
88
|
room: e[12],
|
|
@@ -90,79 +94,79 @@ function k(i, e) {
|
|
|
90
94
|
adaptiveRoomLabelVisibleEnable: e[5]
|
|
91
95
|
}
|
|
92
96
|
]) : {};
|
|
93
|
-
l.$set(
|
|
97
|
+
l.$set(a);
|
|
94
98
|
},
|
|
95
|
-
i(
|
|
96
|
-
|
|
99
|
+
i(t) {
|
|
100
|
+
n || (_(l.$$.fragment, t), n = !0);
|
|
97
101
|
},
|
|
98
|
-
o(
|
|
99
|
-
d(l.$$.fragment,
|
|
102
|
+
o(t) {
|
|
103
|
+
d(l.$$.fragment, t), n = !1;
|
|
100
104
|
},
|
|
101
|
-
d(
|
|
102
|
-
|
|
105
|
+
d(t) {
|
|
106
|
+
t && g(o), G(l, t);
|
|
103
107
|
}
|
|
104
108
|
};
|
|
105
109
|
}
|
|
106
|
-
function
|
|
107
|
-
let e, o, l =
|
|
110
|
+
function P(m) {
|
|
111
|
+
let e, o, l = m[8] && L(m);
|
|
108
112
|
return {
|
|
109
113
|
c() {
|
|
110
|
-
l && l.c(), e =
|
|
114
|
+
l && l.c(), e = k();
|
|
111
115
|
},
|
|
112
|
-
m(
|
|
113
|
-
l && l.m(
|
|
116
|
+
m(n, f) {
|
|
117
|
+
l && l.m(n, f), h(n, e, f), o = !0;
|
|
114
118
|
},
|
|
115
|
-
p(
|
|
116
|
-
|
|
119
|
+
p(n, [f]) {
|
|
120
|
+
n[8] ? l ? (l.p(n, f), f & 256 && _(l, 1)) : (l = L(n), l.c(), _(l, 1), l.m(e.parentNode, e)) : l && (A(), d(l, 1, 1, () => {
|
|
117
121
|
l = null;
|
|
118
122
|
}), y());
|
|
119
123
|
},
|
|
120
|
-
i(
|
|
121
|
-
o || (
|
|
124
|
+
i(n) {
|
|
125
|
+
o || (_(l), o = !0);
|
|
122
126
|
},
|
|
123
|
-
o(
|
|
127
|
+
o(n) {
|
|
124
128
|
d(l), o = !1;
|
|
125
129
|
},
|
|
126
|
-
d(
|
|
127
|
-
l && l.d(
|
|
130
|
+
d(n) {
|
|
131
|
+
l && l.d(n), n && g(e);
|
|
128
132
|
}
|
|
129
133
|
};
|
|
130
134
|
}
|
|
131
|
-
function
|
|
132
|
-
let l, { floorIndex:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
return
|
|
137
|
-
"floorIndex" in
|
|
138
|
-
},
|
|
139
|
-
if (
|
|
140
|
-
const { max:
|
|
141
|
-
o(7, E =
|
|
135
|
+
function Q(m, e, o) {
|
|
136
|
+
let l, { floorIndex: n } = e, { roomAreaEnable: f } = e, { roomNameEnable: u } = e, { floorplanData: t } = e, { hoveredRoom: b } = e, { getRoomAreaText: a } = e, { getLabelElement: r } = e, { adaptiveRoomLabelVisibleEnable: s } = e, c = 0, E = 0;
|
|
137
|
+
const N = (i) => {
|
|
138
|
+
o(6, c = i.detail);
|
|
139
|
+
};
|
|
140
|
+
return m.$$set = (i) => {
|
|
141
|
+
"floorIndex" in i && o(9, n = i.floorIndex), "roomAreaEnable" in i && o(0, f = i.roomAreaEnable), "roomNameEnable" in i && o(1, u = i.roomNameEnable), "floorplanData" in i && o(10, t = i.floorplanData), "hoveredRoom" in i && o(2, b = i.hoveredRoom), "getRoomAreaText" in i && o(3, a = i.getRoomAreaText), "getLabelElement" in i && o(4, r = i.getLabelElement), "adaptiveRoomLabelVisibleEnable" in i && o(5, s = i.adaptiveRoomLabelVisibleEnable);
|
|
142
|
+
}, m.$$.update = () => {
|
|
143
|
+
if (m.$$.dirty & 1536 && o(8, l = t.floorDatas[n].rooms), m.$$.dirty & 1088) {
|
|
144
|
+
const { max: i, min: p } = t.bounding, x = i.x - p.x;
|
|
145
|
+
o(7, E = c / x);
|
|
142
146
|
}
|
|
143
147
|
}, [
|
|
144
148
|
f,
|
|
149
|
+
u,
|
|
145
150
|
b,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
_,
|
|
149
|
-
g,
|
|
151
|
+
a,
|
|
152
|
+
r,
|
|
150
153
|
s,
|
|
154
|
+
c,
|
|
151
155
|
E,
|
|
152
156
|
l,
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
n,
|
|
158
|
+
t,
|
|
155
159
|
N
|
|
156
160
|
];
|
|
157
161
|
}
|
|
158
|
-
class
|
|
162
|
+
class Z extends T {
|
|
159
163
|
constructor(e) {
|
|
160
|
-
super(),
|
|
164
|
+
super(), V(
|
|
161
165
|
this,
|
|
162
166
|
e,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
Q,
|
|
168
|
+
P,
|
|
169
|
+
D,
|
|
166
170
|
{
|
|
167
171
|
floorIndex: 9,
|
|
168
172
|
roomAreaEnable: 0,
|
|
@@ -173,10 +177,10 @@ class U extends x {
|
|
|
173
177
|
getLabelElement: 4,
|
|
174
178
|
adaptiveRoomLabelVisibleEnable: 5
|
|
175
179
|
},
|
|
176
|
-
|
|
180
|
+
K
|
|
177
181
|
);
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
184
|
export {
|
|
181
|
-
|
|
185
|
+
Z as RoomLabels
|
|
182
186
|
};
|
|
@@ -14,18 +14,18 @@ var o = (h, n, t) => (m(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
|
14
14
|
var c = (h, n, t) => new Promise((e, i) => {
|
|
15
15
|
var s = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
r(t.next(d));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
r(t.throw(d));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, r = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
|
|
28
|
+
r((t = t.apply(h, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
31
|
import { to as I } from "../../shared-utils/to.js";
|
|
@@ -55,6 +55,8 @@ import "../Components/Normalmage.js";
|
|
|
55
55
|
import "../Components/SvgImage.js";
|
|
56
56
|
import "../Components/RoomLabels/RoomLabels.js";
|
|
57
57
|
import "../Components/RoomLabels/RoomLabel.js";
|
|
58
|
+
import "../../shared-utils/svelte/resizeObserver.js";
|
|
59
|
+
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
58
60
|
import "../Components/RuleLabels/RuleLabels.js";
|
|
59
61
|
import "../Components/RuleLabels/RuleItem.js";
|
|
60
62
|
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
@@ -78,7 +80,7 @@ function N(h) {
|
|
|
78
80
|
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
79
81
|
return e && i;
|
|
80
82
|
}
|
|
81
|
-
class
|
|
83
|
+
class Ot extends T {
|
|
82
84
|
constructor(t, e) {
|
|
83
85
|
super(t);
|
|
84
86
|
o(this, "name", "modelFloorplanPlugin");
|
|
@@ -114,7 +116,7 @@ class Lt extends T {
|
|
|
114
116
|
o(this, "updateSize", () => {
|
|
115
117
|
if (!this.data || !H(this.five, this.showState) || !this.container || !this.wrapper)
|
|
116
118
|
return;
|
|
117
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y,
|
|
119
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = k(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(i * r), u = Math.ceil(s * r);
|
|
118
120
|
this.size.width === d && this.size.height === u || (this.container.style.width = d + "px", this.container.style.height = u + "px", this.size = { width: d, height: u });
|
|
119
121
|
});
|
|
120
122
|
o(this, "highlight", (t) => {
|
|
@@ -124,19 +126,19 @@ class Lt extends T {
|
|
|
124
126
|
this.highlightData = {}, this.render();
|
|
125
127
|
});
|
|
126
128
|
o(this, "_disable", (t) => {
|
|
127
|
-
var i, s,
|
|
129
|
+
var i, s, a;
|
|
128
130
|
const { userAction: e } = t;
|
|
129
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (
|
|
131
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (a = this.container) == null || a.remove(), this.removeEventListener();
|
|
130
132
|
});
|
|
131
133
|
o(this, "_enable", (t) => {
|
|
132
134
|
const { userAction: e } = t;
|
|
133
135
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
|
|
134
136
|
});
|
|
135
137
|
o(this, "_show", (t) => c(this, null, function* () {
|
|
136
|
-
var
|
|
138
|
+
var a;
|
|
137
139
|
if (!this.state.enabled)
|
|
138
140
|
return;
|
|
139
|
-
if (!((
|
|
141
|
+
if (!((a = this.five.model) != null && a.loaded))
|
|
140
142
|
throw new Error(f.ModelNotLoaded);
|
|
141
143
|
if (!this.data)
|
|
142
144
|
throw new Error(f.DataNotLoaded);
|
|
@@ -149,14 +151,14 @@ class Lt extends T {
|
|
|
149
151
|
userAction: !0
|
|
150
152
|
}, i = l(l({}, e), t), s = () => c(this, null, function* () {
|
|
151
153
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
152
|
-
let
|
|
154
|
+
let r = !1, d;
|
|
153
155
|
this.showRejection = (S) => {
|
|
154
|
-
|
|
156
|
+
r = !0, d = S;
|
|
155
157
|
};
|
|
156
158
|
const [u] = yield I(R(this.five, this.showState, i.userAction));
|
|
157
159
|
if (u)
|
|
158
160
|
throw u;
|
|
159
|
-
if (
|
|
161
|
+
if (r)
|
|
160
162
|
throw d ? new Error(d) : new Error(f.UnknownError);
|
|
161
163
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
162
164
|
const p = i.modelOpacity, g = i.immediately ? 0 : G;
|
|
@@ -167,9 +169,9 @@ class Lt extends T {
|
|
|
167
169
|
auto: i.isAutoShow,
|
|
168
170
|
userAction: i.userAction
|
|
169
171
|
});
|
|
170
|
-
}).catch((
|
|
171
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow &&
|
|
172
|
-
throw
|
|
172
|
+
}).catch((r) => {
|
|
173
|
+
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
|
|
174
|
+
throw r;
|
|
173
175
|
}).finally(() => {
|
|
174
176
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
175
177
|
}), this.showPromise;
|
|
@@ -258,13 +260,13 @@ class Lt extends T {
|
|
|
258
260
|
attachedTo: O.BOUNDING_CENTER,
|
|
259
261
|
getLabelElement: void 0,
|
|
260
262
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
261
|
-
getRoomAreaText: (
|
|
262
|
-
getRuleDistanceText: (
|
|
263
|
-
}, s = e ? _(e, ["selector", "scale"]) : {},
|
|
263
|
+
getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "\u33A1",
|
|
264
|
+
getRuleDistanceText: (r) => r.toString()
|
|
265
|
+
}, s = e ? _(e, ["selector", "scale"]) : {}, a = l(l({}, i), s);
|
|
264
266
|
this.state = {
|
|
265
267
|
enabled: !0,
|
|
266
268
|
visible: !1,
|
|
267
|
-
config:
|
|
269
|
+
config: a
|
|
268
270
|
}, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
269
271
|
}
|
|
270
272
|
load(t, e, i = !0) {
|
|
@@ -272,9 +274,9 @@ class Lt extends T {
|
|
|
272
274
|
function s(p) {
|
|
273
275
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
274
276
|
}
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const
|
|
277
|
+
const a = t;
|
|
278
|
+
a && !a.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
279
|
+
const r = JSON.parse(JSON.stringify(t)), d = s(r) ? r.data : r, u = this.data;
|
|
278
280
|
this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
279
281
|
});
|
|
280
282
|
}
|
|
@@ -297,20 +299,20 @@ class Lt extends T {
|
|
|
297
299
|
setState(t, e = {}) {
|
|
298
300
|
const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
|
|
299
301
|
if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
300
|
-
const
|
|
301
|
-
t.visible ? this._show(
|
|
302
|
+
const a = { userAction: s };
|
|
303
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
306
|
changeConfigs(t, e = !0) {
|
|
305
307
|
this.updateState({ config: t }, e), this.render();
|
|
306
308
|
}
|
|
307
309
|
updatePosition() {
|
|
308
|
-
var
|
|
309
|
-
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (
|
|
310
|
+
var r;
|
|
311
|
+
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.five.model) == null ? void 0 : r.bounding.getCenter(new x.Vector3()).setY(t);
|
|
310
312
|
if (!e)
|
|
311
313
|
return;
|
|
312
|
-
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2,
|
|
313
|
-
this.container.style.left = s * 100 + "%", this.container.style.top =
|
|
314
|
+
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, a = -(i.y - 1) / 2;
|
|
315
|
+
this.container.style.left = s * 100 + "%", this.container.style.top = a * 100 + "%";
|
|
314
316
|
}
|
|
315
317
|
formatData(t) {
|
|
316
318
|
return c(this, null, function* () {
|
|
@@ -359,5 +361,5 @@ class Lt extends T {
|
|
|
359
361
|
}
|
|
360
362
|
}
|
|
361
363
|
export {
|
|
362
|
-
|
|
364
|
+
Ot as Controller
|
|
363
365
|
};
|
|
@@ -19,6 +19,8 @@ import "../Components/Normalmage.js";
|
|
|
19
19
|
import "../Components/SvgImage.js";
|
|
20
20
|
import "../Components/RoomLabels/RoomLabels.js";
|
|
21
21
|
import "../Components/RoomLabels/RoomLabel.js";
|
|
22
|
+
import "../../shared-utils/svelte/resizeObserver.js";
|
|
23
|
+
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
22
24
|
import "../Components/RuleLabels/RuleLabels.js";
|
|
23
25
|
import "../Components/RuleLabels/RuleItem.js";
|
|
24
26
|
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
@@ -42,8 +44,8 @@ import "../utils/constant.js";
|
|
|
42
44
|
import "../../shared-utils/nearlyEqual.js";
|
|
43
45
|
import "../../shared-utils/five/changeMode.js";
|
|
44
46
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
45
|
-
const
|
|
47
|
+
const X = (o, r) => new t(o, r);
|
|
46
48
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
X as MapviewFloorplanPlugin,
|
|
50
|
+
X as default
|
|
49
51
|
};
|
|
@@ -54,6 +54,8 @@ import "../Components/Normalmage.js";
|
|
|
54
54
|
import "../Components/SvgImage.js";
|
|
55
55
|
import "../Components/RoomLabels/RoomLabels.js";
|
|
56
56
|
import "../Components/RoomLabels/RoomLabel.js";
|
|
57
|
+
import "../../shared-utils/svelte/resizeObserver.js";
|
|
58
|
+
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
57
59
|
import "../Components/RuleLabels/RuleLabels.js";
|
|
58
60
|
import "../Components/RuleLabels/RuleItem.js";
|
|
59
61
|
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
@@ -78,7 +80,7 @@ function R(h) {
|
|
|
78
80
|
const { latitude: s, longitude: t } = h, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
79
81
|
return e && i;
|
|
80
82
|
}
|
|
81
|
-
class
|
|
83
|
+
class Ot extends k {
|
|
82
84
|
constructor(t, e) {
|
|
83
85
|
var a;
|
|
84
86
|
super(t);
|
|
@@ -355,5 +357,5 @@ class _t extends k {
|
|
|
355
357
|
}
|
|
356
358
|
}
|
|
357
359
|
export {
|
|
358
|
-
|
|
360
|
+
Ot as Controller
|
|
359
361
|
};
|
|
@@ -18,6 +18,8 @@ import "../Components/Normalmage.js";
|
|
|
18
18
|
import "../Components/SvgImage.js";
|
|
19
19
|
import "../Components/RoomLabels/RoomLabels.js";
|
|
20
20
|
import "../Components/RoomLabels/RoomLabel.js";
|
|
21
|
+
import "../../shared-utils/svelte/resizeObserver.js";
|
|
22
|
+
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
21
23
|
import "../Components/RuleLabels/RuleLabels.js";
|
|
22
24
|
import "../Components/RuleLabels/RuleItem.js";
|
|
23
25
|
import "../Components/RoomMaterials/RoomMaterial.js";
|
|
@@ -42,8 +44,8 @@ import "../utils/constant.js";
|
|
|
42
44
|
import "../../shared-utils/nearlyEqual.js";
|
|
43
45
|
import "../../shared-utils/five/changeMode.js";
|
|
44
46
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
45
|
-
const
|
|
47
|
+
const X = (o, r) => new t(o, r);
|
|
46
48
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
X as ModelFloorplanPlugin,
|
|
50
|
+
X as default
|
|
49
51
|
};
|