@ericchen1990/pano-view 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -5
- package/README.zh-CN.md +12 -3
- package/dist/data.cjs +4 -0
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.mts +5 -0
- package/dist/data.d.ts +5 -0
- package/dist/data.mjs +4 -0
- package/dist/data.mjs.map +1 -1
- package/dist/index.cjs +4696 -2631
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +148 -9
- package/dist/index.d.ts +148 -9
- package/dist/index.mjs +4660 -2568
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +18 -0
- package/dist/ui.cjs +24 -10
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.d.mts +4 -3
- package/dist/ui.d.ts +4 -3
- package/dist/ui.mjs +26 -12
- package/dist/ui.mjs.map +1 -1
- package/docs/dialogs.md +58 -0
- package/docs/dialogs.zh-CN.md +64 -0
- package/package.json +3 -2
package/dist/data.d.mts
CHANGED
|
@@ -274,6 +274,7 @@ type HotspotPosition = {
|
|
|
274
274
|
type HotspotMode = "surface" | "billboard";
|
|
275
275
|
/** Whether a hotspot grows with panorama zoom or preserves its screen size. */
|
|
276
276
|
type HotspotScaleMode = "fov" | "fixed";
|
|
277
|
+
type HotspotTooltipScaleMode = "inherit" | HotspotScaleMode;
|
|
277
278
|
/** When a hotspot tooltip is shown. Defaults to `"always"`. */
|
|
278
279
|
type HotspotTooltipTrigger = "always" | "hover" | "click";
|
|
279
280
|
/**
|
|
@@ -400,6 +401,10 @@ type HotspotDefinitionBase = {
|
|
|
400
401
|
tooltip?: string | HotspotTooltipContent;
|
|
401
402
|
tooltipTrigger?: HotspotTooltipTrigger;
|
|
402
403
|
tooltipPlacement?: HotspotTooltipPlacement;
|
|
404
|
+
/** Defaults to billboard, independently of the hotspot orientation. */
|
|
405
|
+
tooltipMode?: HotspotMode;
|
|
406
|
+
/** Defaults to inherit. Surface tooltips always scale with FOV. */
|
|
407
|
+
tooltipScaleMode?: HotspotTooltipScaleMode;
|
|
403
408
|
tooltipOffset?: number;
|
|
404
409
|
tooltipAppearance?: HotspotTooltipAppearance;
|
|
405
410
|
};
|
package/dist/data.d.ts
CHANGED
|
@@ -274,6 +274,7 @@ type HotspotPosition = {
|
|
|
274
274
|
type HotspotMode = "surface" | "billboard";
|
|
275
275
|
/** Whether a hotspot grows with panorama zoom or preserves its screen size. */
|
|
276
276
|
type HotspotScaleMode = "fov" | "fixed";
|
|
277
|
+
type HotspotTooltipScaleMode = "inherit" | HotspotScaleMode;
|
|
277
278
|
/** When a hotspot tooltip is shown. Defaults to `"always"`. */
|
|
278
279
|
type HotspotTooltipTrigger = "always" | "hover" | "click";
|
|
279
280
|
/**
|
|
@@ -400,6 +401,10 @@ type HotspotDefinitionBase = {
|
|
|
400
401
|
tooltip?: string | HotspotTooltipContent;
|
|
401
402
|
tooltipTrigger?: HotspotTooltipTrigger;
|
|
402
403
|
tooltipPlacement?: HotspotTooltipPlacement;
|
|
404
|
+
/** Defaults to billboard, independently of the hotspot orientation. */
|
|
405
|
+
tooltipMode?: HotspotMode;
|
|
406
|
+
/** Defaults to inherit. Surface tooltips always scale with FOV. */
|
|
407
|
+
tooltipScaleMode?: HotspotTooltipScaleMode;
|
|
403
408
|
tooltipOffset?: number;
|
|
404
409
|
tooltipAppearance?: HotspotTooltipAppearance;
|
|
405
410
|
};
|
package/dist/data.mjs
CHANGED
|
@@ -427,6 +427,8 @@ var common = [
|
|
|
427
427
|
"tooltip",
|
|
428
428
|
"tooltipTrigger",
|
|
429
429
|
"tooltipPlacement",
|
|
430
|
+
"tooltipMode",
|
|
431
|
+
"tooltipScaleMode",
|
|
430
432
|
"tooltipOffset",
|
|
431
433
|
"tooltipAppearance"
|
|
432
434
|
];
|
|
@@ -568,6 +570,8 @@ var enums = {
|
|
|
568
570
|
pointerEvents: ["auto", "none"],
|
|
569
571
|
tooltipTrigger: ["always", "hover", "click"],
|
|
570
572
|
tooltipPlacement: ["top", "bottom", "left", "right"],
|
|
573
|
+
tooltipMode: ["surface", "billboard"],
|
|
574
|
+
tooltipScaleMode: ["inherit", "fov", "fixed"],
|
|
571
575
|
mode: ["surface", "billboard"],
|
|
572
576
|
scaleMode: ["fov", "fixed"],
|
|
573
577
|
frameDirection: ["horizontal", "vertical"],
|