@realsee/dnalogel 2.1.0-alpha.10 → 2.1.0-alpha.11

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 (148) hide show
  1. package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  2. package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  3. package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  4. package/dist/CameraMovementPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  5. package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  6. package/dist/CruisePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  7. package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  8. package/dist/GuideLinePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  9. package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  10. package/dist/ItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  11. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  12. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  13. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  14. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  15. package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  16. package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  17. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  18. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  19. package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  20. package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  21. package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  22. package/dist/ModelViewPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  23. package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  24. package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  25. package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  26. package/dist/PanoCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  27. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  28. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  29. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  30. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  31. package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  32. package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  33. package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  34. package/dist/PanoRulerPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  35. package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  36. package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  37. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  38. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  39. package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  40. package/dist/PanoTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  41. package/dist/PanoTagPlugin/index.js +26 -5
  42. package/dist/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  43. package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
  44. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  45. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  46. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  47. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  48. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  49. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  50. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  51. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
  52. package/dist/index.es.js +26 -5
  53. package/dist/index.js +26 -5
  54. package/dist/index.umd.js +26 -5
  55. package/docs/classes/CruisePluginController.html +14 -14
  56. package/docs/classes/Magnifier.html +4 -4
  57. package/docs/classes/ModelRoomLabelController.html +4 -4
  58. package/docs/classes/Object3DHelperController.html +9 -9
  59. package/docs/classes/PanoTagPluginController.html +25 -25
  60. package/docs/enums/CameraMovementEffect.html +1 -1
  61. package/docs/enums/ContentType.html +7 -7
  62. package/docs/enums/DIRECTION.html +1 -1
  63. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  64. package/docs/enums/DimensionType.html +1 -1
  65. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  66. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  67. package/docs/enums/LinkType.html +1 -1
  68. package/docs/enums/PointType.html +1 -1
  69. package/docs/enums/Rotation.html +1 -1
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  71. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  72. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  73. package/docs/interfaces/FloorplanBounding.html +3 -3
  74. package/docs/interfaces/FloorplanData.html +1 -1
  75. package/docs/interfaces/FloorplanEntrance.html +6 -6
  76. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  77. package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
  78. package/docs/interfaces/FloorplanFloorData.html +1 -1
  79. package/docs/interfaces/FloorplanImagePosition.html +1 -1
  80. package/docs/interfaces/FloorplanObserver.html +1 -1
  81. package/docs/interfaces/FloorplanOutlineItem.html +1 -1
  82. package/docs/interfaces/FloorplanPosition.html +1 -1
  83. package/docs/interfaces/FloorplanRoomItem.html +5 -5
  84. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  85. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  86. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  87. package/docs/interfaces/FloorplanServerData.html +1 -1
  88. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  89. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  90. package/docs/interfaces/FloorplanServerEntrance.html +6 -6
  91. package/docs/interfaces/FloorplanServerFloorData.html +1 -1
  92. package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
  93. package/docs/interfaces/FloorplanServerObserver.html +1 -1
  94. package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
  95. package/docs/interfaces/FloorplanServerPosition.html +1 -1
  96. package/docs/interfaces/FloorplanServerRoomItem.html +6 -6
  97. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  98. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  99. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  100. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  101. package/docs/interfaces/LineJson.html +1 -1
  102. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  103. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  104. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  105. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  106. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  107. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  108. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  109. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  110. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  111. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  112. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  113. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  114. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  115. package/docs/interfaces/Object3DHelperState.html +1 -1
  116. package/docs/interfaces/OpenParameter.html +1 -1
  117. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  118. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  119. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  120. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  121. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  122. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  123. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  124. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  125. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  126. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  127. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  128. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  129. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  130. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  131. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  132. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  133. package/docs/interfaces/Point.html +1 -1
  134. package/docs/interfaces/PointJson.html +1 -1
  135. package/docs/interfaces/Room.html +1 -1
  136. package/docs/interfaces/RoomInfo.html +1 -1
  137. package/docs/interfaces/RoomLabel.html +7 -7
  138. package/docs/interfaces/Scissor.html +4 -4
  139. package/docs/interfaces/TagConfig.html +3 -3
  140. package/docs/interfaces/Tags.html +3 -3
  141. package/docs/modules.html +21 -21
  142. package/libs/PanoTagPlugin/Components/Common/Text.js +19 -2
  143. package/libs/PanoTagPlugin/controller/index.js +1 -1
  144. package/libs/PanoTagPlugin/mocks/mock1.d.ts +0 -7
  145. package/libs/PanoTagPlugin/mocks/mock1.js +2 -2
  146. package/libs/PanoTagPlugin/utils/constants.d.ts +3 -0
  147. package/libs/PanoTagPlugin/utils/constants.js +5 -0
  148. package/package.json +1 -1
@@ -21,6 +21,7 @@ import anime from 'animejs';
21
21
  import { onMount } from 'svelte';
22
22
  import { notNil } from '../../../shared-utils/isNil';
23
23
  import { searchFirstValueSmallThanLastValue } from '../../utils';
24
+ import { RANDON_STRING } from '../../utils/constants';
24
25
 
