@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.
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/CruisePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/index.js +26 -5
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/index.es.js +26 -5
- package/dist/index.js +26 -5
- package/dist/index.umd.js +26 -5
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +25 -25
- package/docs/enums/CameraMovementEffect.html +1 -1
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.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/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +1 -1
- package/docs/interfaces/FloorplanEntrance.html +6 -6
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
- package/docs/interfaces/FloorplanFloorData.html +1 -1
- package/docs/interfaces/FloorplanImagePosition.html +1 -1
- package/docs/interfaces/FloorplanObserver.html +1 -1
- package/docs/interfaces/FloorplanOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanPosition.html +1 -1
- package/docs/interfaces/FloorplanRoomItem.html +5 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +1 -1
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +6 -6
- package/docs/interfaces/FloorplanServerFloorData.html +1 -1
- package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
- package/docs/interfaces/FloorplanServerObserver.html +1 -1
- package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanServerPosition.html +1 -1
- package/docs/interfaces/FloorplanServerRoomItem.html +6 -6
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- 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/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- 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 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.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/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/Components/Common/Text.js +19 -2
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +0 -7
- package/libs/PanoTagPlugin/mocks/mock1.js +2 -2
- package/libs/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/libs/PanoTagPlugin/utils/constants.js +5 -0
- 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
|
-
// (
|
|
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
|
-
|
|
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.
|
|
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: '
|
|
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',
|
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.
|
|
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",
|