@realsee/dnalogel 2.0.0-alpha.15 → 2.0.0-alpha.16
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/CHANGELOG.md +4 -0
- package/dist/ModelItemLabelPlugin/index.js +19 -15
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -1
- package/dist/ModelRoomLabelPlugin/index.js +1 -0
- package/dist/index.es.js +20 -15
- package/dist/index.js +20 -15
- package/dist/index.umd.js +20 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.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/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- 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/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/modules.html +12 -12
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +17 -15
- package/libs/ModelItemLabelPlugin/index.js +1 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -1
- package/libs/ModelItemLabelPlugin/typings.js +1 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -36,6 +36,7 @@ var DISPLAY_STRATEGY_TYPE;
|
|
|
36
36
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
37
37
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
38
38
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
39
|
+
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
39
40
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
40
41
|
|
|
41
42
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
@@ -172,11 +173,11 @@ function add_css(target) {
|
|
|
172
173
|
|
|
173
174
|
function get_each_context(ctx, list, i) {
|
|
174
175
|
const child_ctx = ctx.slice();
|
|
175
|
-
child_ctx[
|
|
176
|
+
child_ctx[28] = list[i];
|
|
176
177
|
return child_ctx;
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
// (
|
|
180
|
+
// (162:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
|
|
180
181
|
function create_each_block(key_1, ctx) {
|
|
181
182
|
let first;
|
|
182
183
|
let itemlabelitem;
|
|
@@ -184,7 +185,7 @@ function create_each_block(key_1, ctx) {
|
|
|
184
185
|
|
|
185
186
|
itemlabelitem = new ItemLabelItem({
|
|
186
187
|
props: {
|
|
187
|
-
itemLabel: /*itemLabelItem*/ ctx[
|
|
188
|
+
itemLabel: /*itemLabelItem*/ ctx[28],
|
|
188
189
|
hooks: /*hooks*/ ctx[0]
|
|
189
190
|
}
|
|
190
191
|
});
|
|
@@ -205,7 +206,7 @@ function create_each_block(key_1, ctx) {
|
|
|
205
206
|
p(new_ctx, dirty) {
|
|
206
207
|
ctx = new_ctx;
|
|
207
208
|
const itemlabelitem_changes = {};
|
|
208
|
-
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[
|
|
209
|
+
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
|
|
209
210
|
if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
|
|
210
211
|
itemlabelitem.$set(itemlabelitem_changes);
|
|
211
212
|
},
|
|
@@ -232,7 +233,7 @@ function create_fragment(ctx) {
|
|
|
232
233
|
let div_resize_listener;
|
|
233
234
|
let current;
|
|
234
235
|
let each_value = /*renderItemLabels*/ ctx[1];
|
|
235
|
-
const get_key = ctx => /*itemLabelItem*/ ctx[
|
|
236
|
+
const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
|
|
236
237
|
|
|
237
238
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
238
239
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -383,6 +384,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
383
384
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
384
385
|
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
385
386
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
387
|
+
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
388
|
+
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
386
389
|
}
|
|
387
390
|
}
|
|
388
391
|
|
|
@@ -429,16 +432,17 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
429
432
|
addDataUpdateListener();
|
|
430
433
|
});
|
|
431
434
|
|
|
435
|
+
const handleCameraUpdateCallback = () => {
|
|
436
|
+
$$invalidate(4, itemsVisible = false);
|
|
437
|
+
handleCameraUpdate();
|
|
438
|
+
};
|
|
439
|
+
|
|
432
440
|
svelte.onMount(() => {
|
|
433
441
|
$$invalidate(1, renderItemLabels = itemLabels);
|
|
434
442
|
curItemLabels = itemLabels;
|
|
435
443
|
onItemLabelUpdate();
|
|
436
444
|
addResizeListener();
|
|
437
|
-
|
|
438
|
-
five.on('cameraUpdate', () => {
|
|
439
|
-
$$invalidate(4, itemsVisible = false);
|
|
440
|
-
handleCameraUpdate();
|
|
441
|
-
});
|
|
445
|
+
five.on('cameraUpdate', handleCameraUpdateCallback);
|
|
442
446
|
});
|
|
443
447
|
|
|
444
448
|
const handleCameraUpdate = debounce(
|
|
@@ -479,12 +483,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
479
483
|
});
|
|
480
484
|
|
|
481
485
|
svelte.onDestroy(() => {
|
|
482
|
-
five.off('cameraUpdate');
|
|
486
|
+
five.off('cameraUpdate', handleCameraUpdateCallback);
|
|
483
487
|
resizeObserver.unobserve(wrapper);
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
});
|
|
488
|
+
}); // curItemLabels = null
|
|
489
|
+
// renderItemLabels = null
|
|
490
|
+
// wrapperSize = { width: 0, height: 0 }
|
|
488
491
|
|
|
489
492
|
function div_elementresize_handler() {
|
|
490
493
|
containerWidth = this.clientWidth;
|
|
@@ -566,6 +569,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
566
569
|
top: 0;
|
|
567
570
|
width: 100%;
|
|
568
571
|
height: 100%;
|
|
572
|
+
z-index: 5;
|
|
569
573
|
`;
|
|
570
574
|
pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
|
|
571
575
|
const appendTo = (wrapper) => {
|
|
@@ -4,7 +4,8 @@ import { PluginEvent } from "./events.type";
|
|
|
4
4
|
export declare enum DISPLAY_STRATEGY_TYPE {
|
|
5
5
|
SMALL = "small",
|
|
6
6
|
MIDLLE = "middle",
|
|
7
|
-
LARGE = "large"
|
|
7
|
+
LARGE = "large",
|
|
8
|
+
EXTRA_LARGE = "x-large"
|
|
8
9
|
}
|
|
9
10
|
export interface ModelItemLabelPluginParametersType {
|
|
10
11
|
modelOcclusionEnable?: boolean;
|
|
@@ -425,6 +425,7 @@ class ModelRoomLabelController {
|
|
|
425
425
|
this.container.style.pointerEvents = 'none';
|
|
426
426
|
this.container.style.left = '0';
|
|
427
427
|
this.container.style.top = '0';
|
|
428
|
+
this.container.style.zIndex = '5';
|
|
428
429
|
// five listener
|
|
429
430
|
this.five.once('dispose', () => this.dispose());
|
|
430
431
|
this.five.on('modeChange', this.onFiveModeChange);
|
package/dist/index.es.js
CHANGED
|
@@ -892,6 +892,7 @@ class ModelRoomLabelController {
|
|
|
892
892
|
this.container.style.pointerEvents = 'none';
|
|
893
893
|
this.container.style.left = '0';
|
|
894
894
|
this.container.style.top = '0';
|
|
895
|
+
this.container.style.zIndex = '5';
|
|
895
896
|
// five listener
|
|
896
897
|
this.five.once('dispose', () => this.dispose());
|
|
897
898
|
this.five.on('modeChange', this.onFiveModeChange);
|
|
@@ -14252,6 +14253,7 @@ var DISPLAY_STRATEGY_TYPE;
|
|
|
14252
14253
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14253
14254
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14254
14255
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14256
|
+
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14255
14257
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14256
14258
|
|
|
14257
14259
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
@@ -14388,11 +14390,11 @@ function add_css(target) {
|
|
|
14388
14390
|
|
|
14389
14391
|
function get_each_context(ctx, list, i) {
|
|
14390
14392
|
const child_ctx = ctx.slice();
|
|
14391
|
-
child_ctx[
|
|
14393
|
+
child_ctx[28] = list[i];
|
|
14392
14394
|
return child_ctx;
|
|
14393
14395
|
}
|
|
14394
14396
|
|
|
14395
|
-
// (
|
|
14397
|
+
// (162:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
|
|
14396
14398
|
function create_each_block(key_1, ctx) {
|
|
14397
14399
|
let first;
|
|
14398
14400
|
let itemlabelitem;
|
|
@@ -14400,7 +14402,7 @@ function create_each_block(key_1, ctx) {
|
|
|
14400
14402
|
|
|
14401
14403
|
itemlabelitem = new ItemLabelItem({
|
|
14402
14404
|
props: {
|
|
14403
|
-
itemLabel: /*itemLabelItem*/ ctx[
|
|
14405
|
+
itemLabel: /*itemLabelItem*/ ctx[28],
|
|
14404
14406
|
hooks: /*hooks*/ ctx[0]
|
|
14405
14407
|
}
|
|
14406
14408
|
});
|
|
@@ -14421,7 +14423,7 @@ function create_each_block(key_1, ctx) {
|
|
|
14421
14423
|
p(new_ctx, dirty) {
|
|
14422
14424
|
ctx = new_ctx;
|
|
14423
14425
|
const itemlabelitem_changes = {};
|
|
14424
|
-
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[
|
|
14426
|
+
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
|
|
14425
14427
|
if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
|
|
14426
14428
|
itemlabelitem.$set(itemlabelitem_changes);
|
|
14427
14429
|
},
|
|
@@ -14448,7 +14450,7 @@ function create_fragment(ctx) {
|
|
|
14448
14450
|
let div_resize_listener;
|
|
14449
14451
|
let current;
|
|
14450
14452
|
let each_value = /*renderItemLabels*/ ctx[1];
|
|
14451
|
-
const get_key = ctx => /*itemLabelItem*/ ctx[
|
|
14453
|
+
const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
|
|
14452
14454
|
|
|
14453
14455
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
14454
14456
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -14599,6 +14601,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14599
14601
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14600
14602
|
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14601
14603
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14604
|
+
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14605
|
+
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14602
14606
|
}
|
|
14603
14607
|
}
|
|
14604
14608
|
|
|
@@ -14645,16 +14649,17 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14645
14649
|
addDataUpdateListener();
|
|
14646
14650
|
});
|
|
14647
14651
|
|
|
14652
|
+
const handleCameraUpdateCallback = () => {
|
|
14653
|
+
$$invalidate(4, itemsVisible = false);
|
|
14654
|
+
handleCameraUpdate();
|
|
14655
|
+
};
|
|
14656
|
+
|
|
14648
14657
|
onMount(() => {
|
|
14649
14658
|
$$invalidate(1, renderItemLabels = itemLabels);
|
|
14650
14659
|
curItemLabels = itemLabels;
|
|
14651
14660
|
onItemLabelUpdate();
|
|
14652
14661
|
addResizeListener();
|
|
14653
|
-
|
|
14654
|
-
five.on('cameraUpdate', () => {
|
|
14655
|
-
$$invalidate(4, itemsVisible = false);
|
|
14656
|
-
handleCameraUpdate();
|
|
14657
|
-
});
|
|
14662
|
+
five.on('cameraUpdate', handleCameraUpdateCallback);
|
|
14658
14663
|
});
|
|
14659
14664
|
|
|
14660
14665
|
const handleCameraUpdate = debounce(
|
|
@@ -14695,12 +14700,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14695
14700
|
});
|
|
14696
14701
|
|
|
14697
14702
|
onDestroy(() => {
|
|
14698
|
-
five.off('cameraUpdate');
|
|
14703
|
+
five.off('cameraUpdate', handleCameraUpdateCallback);
|
|
14699
14704
|
resizeObserver.unobserve(wrapper);
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
});
|
|
14705
|
+
}); // curItemLabels = null
|
|
14706
|
+
// renderItemLabels = null
|
|
14707
|
+
// wrapperSize = { width: 0, height: 0 }
|
|
14704
14708
|
|
|
14705
14709
|
function div_elementresize_handler() {
|
|
14706
14710
|
containerWidth = this.clientWidth;
|
|
@@ -14782,6 +14786,7 @@ const ModelItemLabelPlugin = (five, params) => {
|
|
|
14782
14786
|
top: 0;
|
|
14783
14787
|
width: 100%;
|
|
14784
14788
|
height: 100%;
|
|
14789
|
+
z-index: 5;
|
|
14785
14790
|
`;
|
|
14786
14791
|
pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
|
|
14787
14792
|
const appendTo = (wrapper) => {
|
package/dist/index.js
CHANGED
|
@@ -919,6 +919,7 @@ class ModelRoomLabelController {
|
|
|
919
919
|
this.container.style.pointerEvents = 'none';
|
|
920
920
|
this.container.style.left = '0';
|
|
921
921
|
this.container.style.top = '0';
|
|
922
|
+
this.container.style.zIndex = '5';
|
|
922
923
|
// five listener
|
|
923
924
|
this.five.once('dispose', () => this.dispose());
|
|
924
925
|
this.five.on('modeChange', this.onFiveModeChange);
|
|
@@ -14279,6 +14280,7 @@ var DISPLAY_STRATEGY_TYPE;
|
|
|
14279
14280
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14280
14281
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14281
14282
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14283
|
+
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14282
14284
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14283
14285
|
|
|
14284
14286
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
@@ -14415,11 +14417,11 @@ function add_css(target) {
|
|
|
14415
14417
|
|
|
14416
14418
|
function get_each_context(ctx, list, i) {
|
|
14417
14419
|
const child_ctx = ctx.slice();
|
|
14418
|
-
child_ctx[
|
|
14420
|
+
child_ctx[28] = list[i];
|
|
14419
14421
|
return child_ctx;
|
|
14420
14422
|
}
|
|
14421
14423
|
|
|
14422
|
-
// (
|
|
14424
|
+
// (162:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
|
|
14423
14425
|
function create_each_block(key_1, ctx) {
|
|
14424
14426
|
let first;
|
|
14425
14427
|
let itemlabelitem;
|
|
@@ -14427,7 +14429,7 @@ function create_each_block(key_1, ctx) {
|
|
|
14427
14429
|
|
|
14428
14430
|
itemlabelitem = new ItemLabelItem({
|
|
14429
14431
|
props: {
|
|
14430
|
-
itemLabel: /*itemLabelItem*/ ctx[
|
|
14432
|
+
itemLabel: /*itemLabelItem*/ ctx[28],
|
|
14431
14433
|
hooks: /*hooks*/ ctx[0]
|
|
14432
14434
|
}
|
|
14433
14435
|
});
|
|
@@ -14448,7 +14450,7 @@ function create_each_block(key_1, ctx) {
|
|
|
14448
14450
|
p(new_ctx, dirty) {
|
|
14449
14451
|
ctx = new_ctx;
|
|
14450
14452
|
const itemlabelitem_changes = {};
|
|
14451
|
-
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[
|
|
14453
|
+
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
|
|
14452
14454
|
if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
|
|
14453
14455
|
itemlabelitem.$set(itemlabelitem_changes);
|
|
14454
14456
|
},
|
|
@@ -14475,7 +14477,7 @@ function create_fragment(ctx) {
|
|
|
14475
14477
|
let div_resize_listener;
|
|
14476
14478
|
let current;
|
|
14477
14479
|
let each_value = /*renderItemLabels*/ ctx[1];
|
|
14478
|
-
const get_key = ctx => /*itemLabelItem*/ ctx[
|
|
14480
|
+
const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
|
|
14479
14481
|
|
|
14480
14482
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
14481
14483
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -14626,6 +14628,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14626
14628
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14627
14629
|
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14628
14630
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14631
|
+
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14632
|
+
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14629
14633
|
}
|
|
14630
14634
|
}
|
|
14631
14635
|
|
|
@@ -14672,16 +14676,17 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14672
14676
|
addDataUpdateListener();
|
|
14673
14677
|
});
|
|
14674
14678
|
|
|
14679
|
+
const handleCameraUpdateCallback = () => {
|
|
14680
|
+
$$invalidate(4, itemsVisible = false);
|
|
14681
|
+
handleCameraUpdate();
|
|
14682
|
+
};
|
|
14683
|
+
|
|
14675
14684
|
svelte.onMount(() => {
|
|
14676
14685
|
$$invalidate(1, renderItemLabels = itemLabels);
|
|
14677
14686
|
curItemLabels = itemLabels;
|
|
14678
14687
|
onItemLabelUpdate();
|
|
14679
14688
|
addResizeListener();
|
|
14680
|
-
|
|
14681
|
-
five.on('cameraUpdate', () => {
|
|
14682
|
-
$$invalidate(4, itemsVisible = false);
|
|
14683
|
-
handleCameraUpdate();
|
|
14684
|
-
});
|
|
14689
|
+
five.on('cameraUpdate', handleCameraUpdateCallback);
|
|
14685
14690
|
});
|
|
14686
14691
|
|
|
14687
14692
|
const handleCameraUpdate = debounce(
|
|
@@ -14722,12 +14727,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14722
14727
|
});
|
|
14723
14728
|
|
|
14724
14729
|
svelte.onDestroy(() => {
|
|
14725
|
-
five.off('cameraUpdate');
|
|
14730
|
+
five.off('cameraUpdate', handleCameraUpdateCallback);
|
|
14726
14731
|
resizeObserver.unobserve(wrapper);
|
|
14727
|
-
|
|
14728
|
-
|
|
14729
|
-
|
|
14730
|
-
});
|
|
14732
|
+
}); // curItemLabels = null
|
|
14733
|
+
// renderItemLabels = null
|
|
14734
|
+
// wrapperSize = { width: 0, height: 0 }
|
|
14731
14735
|
|
|
14732
14736
|
function div_elementresize_handler() {
|
|
14733
14737
|
containerWidth = this.clientWidth;
|
|
@@ -14809,6 +14813,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
14809
14813
|
top: 0;
|
|
14810
14814
|
width: 100%;
|
|
14811
14815
|
height: 100%;
|
|
14816
|
+
z-index: 5;
|
|
14812
14817
|
`;
|
|
14813
14818
|
pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
|
|
14814
14819
|
const appendTo = (wrapper) => {
|
package/dist/index.umd.js
CHANGED
|
@@ -908,6 +908,7 @@
|
|
|
908
908
|
this.container.style.pointerEvents = 'none';
|
|
909
909
|
this.container.style.left = '0';
|
|
910
910
|
this.container.style.top = '0';
|
|
911
|
+
this.container.style.zIndex = '5';
|
|
911
912
|
// five listener
|
|
912
913
|
this.five.once('dispose', () => this.dispose());
|
|
913
914
|
this.five.on('modeChange', this.onFiveModeChange);
|
|
@@ -14268,6 +14269,7 @@
|
|
|
14268
14269
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14269
14270
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14270
14271
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14272
|
+
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14271
14273
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14272
14274
|
|
|
14273
14275
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
@@ -14404,11 +14406,11 @@
|
|
|
14404
14406
|
|
|
14405
14407
|
function get_each_context(ctx, list, i) {
|
|
14406
14408
|
const child_ctx = ctx.slice();
|
|
14407
|
-
child_ctx[
|
|
14409
|
+
child_ctx[28] = list[i];
|
|
14408
14410
|
return child_ctx;
|
|
14409
14411
|
}
|
|
14410
14412
|
|
|
14411
|
-
// (
|
|
14413
|
+
// (162:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
|
|
14412
14414
|
function create_each_block(key_1, ctx) {
|
|
14413
14415
|
let first;
|
|
14414
14416
|
let itemlabelitem;
|
|
@@ -14416,7 +14418,7 @@
|
|
|
14416
14418
|
|
|
14417
14419
|
itemlabelitem = new ItemLabelItem({
|
|
14418
14420
|
props: {
|
|
14419
|
-
itemLabel: /*itemLabelItem*/ ctx[
|
|
14421
|
+
itemLabel: /*itemLabelItem*/ ctx[28],
|
|
14420
14422
|
hooks: /*hooks*/ ctx[0]
|
|
14421
14423
|
}
|
|
14422
14424
|
});
|
|
@@ -14437,7 +14439,7 @@
|
|
|
14437
14439
|
p(new_ctx, dirty) {
|
|
14438
14440
|
ctx = new_ctx;
|
|
14439
14441
|
const itemlabelitem_changes = {};
|
|
14440
|
-
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[
|
|
14442
|
+
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
|
|
14441
14443
|
if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
|
|
14442
14444
|
itemlabelitem.$set(itemlabelitem_changes);
|
|
14443
14445
|
},
|
|
@@ -14464,7 +14466,7 @@
|
|
|
14464
14466
|
let div_resize_listener;
|
|
14465
14467
|
let current;
|
|
14466
14468
|
let each_value = /*renderItemLabels*/ ctx[1];
|
|
14467
|
-
const get_key = ctx => /*itemLabelItem*/ ctx[
|
|
14469
|
+
const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
|
|
14468
14470
|
|
|
14469
14471
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
14470
14472
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -14615,6 +14617,8 @@
|
|
|
14615
14617
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14616
14618
|
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14617
14619
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14620
|
+
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14621
|
+
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14618
14622
|
}
|
|
14619
14623
|
}
|
|
14620
14624
|
|
|
@@ -14661,16 +14665,17 @@
|
|
|
14661
14665
|
addDataUpdateListener();
|
|
14662
14666
|
});
|
|
14663
14667
|
|
|
14668
|
+
const handleCameraUpdateCallback = () => {
|
|
14669
|
+
$$invalidate(4, itemsVisible = false);
|
|
14670
|
+
handleCameraUpdate();
|
|
14671
|
+
};
|
|
14672
|
+
|
|
14664
14673
|
svelte.onMount(() => {
|
|
14665
14674
|
$$invalidate(1, renderItemLabels = itemLabels);
|
|
14666
14675
|
curItemLabels = itemLabels;
|
|
14667
14676
|
onItemLabelUpdate();
|
|
14668
14677
|
addResizeListener();
|
|
14669
|
-
|
|
14670
|
-
five.on('cameraUpdate', () => {
|
|
14671
|
-
$$invalidate(4, itemsVisible = false);
|
|
14672
|
-
handleCameraUpdate();
|
|
14673
|
-
});
|
|
14678
|
+
five.on('cameraUpdate', handleCameraUpdateCallback);
|
|
14674
14679
|
});
|
|
14675
14680
|
|
|
14676
14681
|
const handleCameraUpdate = debounce(
|
|
@@ -14711,12 +14716,11 @@
|
|
|
14711
14716
|
});
|
|
14712
14717
|
|
|
14713
14718
|
svelte.onDestroy(() => {
|
|
14714
|
-
five.off('cameraUpdate');
|
|
14719
|
+
five.off('cameraUpdate', handleCameraUpdateCallback);
|
|
14715
14720
|
resizeObserver.unobserve(wrapper);
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
});
|
|
14721
|
+
}); // curItemLabels = null
|
|
14722
|
+
// renderItemLabels = null
|
|
14723
|
+
// wrapperSize = { width: 0, height: 0 }
|
|
14720
14724
|
|
|
14721
14725
|
function div_elementresize_handler() {
|
|
14722
14726
|
containerWidth = this.clientWidth;
|
|
@@ -14798,6 +14802,7 @@
|
|
|
14798
14802
|
top: 0;
|
|
14799
14803
|
width: 100%;
|
|
14800
14804
|
height: 100%;
|
|
14805
|
+
z-index: 5;
|
|
14801
14806
|
`;
|
|
14802
14807
|
pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
|
|
14803
14808
|
const appendTo = (wrapper) => {
|