25
26
  function add_css(target) {
26
27
  append_styles(target, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
@@ -34,7 +35,7 @@ function get_each_context(ctx, list, i) {
34
35
  return child_ctx;
35
36
  }
36
37
 
37
- // (60:0) {#each contentList as item, index}
38
+ // (80:0) {#each contentList as item, index}
38
39
  function create_each_block(ctx) {
39
40
  let span;
40
41
  let t_value = /*item*/ ctx[10] + "";
@@ -202,7 +203,23 @@ function instance($$self, $$props, $$invalidate) {
202
203
 
203
204
  $$self.$$.update = () => {
204
205
  if ($$self.$$.dirty & /*content*/ 16) {
205
- $: $$invalidate(1, contentList = content.slice().split(''));
206
+ // v0.3.7 emoji support
207
+ $: $$invalidate(1, contentList = (() => {
208
+ const result = [];
209
+
210
+ // eslint-disable-next-line prettier/prettier
211
+ const emojiRegExp = new RegExp(/\p{RI}\p{RI}|\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?(\u{200D}\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?)+|\p{EPres}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?|\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})/gu);
212
+
213
+ const emojiSplitFlag = `__EMOJI_SPLIT_${RANDON_STRING}__`;
214
+ const emojiFlag = `__EMOJI_${RANDON_STRING}__`;
215
+
216
+ content.slice().replace(emojiRegExp, emoji => `${emojiSplitFlag}${emojiFlag}${emoji}${emojiSplitFlag}`).split(emojiSplitFlag).forEach(item => {
217
+ if (item.startsWith(emojiFlag)) return result.push(item.slice(emojiFlag.length)); else return result.push(...item.split(''));
218
+ });
219
+
220
+ // console.log(result.filter(Boolean))
221
+ return result.filter(Boolean);
222
+ })());
206
223
  }
207
224
 
208
225
  if ($$self.$$.dirty & /*unfolded*/ 32) {
@@ -9,7 +9,7 @@ import { TagComputer } from './TagComputer';
9
9
  import { CSS3DRenderPlugin } from '../../CSS3DRenderPlugin';
10
10
  import { DimensionType, PointType } from '../typings';
11
11
  // declare const __APP_VERSION__: string
12
- const VERSION = '0.3.6';
12
+ const VERSION = '0.3.7';
13
13
  const PLUGIN_NAME = `DnalogelPlugin-PanoTagPlugin@${VERSION}`;
14
14
  const TAG_INITIAL_UNFOLDED = true;
15
15
  export const pluginFlag = (name) => `${PLUGIN_NAME}--${name}`;
@@ -16,7 +16,6 @@ declare const _default: {
16
16
  audioUrl?: undefined;
17
17
  linkType?: undefined;
18
18
  };
19
- element: HTMLParagraphElement;
20
19
  style: {
21
20
  point: {
22
21
  style: string;
@@ -45,7 +44,6 @@ declare const _default: {
45
44
  audioUrl?: undefined;
46
45
  linkType?: undefined;
47
46
  };
48
- element?: undefined;
49
47
  style?: undefined;
50
48
  normal?: undefined;
51
49
  } | {
@@ -69,7 +67,6 @@ declare const _default: {
69
67
  audioUrl?: undefined;
70
68
  linkType?: undefined;
71
69
  };
72
- element?: undefined;
73
70
  style?: undefined;
74
71
  normal?: undefined;
75
72
  } | {
@@ -98,7 +95,6 @@ declare const _default: {
98
95
  iconUrl: string;
99
96
  };
100
97
  };
101
- element?: undefined;
102
98
  normal?: undefined;
103
99
  } | {
104
100
  dimensionType: string;
@@ -118,7 +114,6 @@ declare const _default: {
118
114
  audioUrl?: undefined;
119
115
  linkType?: undefined;
120
116
  };
121
- element?: undefined;
122
117
  style?: undefined;
123
118
  } | {
124
119
  dimensionType: string;
@@ -137,7 +132,6 @@ declare const _default: {
137
132
  price?: undefined;
138
133
  linkType?: undefined;
139
134
  };
140
- element?: undefined;
141
135
  style?: undefined;
142
136
  normal?: undefined;
143
137
  } | {
@@ -157,7 +151,6 @@ declare const _default: {
157
151
  price?: undefined;
158
152
  audioUrl?: undefined;
159
153
  };
160
- element?: undefined;
161
154
  style?: undefined;
162
155
  normal?: undefined;
163
156
  }) & {
@@ -12,7 +12,7 @@ const tagList = [
12
12
  // normal: [-1.3472052051879881, -0.22353184120423517, -0.4423657342911711],
13
13
  // position: [2.4858952, 0.12852754341132364, -3.848354251670743],
14
14
  data: {
15
- text: 'wtqyiuegdhkjaxbcznm标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标',
15
+ text: '🙋‍♂️123标题标题🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️标题标🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️🙋‍♂️题标题标题标题标题标',
16
16
  },
17
17
  // element: (content: HTMLElement) => {
18
18
  // console.log(content)
@@ -22,7 +22,7 @@ const tagList = [
22
22
  // a.style.background = 'red'
23
23
  // content.appendChild(a)
24
24
  // },
25
- element: document.createElement('p'),
25
+ // element: document.createElement('p'),
26
26
  style: {
27
27
  point: {
28
28
  style: 'CustomIcon',
@@ -0,0 +1,3 @@
1
+ export declare function random(): string;
2
+ declare const RANDON_STRING: string;
3
+ export { RANDON_STRING };
@@ -0,0 +1,5 @@
1
+ export function random() {
2
+ return Math.random().toString(36).slice(-6);
3
+ }
4
+ const RANDON_STRING = random();
5
+ export { RANDON_STRING };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "repository": "https://github.com/realsee-developer/dnalogel.git",
9
9
  "description": "如视 VR 看房插件合集",
10
10
  "private": false,
11
- "version": "2.1.0-alpha.10",
11
+ "version": "2.1.0-alpha.11",
12
12
  "license": "SEE LICENSE IN TERMS.txt",
13
13
  "scripts": {
14
14
  "build": "yarn run tsb && yarn run build:rollup && yarn run build:components && yarn build:docs",