@realsee/dnalogel 3.78.1-alpha.0 → 3.79.0-alpha.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +10 -8
  3. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -3
  4. package/dist/index.cjs.js +96 -101
  5. package/dist/index.js +14483 -16495
  6. package/dist/index.umd.js +89 -94
  7. package/libs/CruisePlugin/Move.js +14 -27
  8. package/libs/CruisePlugin/Work.js +61 -74
  9. package/libs/CruisePlugin/index.js +18 -31
  10. package/libs/GuideLinePlugin/Controller.js +18 -31
  11. package/libs/GuideLinePlugin/GuideLineItem.js +16 -29
  12. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
  13. package/libs/GuideLinePlugin/GuideLineModeItem.js +16 -27
  14. package/libs/GuideLinePlugin/index.js +18 -31
  15. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +1 -1
  16. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +87 -77
  17. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +189 -135
  18. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +460 -432
  19. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +38 -126
  20. package/libs/PanoTagPlugin/Components/Tag/index.js +292 -393
  21. package/libs/PanoTagPlugin/Components/TagContainer.js +125 -135
  22. package/libs/PanoTagPlugin/Components/TagItem.js +275 -281
  23. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +61 -74
  24. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +95 -108
  25. package/libs/PanoTagPlugin/controller/index.js +41 -54
  26. package/libs/PanoTagPlugin/index.js +23 -36
  27. package/libs/PanoTagPlugin/tag.config.js +31 -1
  28. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +10 -8
  29. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -3
  30. package/libs/base/BasePlugin.js +1 -1
  31. package/libs/index.js +169 -182
  32. package/libs/shared-utils/logger.js +1 -1
  33. package/libs/shared-utils/url/replace-static-prefix.js +12 -7
  34. package/libs/vendor/svelte/internal/index.js +235 -225
  35. package/package.json +2 -2
  36. package/dist/PanoTagPlugin/Components/Common/Arrow.svelte.d.ts +0 -1
  37. package/dist/PanoTagPlugin/Components/Common/Line/Polyline.svelte.d.ts +0 -1
  38. package/dist/PanoTagPlugin/Components/Common/Line/Straight.svelte.d.ts +0 -1
  39. package/dist/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +0 -1
  40. package/dist/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +0 -1
  41. package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +0 -1
  42. package/dist/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +0 -1
  43. package/dist/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +0 -1
  44. package/dist/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +0 -1
  45. package/dist/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +0 -1
  46. package/dist/PanoTagPlugin/utils/constants.d.ts +0 -3
  47. package/dist/PanoTagPlugin/utils/doUtil.d.ts +0 -1
  48. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -198
  49. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +0 -1
  50. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -258
  51. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +0 -1
  52. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -358
  53. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +0 -1
  54. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +0 -259
  55. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +0 -1
  56. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -216
  57. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +0 -1
  58. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -219
  59. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +0 -1
  60. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -134
  61. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,4 +1,23 @@
1
1
  # CHANGELOG
2
+ ## 3.79.0-alpha.0
3
+
4
+ - **breaking change** feat(PanoTagPlugin): `popoverConfig.enabled` 默认值由 `false` 改为 `true`,Text / Audio / ImageText / Image / Video 类型标签现在默认使用 hover 悬浮面板(popover)而非内联展开。若需恢复旧行为,请显式设置 `globalConfig.popoverConfig.enabled: false`。
5
+ - **breaking change** feat(PanoTagPlugin): 移除 `Text.data.appearance = 'line'` 选项(带飞出文字动画的旧式样式)。内联模式下文字标签统一使用 `plane` 样式。
6
+ - **breaking change** feat(PanoTagPlugin): 移除 `Audio.data.appearance = 'line'` 选项(带竖线的旧式音频样式)。内联模式下音频标签统一使用圆形按钮的 `plane` 样式。
7
+ - feat(PanoTagPlugin): 新增 `popoverConfig.shareText` 配置,支持在 `showMore: false` 时为分享按钮配置 i18n 文案。
8
+ - feat(PanoTagPlugin): Text 标签内联面板(plane 模式)及 Popover 描述区域超长时支持内部滚动,底部渐隐提示。
9
+
10
+ ## 3.78.0
11
+
12
+ - feat(PanoTagPlugin): popoverConfig 新增 `onHoverEnd` 回调,支持通过 `event.pointerType` 区分鼠标/触摸事件
13
+ - feat(PanoTagPlugin): 新增 `__experimental_PolygonMeshConfig` 实验性 Polygon mesh 渲染配置
14
+
15
+ ## 3.77.10
16
+ - fix(shared-utils): 修复 replaceStaticPrefix 在 prefix 含端口号时丢失端口的问题
17
+
18
+ ## 3.77.9
19
+ - fix(GuideLinePlugin): 修复创建新 guideline 时箭头贴图未按 staticPrefix 配置替换的问题
20
+
2
21
  ## 3.77.8
