@realsee/dnalogel 2.0.0-alpha.35 → 2.0.0-alpha.38
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/ItemLabelPlugin/index.js +21 -41
- package/dist/ModelItemLabelPlugin/index.js +16 -36
- package/dist/ModelViewPlugin/Plugin.d.ts +4 -4
- package/dist/ModelViewPlugin/index.js +2 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -3
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.d.ts → mobileMainBtnController.d.ts} +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -3
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +2 -0
- package/dist/PanoMeasurePlugin/index.js +298 -331
- package/dist/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +6 -1
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/index.js +1006 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- package/dist/base/BasePlugin.d.ts +100 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +71 -78
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/dist/floorplan/ModelFloorplanPlugin/index.js +1064 -567
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +23 -14
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +489 -129
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +50 -58
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -3
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +1031 -443
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/constant.d.ts +10 -3
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/correctFiveState.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3173 -1633
- package/dist/index.js +3194 -1653
- package/dist/index.umd.js +3090 -1549
- package/dist/shared-utils/five/changeMode.d.ts +4 -1
- package/dist/shared-utils/getPxmm.d.ts +8 -0
- package/dist/shared-utils/logger.d.ts +16 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginState.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/modules.html +19 -27
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +21 -41
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +16 -36
- package/libs/ModelViewPlugin/Plugin.d.ts +4 -4
- package/libs/ModelViewPlugin/Plugin.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +4 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +66 -55
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +51 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +7 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +10 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.d.ts → mobileMainBtnController.d.ts} +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.js → mobileMainBtnController.js} +4 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +7 -24
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -2
- package/libs/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +6 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +55 -7
- package/libs/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/libs/PanoRulerProPlugin/Controller.js +110 -0
- package/libs/PanoRulerProPlugin/RulerItem.js +314 -0
- package/libs/PanoRulerProPlugin/RulerItems.js +377 -0
- package/libs/PanoRulerProPlugin/index.d.ts +8 -0
- package/libs/PanoRulerProPlugin/index.js +8 -0
- package/libs/PanoRulerProPlugin/typings.d.ts +46 -0
- package/libs/{floorplan/ModelFloorplanPlugin/typings/events.type.js → PanoRulerProPlugin/typings.js} +0 -0
- package/libs/base/BasePlugin.d.ts +100 -0
- package/libs/base/BasePlugin.js +31 -0
- package/libs/base/BasePluginWithData.d.ts +34 -0
- package/libs/base/BasePluginWithData.js +4 -0
- package/libs/floorplan/Components/Compass.js +11 -11
- package/libs/floorplan/Components/CurrentFloor.js +24 -11
- package/libs/floorplan/Components/Main.js +21 -15
- package/libs/floorplan/Components/RoomHighlight/Room.js +44 -5
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +29 -12
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +164 -15
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +68 -24
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +11 -9
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +71 -78
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +439 -272
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +114 -53
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +23 -14
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +162 -52
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +50 -58
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +320 -174
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/{dist/floorplan/ModelFloorplanPlugin → libs/floorplan}/utils/constant.d.ts +10 -3
- package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/constant.js +9 -2
- package/{dist/floorplan/ModelFloorplanPlugin → libs/floorplan}/utils/correctFiveState.d.ts +2 -1
- package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/correctFiveState.js +16 -16
- package/libs/index.d.ts +1 -0
- package/libs/index.js +2 -0
- package/libs/shared-utils/five/changeMode.d.ts +4 -1
- package/libs/shared-utils/five/changeMode.js +34 -13
- package/libs/shared-utils/getPxmm.d.ts +8 -0
- package/libs/shared-utils/getPxmm.js +25 -20
- package/libs/shared-utils/logger.d.ts +16 -0
- package/libs/shared-utils/logger.js +47 -0
- package/package.json +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
- package/docs/classes/PanoFloorplanRadarPluginController.html +0 -3
- package/docs/enums/ModelFloorplanErrorType.html +0 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +0 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +0 -5
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +0 -1
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +0 -19
- package/libs/ModelSimulationPlugin/index.d.ts +0 -33
- package/libs/ModelSimulationPlugin/index.js +0 -166
- package/libs/ModelSimulationPlugin/shaders/fragment.d.ts +0 -2
- package/libs/ModelSimulationPlugin/shaders/fragment.js +0 -96
- package/libs/ModelSimulationPlugin/shaders/vertex.d.ts +0 -2
- package/libs/ModelSimulationPlugin/shaders/vertex.js +0 -23
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +0 -120
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +0 -106
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +0 -463
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +0 -375
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +0 -171
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +0 -265
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +0 -219
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
- package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/libs/shared-utils/five/useFivePlugin.js +0 -8
- package/libs/shared-utils/useDebounce.d.ts +0 -8
- package/libs/shared-utils/useDebounce.js +0 -22
- package/libs/shared-utils/useThrottle.d.ts +0 -8
- package/libs/shared-utils/useThrottle.js +0 -25
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
/* generated by Svelte v3.47.0 */
|
|
2
|
-
import {
|
|
3
|
-
SvelteComponent,
|
|
4
|
-
assign,
|
|
5
|
-
attr,
|
|
6
|
-
check_outros,
|
|
7
|
-
create_component,
|
|
8
|
-
destroy_component,
|
|
9
|
-
detach,
|
|
10
|
-
element,
|
|
11
|
-
empty,
|
|
12
|
-
get_spread_update,
|
|
13
|
-
group_outros,
|
|
14
|
-
init,
|
|
15
|
-
insert,
|
|
16
|
-
mount_component,
|
|
17
|
-
outro_and_destroy_block,
|
|
18
|
-
safe_not_equal,
|
|
19
|
-
transition_in,
|
|
20
|
-
transition_out,
|
|
21
|
-
update_keyed_each
|
|
22
|
-
} from "svelte/internal";
|
|
23
|
-
|
|
24
|
-
import RuleItem from './RuleItem';
|
|
25
|
-
|
|
26
|
-
function get_each_context(ctx, list, i) {
|
|
27
|
-
const child_ctx = ctx.slice();
|
|
28
|
-
child_ctx[7] = list[i][0];
|
|
29
|
-
child_ctx[8] = list[i][1];
|
|
30
|
-
return child_ctx;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// (12:2) {#each ruleLabelArray as [type, data] (type)}
|
|
34
|
-
function create_each_block(key_1, ctx) {
|
|
35
|
-
let first;
|
|
36
|
-
let ruleitem;
|
|
37
|
-
let current;
|
|
38
|
-
|
|
39
|
-
const ruleitem_spread_levels = [
|
|
40
|
-
{
|
|
41
|
-
type: /*type*/ ctx[7],
|
|
42
|
-
data: /*data*/ ctx[8],
|
|
43
|
-
pxmm: /*pxmm*/ ctx[0],
|
|
44
|
-
bounding: /*bounding*/ ctx[2]
|
|
45
|
-
}
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
let ruleitem_props = {};
|
|
49
|
-
|
|
50
|
-
for (let i = 0; i < ruleitem_spread_levels.length; i += 1) {
|
|
51
|
-
ruleitem_props = assign(ruleitem_props, ruleitem_spread_levels[i]);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
ruleitem = new RuleItem({ props: ruleitem_props });
|
|
55
|
-
|
|
56
|
-
return {
|
|
57
|
-
key: key_1,
|
|
58
|
-
first: null,
|
|
59
|
-
c() {
|
|
60
|
-
first = empty();
|
|
61
|
-
create_component(ruleitem.$$.fragment);
|
|
62
|
-
this.first = first;
|
|
63
|
-
},
|
|
64
|
-
m(target, anchor) {
|
|
65
|
-
insert(target, first, anchor);
|
|
66
|
-
mount_component(ruleitem, target, anchor);
|
|
67
|
-
current = true;
|
|
68
|
-
},
|
|
69
|
-
p(new_ctx, dirty) {
|
|
70
|
-
ctx = new_ctx;
|
|
71
|
-
|
|
72
|
-
const ruleitem_changes = (dirty & /*ruleLabelArray, pxmm, bounding*/ 7)
|
|
73
|
-
? get_spread_update(ruleitem_spread_levels, [
|
|
74
|
-
{
|
|
75
|
-
type: /*type*/ ctx[7],
|
|
76
|
-
data: /*data*/ ctx[8],
|
|
77
|
-
pxmm: /*pxmm*/ ctx[0],
|
|
78
|
-
bounding: /*bounding*/ ctx[2]
|
|
79
|
-
}
|
|
80
|
-
])
|
|
81
|
-
: {};
|
|
82
|
-
|
|
83
|
-
ruleitem.$set(ruleitem_changes);
|
|
84
|
-
},
|
|
85
|
-
i(local) {
|
|
86
|
-
if (current) return;
|
|
87
|
-
transition_in(ruleitem.$$.fragment, local);
|
|
88
|
-
current = true;
|
|
89
|
-
},
|
|
90
|
-
o(local) {
|
|
91
|
-
transition_out(ruleitem.$$.fragment, local);
|
|
92
|
-
current = false;
|
|
93
|
-
},
|
|
94
|
-
d(detaching) {
|
|
95
|
-
if (detaching) detach(first);
|
|
96
|
-
destroy_component(ruleitem, detaching);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function create_fragment(ctx) {
|
|
102
|
-
let div;
|
|
103
|
-
let each_blocks = [];
|
|
104
|
-
let each_1_lookup = new Map();
|
|
105
|
-
let current;
|
|
106
|
-
let each_value = /*ruleLabelArray*/ ctx[1];
|
|
107
|
-
const get_key = ctx => /*type*/ ctx[7];
|
|
108
|
-
|
|
109
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
110
|
-
let child_ctx = get_each_context(ctx, each_value, i);
|
|
111
|
-
let key = get_key(child_ctx);
|
|
112
|
-
each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return {
|
|
116
|
-
c() {
|
|
117
|
-
div = element("div");
|
|
118
|
-
|
|
119
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
120
|
-
each_blocks[i].c();
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
attr(div, "class", "floorplan-plugin__rulelabels");
|
|
124
|
-
},
|
|
125
|
-
m(target, anchor) {
|
|
126
|
-
insert(target, div, anchor);
|
|
127
|
-
|
|
128
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
129
|
-
each_blocks[i].m(div, null);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
current = true;
|
|
133
|
-
},
|
|
134
|
-
p(ctx, [dirty]) {
|
|
135
|
-
if (dirty & /*ruleLabelArray, pxmm, bounding*/ 7) {
|
|
136
|
-
each_value = /*ruleLabelArray*/ ctx[1];
|
|
137
|
-
group_outros();
|
|
138
|
-
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, null, get_each_context);
|
|
139
|
-
check_outros();
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
i(local) {
|
|
143
|
-
if (current) return;
|
|
144
|
-
|
|
145
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
146
|
-
transition_in(each_blocks[i]);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
current = true;
|
|
150
|
-
},
|
|
151
|
-
o(local) {
|
|
152
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
153
|
-
transition_out(each_blocks[i]);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
current = false;
|
|
157
|
-
},
|
|
158
|
-
d(detaching) {
|
|
159
|
-
if (detaching) detach(div);
|
|
160
|
-
|
|
161
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
162
|
-
each_blocks[i].d();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function instance($$self, $$props, $$invalidate) {
|
|
169
|
-
let bounding;
|
|
170
|
-
let ruleLabelData;
|
|
171
|
-
let ruleLabelDataKeys;
|
|
172
|
-
let ruleLabelArray;
|
|
173
|
-
let { pxmm } = $$props;
|
|
174
|
-
let { floorIndex } = $$props;
|
|
175
|
-
let { floorplanData } = $$props;
|
|
176
|
-
|
|
177
|
-
$$self.$$set = $$props => {
|
|
178
|
-
if ('pxmm' in $$props) $$invalidate(0, pxmm = $$props.pxmm);
|
|
179
|
-
if ('floorIndex' in $$props) $$invalidate(3, floorIndex = $$props.floorIndex);
|
|
180
|
-
if ('floorplanData' in $$props) $$invalidate(4, floorplanData = $$props.floorplanData);
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
$$self.$$.update = () => {
|
|
184
|
-
if ($$self.$$.dirty & /*floorplanData*/ 16) {
|
|
185
|
-
$: $$invalidate(2, bounding = floorplanData.bounding);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 24) {
|
|
189
|
-
$: $$invalidate(5, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if ($$self.$$.dirty & /*ruleLabelData*/ 32) {
|
|
193
|
-
$: $$invalidate(6, ruleLabelDataKeys = Object.keys(ruleLabelData));
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 96) {
|
|
197
|
-
$: $$invalidate(1, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
return [
|
|
202
|
-
pxmm,
|
|
203
|
-
ruleLabelArray,
|
|
204
|
-
bounding,
|
|
205
|
-
floorIndex,
|
|
206
|
-
floorplanData,
|
|
207
|
-
ruleLabelData,
|
|
208
|
-
ruleLabelDataKeys
|
|
209
|
-
];
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
class Component extends SvelteComponent {
|
|
213
|
-
constructor(options) {
|
|
214
|
-
super();
|
|
215
|
-
init(this, options, instance, create_fragment, safe_not_equal, { pxmm: 0, floorIndex: 3, floorplanData: 4 });
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export default Component;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface ModelFloorplanViewEvent {
|
|
2
|
-
/** 是否是用户滑动模型导致的户型图自动展示/消失 */
|
|
3
|
-
auto: boolean;
|
|
4
|
-
/** 是否是用户操作 */
|
|
5
|
-
userAction: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type FloorplanEventHandlers = {
|
|
8
|
-
/**
|
|
9
|
-
* 展示结束的回调
|
|
10
|
-
* * @param event.auto 是否是自动展示
|
|
11
|
-
*/
|
|
12
|
-
showAnimationEnded: (event: ModelFloorplanViewEvent) => void;
|
|
13
|
-
/**
|
|
14
|
-
* 隐藏的回调
|
|
15
|
-
* @param event.auto 是否是自动隐藏
|
|
16
|
-
*/
|
|
17
|
-
hide: (event: ModelFloorplanViewEvent) => void;
|
|
18
|
-
/**
|
|
19
|
-
* 点击户型图的回调
|
|
20
|
-
* @return 当返回 false 时,会阻止默认行为
|
|
21
|
-
*/
|
|
22
|
-
click: () => boolean | void;
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useFivePlugin<T extends (...args: any) => any>(name: string): ReturnType<T>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { unsafe__useFiveInstance } from '@realsee/five/react';
|
|
2
|
-
export function useFivePlugin(name) {
|
|
3
|
-
const five = unsafe__useFiveInstance();
|
|
4
|
-
const plugin = five.plugins[name];
|
|
5
|
-
if (!plugin)
|
|
6
|
-
throw new Error(`can not find plugin "${name}"`);
|
|
7
|
-
return plugin;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 函数防抖:指触发事件后,在 `n` 秒内函数只能执行一次,如果触发事件后在 `n` 秒内又触发了事件,则会重新计算函数延执行时间。
|
|
3
|
-
* @param callback 回调函数
|
|
4
|
-
* @param waitFor 等待时间
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare const useDebounce: <F extends (...args: any) => any>(callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
8
|
-
export default useDebounce;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useRef, useEffect, useCallback } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 函数防抖:指触发事件后,在 `n` 秒内函数只能执行一次,如果触发事件后在 `n` 秒内又触发了事件,则会重新计算函数延执行时间。
|
|
4
|
-
* @param callback 回调函数
|
|
5
|
-
* @param waitFor 等待时间
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export const useDebounce = (callback, waitFor = 200) => {
|
|
9
|
-
const timer = useRef();
|
|
10
|
-
const savedFunc = useRef(callback);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
savedFunc.current = callback;
|
|
13
|
-
}, [waitFor]);
|
|
14
|
-
return useCallback((...args) => {
|
|
15
|
-
if (timer.current) {
|
|
16
|
-
clearTimeout(timer.current);
|
|
17
|
-
timer.current = null;
|
|
18
|
-
}
|
|
19
|
-
timer.current = setTimeout(() => savedFunc.current?.(...args), waitFor);
|
|
20
|
-
}, []);
|
|
21
|
-
};
|
|
22
|
-
export default useDebounce;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 函数节流:控制频率,限制在 `n` 秒时间。
|
|
3
|
-
* @param callback 回调函数
|
|
4
|
-
* @param waitFor 等待时间
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare const useThrottle: <F extends (...args: any) => any>(callback: F, waitFor: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
8
|
-
export default useThrottle;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useRef, useEffect, useCallback } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 函数节流:控制频率,限制在 `n` 秒时间。
|
|
4
|
-
* @param callback 回调函数
|
|
5
|
-
* @param waitFor 等待时间
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export const useThrottle = (callback, waitFor) => {
|
|
9
|
-
const timer = useRef();
|
|
10
|
-
const savedFunc = useRef(callback);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
savedFunc.current = callback;
|
|
13
|
-
}, [waitFor]);
|
|
14
|
-
return useCallback((...args) => {
|
|
15
|
-
if (timer.current)
|
|
16
|
-
return;
|
|
17
|
-
savedFunc.current?.(...args);
|
|
18
|
-
timer.current = setTimeout(() => {
|
|
19
|
-
if (timer.current)
|
|
20
|
-
clearTimeout(timer.current);
|
|
21
|
-
timer.current = null;
|
|
22
|
-
}, waitFor);
|
|
23
|
-
}, []);
|
|
24
|
-
};
|
|
25
|
-
export default useThrottle;
|