@realsee/dnalogel 2.2.5 → 2.2.7
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/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.js +849 -887
- package/dist/index.umd.js +17 -17
- package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/docs/assets/main.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- 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 +12 -12
- 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/LinkType.html +7 -7
- 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/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/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.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 +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 +11 -11
- 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/Point.html +8 -8
- package/docs/interfaces/PointJson.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/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.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/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.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/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
- 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/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/PlaneTag.html +5 -5
- package/docs/types/PointTag.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/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.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/CSS3DRenderPlugin/CSS3DRender.js +39 -33
- package/libs/CSS3DRenderPlugin/Controller.js +30 -22
- package/libs/CSS3DRenderPlugin/index.js +12 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +52 -41
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -2
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +52 -44
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
- package/libs/ModelTVVideoPlugin/index.js +17 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.js +48 -27
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +40 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +25 -13
- package/libs/PanoCompassPlugin/index.js +23 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -42
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
- package/libs/PanoSpatialTagPlugin/index.js +20 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +92 -100
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +13 -15
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +26 -28
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +12 -13
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +24 -32
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +51 -83
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +48 -59
- package/libs/PanoTagPlugin/Components/Tag/index.js +75 -104
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +82 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +24 -24
- package/libs/floorplan/Components/Compass.js +3 -3
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +32 -32
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +54 -54
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +15 -15
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +38 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +71 -80
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +34 -34
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
- package/libs/vendor/svelte/internal/index.js +151 -152
- package/package.json +17 -18
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SvelteComponent as v, init as k, safe_not_equal as b, append_styles as y, element as D, svg_element as R, attr as u, insert as
|
|
2
|
-
import z from "./Room.js";
|
|
3
|
-
import "../../utils/formatPosition.js";
|
|
1
|
+
import { SvelteComponent as v, init as k, safe_not_equal as b, append_styles as y, element as D, svg_element as R, attr as u, insert as d, append as w, group_outros as q, update_keyed_each as I, outro_and_destroy_block as x, check_outros as H, transition_in as g, transition_out as c, detach as p, assign as B, empty as C, create_component as M, mount_component as S, get_spread_update as W, destroy_component as j } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Room as z } from "./Room.js";
|
|
4
3
|
function A(i) {
|
|
5
4
|
y(i, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
|
|
6
5
|
}
|
|
@@ -8,7 +7,7 @@ function m(i, t, r) {
|
|
|
8
7
|
const o = i.slice();
|
|
9
8
|
return o[5] = t[r], o;
|
|
10
9
|
}
|
|
11
|
-
function
|
|
10
|
+
function _(i, t) {
|
|
12
11
|
let r, o, a;
|
|
13
12
|
const s = [
|
|
14
13
|
{
|
|
@@ -19,19 +18,19 @@ function d(i, t) {
|
|
|
19
18
|
];
|
|
20
19
|
let f = {};
|
|
21
20
|
for (let l = 0; l < s.length; l += 1)
|
|
22
|
-
f =
|
|
21
|
+
f = B(f, s[l]);
|
|
23
22
|
return o = new z({ props: f }), {
|
|
24
23
|
key: i,
|
|
25
24
|
first: null,
|
|
26
25
|
c() {
|
|
27
|
-
r =
|
|
26
|
+
r = C(), M(o.$$.fragment), this.first = r;
|
|
28
27
|
},
|
|
29
28
|
m(l, e) {
|
|
30
|
-
|
|
29
|
+
d(l, r, e), S(o, l, e), a = !0;
|
|
31
30
|
},
|
|
32
31
|
p(l, e) {
|
|
33
32
|
t = l;
|
|
34
|
-
const n = e & 7 ?
|
|
33
|
+
const n = e & 7 ? W(s, [
|
|
35
34
|
{
|
|
36
35
|
room: t[5],
|
|
37
36
|
floorplanData: t[1],
|
|
@@ -47,7 +46,7 @@ function d(i, t) {
|
|
|
47
46
|
c(o.$$.fragment, l), a = !1;
|
|
48
47
|
},
|
|
49
48
|
d(l) {
|
|
50
|
-
l && p(r),
|
|
49
|
+
l && p(r), j(o, l);
|
|
51
50
|
}
|
|
52
51
|
};
|
|
53
52
|
}
|
|
@@ -56,7 +55,7 @@ function E(i) {
|
|
|
56
55
|
const l = (e) => e[5].id;
|
|
57
56
|
for (let e = 0; e < f.length; e += 1) {
|
|
58
57
|
let n = m(i, f, e), h = l(n);
|
|
59
|
-
a.set(h, o[e] =
|
|
58
|
+
a.set(h, o[e] = _(h, n));
|
|
60
59
|
}
|
|
61
60
|
return {
|
|
62
61
|
c() {
|
|
@@ -66,13 +65,13 @@ function E(i) {
|
|
|
66
65
|
u(r, "width", "100%"), u(r, "height", "100%"), u(r, "viewBox", `0 0 ${i[3]} ${i[4]}`), u(r, "class", "svelte-1kqo6e4"), u(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
|
|
67
66
|
},
|
|
68
67
|
m(e, n) {
|
|
69
|
-
|
|
68
|
+
d(e, t, n), w(t, r);
|
|
70
69
|
for (let h = 0; h < o.length; h += 1)
|
|
71
70
|
o[h].m(r, null);
|
|
72
71
|
s = !0;
|
|
73
72
|
},
|
|
74
73
|
p(e, [n]) {
|
|
75
|
-
n & 7 && (f = e[1].floorDatas[e[0]].rooms,
|
|
74
|
+
n & 7 && (f = e[1].floorDatas[e[0]].rooms, q(), o = I(o, n, l, 1, e, f, a, r, x, _, null, m), H());
|
|
76
75
|
},
|
|
77
76
|
i(e) {
|
|
78
77
|
if (!s) {
|
|
@@ -100,7 +99,7 @@ function F(i, t, r) {
|
|
|
100
99
|
"floorIndex" in e && r(0, o = e.floorIndex), "floorplanData" in e && r(1, a = e.floorplanData), "hoveredRoom" in e && r(2, s = e.hoveredRoom);
|
|
101
100
|
}, [o, a, s, f, l];
|
|
102
101
|
}
|
|
103
|
-
class
|
|
102
|
+
class K extends v {
|
|
104
103
|
constructor(t) {
|
|
105
104
|
super(), k(
|
|
106
105
|
this,
|
|
@@ -118,5 +117,5 @@ class L extends v {
|
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
export {
|
|
121
|
-
|
|
120
|
+
K as RoomHighlight
|
|
122
121
|
};
|
|
@@ -19,41 +19,41 @@ function se(i) {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
let e, n = i[0].name + "", l, t, o,
|
|
22
|
+
function ce(i) {
|
|
23
|
+
let e, n = i[0].name + "", l, t, o, a;
|
|
24
24
|
return {
|
|
25
25
|
c() {
|
|
26
|
-
e = k("span"), l = V(n), t = ie(), o = k("span"),
|
|
26
|
+
e = k("span"), l = V(n), t = ie(), o = k("span"), a = V(i[5]), C(e, "class", "floorplan-plugin__room-name"), C(o, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
27
27
|
},
|
|
28
|
-
m(
|
|
29
|
-
p(
|
|
28
|
+
m(f, c) {
|
|
29
|
+
p(f, e, c), A(e, l), p(f, t, c), p(f, o, c), A(o, a);
|
|
30
30
|
},
|
|
31
|
-
p(
|
|
32
|
-
|
|
31
|
+
p(f, c) {
|
|
32
|
+
c & 1 && n !== (n = f[0].name + "") && j(l, n), c & 32 && j(a, f[5]);
|
|
33
33
|
},
|
|
34
|
-
d(
|
|
35
|
-
|
|
34
|
+
d(f) {
|
|
35
|
+
f && g(e), f && g(t), f && g(o);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function fe(i) {
|
|
40
40
|
let e;
|
|
41
|
-
function n(o,
|
|
41
|
+
function n(o, a) {
|
|
42
42
|
if (o[1] === void 0)
|
|
43
|
-
return
|
|
43
|
+
return ce;
|
|
44
44
|
if (o[4])
|
|
45
45
|
return se;
|
|
46
46
|
}
|
|
47
47
|
let l = n(i), t = l && l(i);
|
|
48
48
|
return {
|
|
49
49
|
c() {
|
|
50
|
-
e = k("div"), t && t.c(), C(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), _(e, "left", i[6]
|
|
50
|
+
e = k("div"), t && t.c(), C(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), _(e, "left", i[6]), _(e, "top", i[7]), _(e, "font-size", i[8]), _(e, "opacity", i[3] ? "1" : "0");
|
|
51
51
|
},
|
|
52
|
-
m(o,
|
|
53
|
-
p(o, e,
|
|
52
|
+
m(o, a) {
|
|
53
|
+
p(o, e, a), t && t.m(e, null), i[16](e);
|
|
54
54
|
},
|
|
55
|
-
p(o, [
|
|
56
|
-
l === (l = n(o)) && t ? t.p(o,
|
|
55
|
+
p(o, [a]) {
|
|
56
|
+
l === (l = n(o)) && t ? t.p(o, a) : (t && t.d(1), t = l && l(o), t && (t.c(), t.m(e, null))), a & 8 && _(e, "opacity", o[3] ? "1" : "0");
|
|
57
57
|
},
|
|
58
58
|
i: E,
|
|
59
59
|
o: E,
|
|
@@ -62,17 +62,17 @@ function ae(i) {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ae(i, e) {
|
|
66
66
|
const n = i[0], l = i[1];
|
|
67
67
|
let t = !1;
|
|
68
|
-
for (let o = 0,
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
for (let o = 0, a = e.length - 1; o < e.length; a = o++) {
|
|
69
|
+
const f = e[o][0], c = e[o][1], h = e[a][0], r = e[a][1];
|
|
70
|
+
c > l != r > l && n < (h - f) * (l - c) / (r - c) + f && (t = !t);
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
74
|
function re(i, e, n) {
|
|
75
|
-
let l, t, o,
|
|
75
|
+
let l, t, o, a, { pxmm: f } = e, { room: c } = e, { hoveredRoom: h } = e, { getRoomAreaText: r } = e, { getLabelElement: m } = e, { adaptiveRoomLabelVisibleEnable: v } = e;
|
|
76
76
|
function M(s, b) {
|
|
77
77
|
if (b.width === 0 || b.height === 0)
|
|
78
78
|
return () => !1;
|
|
@@ -84,13 +84,13 @@ function re(i, e, n) {
|
|
|
84
84
|
[z - R, w - L],
|
|
85
85
|
[z - R, w + L],
|
|
86
86
|
[z + R, w + L]
|
|
87
|
-
].every((T) =>
|
|
87
|
+
].every((T) => ae(T, K));
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
const W = document.body.clientWidth, x = document.body.clientHeight, I =
|
|
90
|
+
const W = document.body.clientWidth, x = document.body.clientHeight, I = c.roomLabel, D = I.positionInImage.x * 100 + "%", S = I.positionInImage.y * 100 + "%", q = (W < 500 || x < 500 ? 10 : 14) / 16 + "rem";
|
|
91
91
|
let H = !1, u, y;
|
|
92
92
|
h.subscribe(function(b) {
|
|
93
|
-
n(13, H = !!b && b.id ===
|
|
93
|
+
n(13, H = !!b && b.id === c.id);
|
|
94
94
|
}), ee(() => {
|
|
95
95
|
const s = u == null ? void 0 : u.getClientRects()[0];
|
|
96
96
|
n(14, y = {
|
|
@@ -104,20 +104,20 @@ function re(i, e, n) {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
return i.$$set = (s) => {
|
|
107
|
-
"pxmm" in s && n(9,
|
|
107
|
+
"pxmm" in s && n(9, f = s.pxmm), "room" in s && n(0, c = s.room), "hoveredRoom" in s && n(10, h = s.hoveredRoom), "getRoomAreaText" in s && n(11, r = s.getRoomAreaText), "getLabelElement" in s && n(1, m = s.getLabelElement), "adaptiveRoomLabelVisibleEnable" in s && n(12, v = s.adaptiveRoomLabelVisibleEnable);
|
|
108
108
|
}, i.$$.update = () => {
|
|
109
|
-
i.$$.dirty & 2049 && n(5, l =
|
|
109
|
+
i.$$.dirty & 2049 && n(5, l = c.size ? r(c.size) : ""), i.$$.dirty & 16385 && n(15, t = y ? M(c, y) : void 0), i.$$.dirty & 3 && n(4, o = m == null ? void 0 : m(c)), i.$$.dirty & 45568 && n(3, a = v ? H ? !0 : !!(t != null && t(f)) : !0);
|
|
110
110
|
}, [
|
|
111
|
-
|
|
111
|
+
c,
|
|
112
112
|
m,
|
|
113
113
|
u,
|
|
114
|
-
|
|
114
|
+
a,
|
|
115
115
|
o,
|
|
116
116
|
l,
|
|
117
117
|
D,
|
|
118
118
|
S,
|
|
119
119
|
q,
|
|
120
|
-
|
|
120
|
+
f,
|
|
121
121
|
h,
|
|
122
122
|
r,
|
|
123
123
|
v,
|
|
@@ -133,7 +133,7 @@ class be extends O {
|
|
|
133
133
|
this,
|
|
134
134
|
e,
|
|
135
135
|
re,
|
|
136
|
-
|
|
136
|
+
fe,
|
|
137
137
|
Z,
|
|
138
138
|
{
|
|
139
139
|
pxmm: 9,
|
|
@@ -148,5 +148,5 @@ class be extends O {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
export {
|
|
151
|
-
be as
|
|
151
|
+
be as RoomLabel
|
|
152
152
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { SvelteComponent as A, init as T, safe_not_equal as V, append_styles as D, empty as v, insert as b, transition_in as
|
|
2
|
-
import F from "./RoomLabel.js";
|
|
3
|
-
function G(
|
|
4
|
-
D(
|
|
1
|
+
import { SvelteComponent as A, init as T, safe_not_equal as V, append_styles as D, empty as v, insert as b, transition_in as u, group_outros as L, transition_out as d, check_outros as k, detach as c, element as z, attr as I, add_render_callback as w, add_resize_listener as W, update_keyed_each as q, outro_and_destroy_block as C, assign as M, create_component as N, mount_component as S, get_spread_update as j, destroy_component as B } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { RoomLabel as F } from "./RoomLabel.js";
|
|
3
|
+
function G(a) {
|
|
4
|
+
D(a, "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
5
|
}
|
|
6
|
-
function g(
|
|
7
|
-
const t =
|
|
6
|
+
function g(a, e, o) {
|
|
7
|
+
const t = a.slice();
|
|
8
8
|
return t[10] = e[o], t;
|
|
9
9
|
}
|
|
10
|
-
function R(
|
|
11
|
-
let e, o = [], t = /* @__PURE__ */ new Map(), i, m, s =
|
|
12
|
-
const
|
|
10
|
+
function R(a) {
|
|
11
|
+
let e, o = [], t = /* @__PURE__ */ new Map(), i, m, s = a[6];
|
|
12
|
+
const r = (l) => l[10].id;
|
|
13
13
|
for (let l = 0; l < s.length; l += 1) {
|
|
14
|
-
let n = g(
|
|
15
|
-
t.set(
|
|
14
|
+
let n = g(a, s, l), _ = r(n);
|
|
15
|
+
t.set(_, o[l] = p(_, n));
|
|
16
16
|
}
|
|
17
17
|
return {
|
|
18
18
|
c() {
|
|
19
19
|
e = z("div");
|
|
20
20
|
for (let l = 0; l < o.length; l += 1)
|
|
21
21
|
o[l].c();
|
|
22
|
-
I(e, "class", "floorplan-plugin__room-labels svelte-13xux0b"), w(() =>
|
|
22
|
+
I(e, "class", "floorplan-plugin__room-labels svelte-13xux0b"), w(() => a[9].call(e));
|
|
23
23
|
},
|
|
24
24
|
m(l, n) {
|
|
25
25
|
b(l, e, n);
|
|
26
|
-
for (let
|
|
27
|
-
o[
|
|
28
|
-
i = W(e,
|
|
26
|
+
for (let _ = 0; _ < o.length; _ += 1)
|
|
27
|
+
o[_].m(e, null);
|
|
28
|
+
i = W(e, a[9].bind(e)), m = !0;
|
|
29
29
|
},
|
|
30
30
|
p(l, n) {
|
|
31
|
-
n & 111 && (s = l[6],
|
|
31
|
+
n & 111 && (s = l[6], L(), o = q(o, n, r, 1, l, s, t, e, C, p, null, g), k());
|
|
32
32
|
},
|
|
33
33
|
i(l) {
|
|
34
34
|
if (!m) {
|
|
35
35
|
for (let n = 0; n < s.length; n += 1)
|
|
36
|
-
|
|
36
|
+
u(o[n]);
|
|
37
37
|
m = !0;
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -50,7 +50,7 @@ function R(r) {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function p(
|
|
53
|
+
function p(a, e) {
|
|
54
54
|
let o, t, i;
|
|
55
55
|
const m = [
|
|
56
56
|
{
|
|
@@ -63,19 +63,19 @@ function p(r, e) {
|
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
65
|
let s = {};
|
|
66
|
-
for (let
|
|
67
|
-
s = M(s, m[
|
|
66
|
+
for (let r = 0; r < m.length; r += 1)
|
|
67
|
+
s = M(s, m[r]);
|
|
68
68
|
return t = new F({ props: s }), {
|
|
69
|
-
key:
|
|
69
|
+
key: a,
|
|
70
70
|
first: null,
|
|
71
71
|
c() {
|
|
72
72
|
o = v(), N(t.$$.fragment), this.first = o;
|
|
73
73
|
},
|
|
74
|
-
m(
|
|
75
|
-
b(
|
|
74
|
+
m(r, l) {
|
|
75
|
+
b(r, o, l), S(t, r, l), i = !0;
|
|
76
76
|
},
|
|
77
|
-
p(
|
|
78
|
-
e =
|
|
77
|
+
p(r, l) {
|
|
78
|
+
e = r;
|
|
79
79
|
const n = l & 111 ? j(m, [
|
|
80
80
|
{
|
|
81
81
|
pxmm: e[5],
|
|
@@ -88,19 +88,19 @@ function p(r, e) {
|
|
|
88
88
|
]) : {};
|
|
89
89
|
t.$set(n);
|
|
90
90
|
},
|
|
91
|
-
i(
|
|
92
|
-
i || (
|
|
91
|
+
i(r) {
|
|
92
|
+
i || (u(t.$$.fragment, r), i = !0);
|
|
93
93
|
},
|
|
94
|
-
o(
|
|
95
|
-
d(t.$$.fragment,
|
|
94
|
+
o(r) {
|
|
95
|
+
d(t.$$.fragment, r), i = !1;
|
|
96
96
|
},
|
|
97
|
-
d(
|
|
98
|
-
|
|
97
|
+
d(r) {
|
|
98
|
+
r && c(o), B(t, r);
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function H(
|
|
103
|
-
let e, o, t =
|
|
102
|
+
function H(a) {
|
|
103
|
+
let e, o, t = a[6] && R(a);
|
|
104
104
|
return {
|
|
105
105
|
c() {
|
|
106
106
|
t && t.c(), e = v();
|
|
@@ -109,12 +109,12 @@ function H(r) {
|
|
|
109
109
|
t && t.m(i, m), b(i, e, m), o = !0;
|
|
110
110
|
},
|
|
111
111
|
p(i, [m]) {
|
|
112
|
-
i[6] ? t ? (t.p(i, m), m & 64 &&
|
|
112
|
+
i[6] ? t ? (t.p(i, m), m & 64 && u(t, 1)) : (t = R(i), t.c(), u(t, 1), t.m(e.parentNode, e)) : t && (L(), d(t, 1, 1, () => {
|
|
113
113
|
t = null;
|
|
114
|
-
}),
|
|
114
|
+
}), k());
|
|
115
115
|
},
|
|
116
116
|
i(i) {
|
|
117
|
-
o || (
|
|
117
|
+
o || (u(t), o = !0);
|
|
118
118
|
},
|
|
119
119
|
o(i) {
|
|
120
120
|
d(t), o = !1;
|
|
@@ -124,24 +124,24 @@ function H(r) {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function J(
|
|
128
|
-
let t, { floorIndex: i } = e, { floorplanData: m } = e, { hoveredRoom: s } = e, { getRoomAreaText:
|
|
127
|
+
function J(a, e, o) {
|
|
128
|
+
let t, { floorIndex: i } = e, { floorplanData: m } = e, { hoveredRoom: s } = e, { getRoomAreaText: r } = e, { getLabelElement: l } = e, { adaptiveRoomLabelVisibleEnable: n } = e, _ = 0, h = 0;
|
|
129
129
|
function E() {
|
|
130
|
-
|
|
130
|
+
_ = this.clientWidth, o(4, _);
|
|
131
131
|
}
|
|
132
|
-
return
|
|
133
|
-
"floorIndex" in f && o(7, i = f.floorIndex), "floorplanData" in f && o(8, m = f.floorplanData), "hoveredRoom" in f && o(0, s = f.hoveredRoom), "getRoomAreaText" in f && o(1,
|
|
134
|
-
},
|
|
135
|
-
if (
|
|
132
|
+
return a.$$set = (f) => {
|
|
133
|
+
"floorIndex" in f && o(7, i = f.floorIndex), "floorplanData" in f && o(8, m = f.floorplanData), "hoveredRoom" in f && o(0, s = f.hoveredRoom), "getRoomAreaText" in f && o(1, r = f.getRoomAreaText), "getLabelElement" in f && o(2, l = f.getLabelElement), "adaptiveRoomLabelVisibleEnable" in f && o(3, n = f.adaptiveRoomLabelVisibleEnable);
|
|
134
|
+
}, a.$$.update = () => {
|
|
135
|
+
if (a.$$.dirty & 384 && o(6, t = m.floorDatas[i].rooms), a.$$.dirty & 272) {
|
|
136
136
|
const { max: f, min: x } = m.bounding, y = f.x - x.x;
|
|
137
|
-
o(5, h =
|
|
137
|
+
o(5, h = _ / y);
|
|
138
138
|
}
|
|
139
139
|
}, [
|
|
140
140
|
s,
|
|
141
|
-
|
|
141
|
+
r,
|
|
142
142
|
l,
|
|
143
143
|
n,
|
|
144
|
-
|
|
144
|
+
_,
|
|
145
145
|
h,
|
|
146
146
|
t,
|
|
147
147
|
i,
|
|
@@ -170,5 +170,5 @@ class P extends A {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
export {
|
|
173
|
-
P as
|
|
173
|
+
P as RoomLabels
|
|
174
174
|
};
|
|
@@ -10,11 +10,11 @@ var b = (l, e, o) => e in l ? M(l, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
q.call(e, o) && b(l, o, e[o]);
|
|
11
11
|
return l;
|
|
12
12
|
}, v = (l, e) => R(l, B(e));
|
|
13
|
-
import { SvelteComponent as C, init as F, safe_not_equal as H, append_styles as P, element as S, attr as m, insert as x, transition_in as
|
|
13
|
+
import { SvelteComponent as C, init as F, safe_not_equal as H, append_styles as P, element as S, attr as m, insert as x, transition_in as u, group_outros as w, check_outros as D, transition_out as s, detach as I, destroy_each as W, svg_element as j, create_component as p, mount_component as h, destroy_component as g } from "../../../vendor/svelte/internal/index.js";
|
|
14
14
|
import { formatFloorplanPoint as z } from "../../utils/formatPosition.js";
|
|
15
|
-
import A from "./RoomMaterial_0.js";
|
|
16
|
-
import E from "./RoomMaterial_1.js";
|
|
17
|
-
import G from "./RoomMaterial_2.js";
|
|
15
|
+
import { RoomMaterial_0 as A } from "./RoomMaterial_0.js";
|
|
16
|
+
import { RoomMaterial_1 as E } from "./RoomMaterial_1.js";
|
|
17
|
+
import { RoomMaterial_2 as G } from "./RoomMaterial_2.js";
|
|
18
18
|
function J(l) {
|
|
19
19
|
P(l, "svelte-1dykexu", ".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
|
|
20
20
|
}
|
|
@@ -36,7 +36,7 @@ function K(l) {
|
|
|
36
36
|
n & 1 && (i.path = t[5].path), e.$set(i);
|
|
37
37
|
},
|
|
38
38
|
i(t) {
|
|
39
|
-
o || (
|
|
39
|
+
o || (u(e.$$.fragment, t), o = !0);
|
|
40
40
|
},
|
|
41
41
|
o(t) {
|
|
42
42
|
s(e.$$.fragment, t), o = !1;
|
|
@@ -60,7 +60,7 @@ function L(l) {
|
|
|
60
60
|
n & 1 && (i.path = t[5].path), e.$set(i);
|
|
61
61
|
},
|
|
62
62
|
i(t) {
|
|
63
|
-
o || (
|
|
63
|
+
o || (u(e.$$.fragment, t), o = !0);
|
|
64
64
|
},
|
|
65
65
|
o(t) {
|
|
66
66
|
s(e.$$.fragment, t), o = !1;
|
|
@@ -84,7 +84,7 @@ function N(l) {
|
|
|
84
84
|
n & 1 && (i.path = t[5].path), e.$set(i);
|
|
85
85
|
},
|
|
86
86
|
i(t) {
|
|
87
|
-
o || (
|
|
87
|
+
o || (u(e.$$.fragment, t), o = !0);
|
|
88
88
|
},
|
|
89
89
|
o(t) {
|
|
90
90
|
s(e.$$.fragment, t), o = !1;
|
|
@@ -97,30 +97,30 @@ function N(l) {
|
|
|
97
97
|
function $(l) {
|
|
98
98
|
let e, o, t, n;
|
|
99
99
|
const i = [N, L, K], a = [];
|
|
100
|
-
function f(r,
|
|
100
|
+
function f(r, c) {
|
|
101
101
|
return r[5].floorType === 1 ? 0 : r[5].floorType === 0 ? 1 : 2;
|
|
102
102
|
}
|
|
103
103
|
return o = f(l), t = a[o] = i[o](l), {
|
|
104
104
|
c() {
|
|
105
105
|
e = j("svg"), t.c(), m(e, "width", "100%"), m(e, "height", "100%"), m(e, "viewBox", `0 0 ${l[1]} ${l[2]}`), m(e, "class", "svelte-1dykexu");
|
|
106
106
|
},
|
|
107
|
-
m(r,
|
|
108
|
-
x(r, e,
|
|
107
|
+
m(r, c) {
|
|
108
|
+
x(r, e, c), a[o].m(e, null), n = !0;
|
|
109
109
|
},
|
|
110
|
-
p(r,
|
|
110
|
+
p(r, c) {
|
|
111
111
|
let _ = o;
|
|
112
|
-
o = f(r), o === _ ? a[o].p(r,
|
|
112
|
+
o = f(r), o === _ ? a[o].p(r, c) : (w(), s(a[_], 1, 1, () => {
|
|
113
113
|
a[_] = null;
|
|
114
|
-
}),
|
|
114
|
+
}), D(), t = a[o], t ? t.p(r, c) : (t = a[o] = i[o](r), t.c()), u(t, 1), t.m(e, null));
|
|
115
115
|
},
|
|
116
116
|
i(r) {
|
|
117
|
-
n || (
|
|
117
|
+
n || (u(t), n = !0);
|
|
118
118
|
},
|
|
119
119
|
o(r) {
|
|
120
120
|
s(t), n = !1;
|
|
121
121
|
},
|
|
122
122
|
d(r) {
|
|
123
|
-
r &&
|
|
123
|
+
r && I(e), a[o].d();
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -149,18 +149,18 @@ function O(l) {
|
|
|
149
149
|
t = a[0];
|
|
150
150
|
let r;
|
|
151
151
|
for (r = 0; r < t.length; r += 1) {
|
|
152
|
-
const
|
|
153
|
-
n[r] ? (n[r].p(
|
|
152
|
+
const c = y(a, t, r);
|
|
153
|
+
n[r] ? (n[r].p(c, f), u(n[r], 1)) : (n[r] = $(c), n[r].c(), u(n[r], 1), n[r].m(e, null));
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
155
|
+
for (w(), r = t.length; r < n.length; r += 1)
|
|
156
156
|
i(r);
|
|
157
|
-
|
|
157
|
+
D();
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
i(a) {
|
|
161
161
|
if (!o) {
|
|
162
162
|
for (let f = 0; f < t.length; f += 1)
|
|
163
|
-
|
|
163
|
+
u(n[f]);
|
|
164
164
|
o = !0;
|
|
165
165
|
}
|
|
166
166
|
},
|
|
@@ -171,7 +171,7 @@ function O(l) {
|
|
|
171
171
|
o = !1;
|
|
172
172
|
},
|
|
173
173
|
d(a) {
|
|
174
|
-
a &&
|
|
174
|
+
a && I(e), W(n, a);
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
}
|
|
@@ -182,7 +182,7 @@ function Q(l, e, o) {
|
|
|
182
182
|
"floorIndex" in r && o(3, n = r.floorIndex), "floorplanData" in r && o(4, i = r.floorplanData);
|
|
183
183
|
}, l.$$.update = () => {
|
|
184
184
|
l.$$.dirty & 24 && o(0, t = i.floorDatas[n].rooms.map((r) => v(k({}, r), {
|
|
185
|
-
path: r.path.map((
|
|
185
|
+
path: r.path.map((c) => z(c, i.bounding))
|
|
186
186
|
})));
|
|
187
187
|
}, [t, a, f, n, i];
|
|
188
188
|
}
|
|
@@ -192,5 +192,5 @@ class te extends C {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
export {
|
|
195
|
-
te as
|
|
195
|
+
te as RoomMaterial
|
|
196
196
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
1
|
+
import { SvelteComponent as c, init as f, safe_not_equal as h, svg_element as m, attr as i, insert as u, noop as p, detach as d } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { pathD as s } from "../../utils/formatPosition.js";
|
|
3
3
|
function l(n) {
|
|
4
4
|
let t;
|
|
5
5
|
return {
|
|
6
6
|
c() {
|
|
7
|
-
t =
|
|
7
|
+
t = m("path"), i(t, "d", n[0]), i(t, "fill", "#2F313A");
|
|
8
8
|
},
|
|
9
|
-
m(e,
|
|
10
|
-
|
|
9
|
+
m(e, r) {
|
|
10
|
+
u(e, t, r);
|
|
11
11
|
},
|
|
12
|
-
p(e, [
|
|
13
|
-
|
|
12
|
+
p(e, [r]) {
|
|
13
|
+
r & 1 && i(t, "d", e[0]);
|
|
14
14
|
},
|
|
15
15
|
i: p,
|
|
16
16
|
o: p,
|
|
17
17
|
d(e) {
|
|
18
|
-
e &&
|
|
18
|
+
e && d(t);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function _(n, t, e) {
|
|
23
|
-
let
|
|
23
|
+
let r, { path: a } = t;
|
|
24
24
|
return n.$$set = (o) => {
|
|
25
|
-
"path" in o && e(1,
|
|
25
|
+
"path" in o && e(1, a = o.path);
|
|
26
26
|
}, n.$$.update = () => {
|
|
27
|
-
n.$$.dirty & 2 && e(0,
|
|
28
|
-
}, [
|
|
27
|
+
n.$$.dirty & 2 && e(0, r = s(a, { needZ: !0 }));
|
|
28
|
+
}, [r, a];
|
|
29
29
|
}
|
|
30
|
-
class q extends
|
|
30
|
+
class q extends c {
|
|
31
31
|
constructor(t) {
|
|
32
|
-
super(),
|
|
32
|
+
super(), f(this, t, _, l, h, { path: 1 });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
export {
|
|
36
|
-
q as
|
|
36
|
+
q as RoomMaterial_0
|
|
37
37
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SvelteComponent as _, init as w, safe_not_equal as y, svg_element as
|
|
1
|
+
import { SvelteComponent as _, init as w, safe_not_equal as y, svg_element as h, space as k, attr as t, insert as l, append as d, noop as c, detach as m } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { pathD as M } from "../../utils/formatPosition.js";
|
|
3
3
|
function v(n) {
|
|
4
|
-
let
|
|
4
|
+
let a, e, i, p, f, o;
|
|
5
5
|
return {
|
|
6
6
|
c() {
|
|
7
|
-
|
|
7
|
+
a = h("defs"), e = h("pattern"), i = h("rect"), p = h("path"), f = k(), o = h("path"), t(i, "x", "0"), t(i, "y", "0"), t(i, "width", n[1]), t(i, "height", n[1]), t(i, "fill", "#323747"), t(p, "d", n[2]), t(p, "stroke", "#ffffff"), t(p, "stroke-opacity", "0.06"), t(p, "stroke-width", "0.5"), t(p, "fill", "none"), t(e, "id", "fpm-room-pattern-0"), t(e, "x", "0"), t(e, "y", "0"), t(e, "width", n[1]), t(e, "height", n[1]), t(e, "patternUnits", "userSpaceOnUse"), t(e, "patternTransform", "scale(50 50)"), t(o, "d", n[0]), t(o, "fill", "url(#fpm-room-pattern-0)");
|
|
8
8
|
},
|
|
9
9
|
m(r, s) {
|
|
10
|
-
|
|
10
|
+
l(r, a, s), d(a, e), d(e, i), d(e, p), l(r, f, s), l(r, o, s);
|
|
11
11
|
},
|
|
12
12
|
p(r, [s]) {
|
|
13
13
|
s & 1 && t(o, "d", r[0]);
|
|
@@ -15,25 +15,25 @@ function v(n) {
|
|
|
15
15
|
i: c,
|
|
16
16
|
o: c,
|
|
17
17
|
d(r) {
|
|
18
|
-
r && m(
|
|
18
|
+
r && m(a), r && m(f), r && m(o);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
const u = 6;
|
|
23
|
-
function D(n,
|
|
24
|
-
let
|
|
23
|
+
function D(n, a, e) {
|
|
24
|
+
let i, { path: p } = a;
|
|
25
25
|
const f = u * 2, o = `M0 ${u} h ${f} M${u} 0 v ${f}`;
|
|
26
26
|
return n.$$set = (r) => {
|
|
27
|
-
"path" in r && e(3,
|
|
27
|
+
"path" in r && e(3, p = r.path);
|
|
28
28
|
}, n.$$.update = () => {
|
|
29
|
-
n.$$.dirty & 8 && e(0,
|
|
30
|
-
}, [
|
|
29
|
+
n.$$.dirty & 8 && e(0, i = M(p, { needZ: !0 }));
|
|
30
|
+
}, [i, f, o, p];
|
|
31
31
|
}
|
|
32
32
|
class $ extends _ {
|
|
33
|
-
constructor(
|
|
34
|
-
super(), w(this,
|
|
33
|
+
constructor(a) {
|
|
34
|
+
super(), w(this, a, D, v, y, { path: 3 });
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
$ as
|
|
38
|
+
$ as RoomMaterial_1
|
|
39
39
|
};
|