3
22
  - fix(Sculpt) 优先从父链获取以支持多 VR;兜底 window.globalModulesfive / window.$five 保证单 VR 场景兼容
4
23
 
@@ -286,10 +286,9 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
286
286
  * @description 触发方式
287
287
  * @description hover - 鼠标悬停触发,移出后面板消失
288
288
  * @description click - 点击触发(fold/unfold模式),再次点击隐藏
289
- * @description hover-and-click - hover 显示面板,移出后消失;点击固定面板(固定后移出 hover 面板也不消失),再次点击取消固定
290
289
  * @default 'hover'
291
290
  */
292
- trigger?: 'hover' | 'click' | 'hover-and-click';
291
+ trigger?: 'hover' | 'click';
293
292
  /**
294
293
  * @description 触发延迟时间(仅在 trigger 为 hover 时生效), 单位为毫秒
295
294
  * @default 300
@@ -352,19 +351,22 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
352
351
  * @default '查看更多'
353
352
  */
354
353
  viewMoreText?: string;
354
+ /**
355
+ * @description 仅显示分享按钮时(showMore: false)展示在分享图标旁边的文案
356
+ * @description 用于 i18n 场景,由业务侧传入,如 "立即分享"
357
+ * @default undefined(不显示文案)
358
+ */
359
+ shareText?: string;
355
360
  /**
356
361
  * @description 鼠标悬停前的拦截函数,返回 true 允许 hover,false 阻止 hover
357
362
  */
358
363
  beforeOpen?: (tag?: TagInstance) => boolean | undefined;
359
364
  /**
360
365
  * @description 鼠标离开标签区域后的回调(在 hover 结束时触发,无论 beforeOpen 是否拦截过本次 hover)
366
+ * @param tag 当前标签实例
367
+ * @param event 原生 PointerEvent,可通过 event.pointerType 区分 'mouse' / 'touch' / 'pen'
361
368
  */
362
- onHoverEnd?: (tag?: TagInstance) => void;
363
- /**
364
- * @description 禁用插件默认的标签内容渲染(TextTag / TextPlaneTag 等),由业务侧自行渲染
365
- * @default false
366
- */
367
- suppressDefaultContent?: boolean;
369
+ onHoverEnd?: (tag?: TagInstance, event?: PointerEvent) => void;
368
370
  };
369
371
  /**
370
372
  * @description 标签法线相关配置
@@ -21,7 +21,7 @@ export type TagContentType = keyof typeof ContentType;
21
21
  export interface ContentTypeMapInterface {
22
22
  /** 文字标签 */
23
23
  Text: {
24
- appearance?: 'line' | 'plane';
24
+ appearance?: 'plane';
25
25
  /** @deprecated: please use 'title' */
26
26
  text?: string;
27
27
  title?: string;
@@ -52,8 +52,7 @@ export interface ContentTypeMapInterface {
52
52
  /** @deprecated: 'text' replace by title */
53
53
  text?: string;
54
54
  title?: string;
55
- /** @description 'line' 是旧的那种有一条线的,默认为'line', 'plane' 是新的那种圆形的 */
56
- appearance?: 'line' | 'plane';
55
+ appearance?: 'plane';
57
56
  theme?: 'dark' | 'light';
58
57
  audioUrl: string;
59
58
  };