@realsee/dnalogel 3.42.0-alpha-tag.24 → 3.42.0-alpha-tag.27
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/PanoTagPlugin/controller/Tag/BaseTag.d.ts +6 -2
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -2
- package/dist/PanoTagPlugin/controller/index.d.ts +3 -3
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +2665 -2655
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/Utils/WorkUtil.d.ts +2 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +6 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +20 -12
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/index.js +34 -42
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/Utils/WorkUtil.d.ts +2 -0
- package/libs/shared-utils/Utils/WorkUtil.js +32 -23
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Mode, State as FiveState } from '@realsee/five';
|
|
2
2
|
import type PanoTagPluginController from '..';
|
|
3
|
-
import type { ElementRenderer, StickType, Tag, TagConfig, TagContentType, Tag as TagData, TagEvents, TagGLTFObject, TagId, TagStyle } from '../..';
|
|
3
|
+
import type { ElementRenderer, StickType, Tag, TagClickParams, TagConfig, TagContentType, Tag as TagData, TagEvents, TagGLTFObject, TagId, TagStyle } from '../..';
|
|
4
4
|
import { Subscribe } from '../../../shared-utils/Subscribe';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
|
|
@@ -17,7 +17,10 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
|
|
|
17
17
|
enabled: boolean;
|
|
18
18
|
config: Tag<C, S>['config'];
|
|
19
19
|
data: Tag<C, S>['data'];
|
|
20
|
-
state:
|
|
20
|
+
state: {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
unfolded: boolean;
|
|
23
|
+
};
|
|
21
24
|
temporaryState: {
|
|
22
25
|
visible: boolean;
|
|
23
26
|
};
|
|
@@ -90,6 +93,7 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
|
|
|
90
93
|
getUnfoldedByPanoIndex(panoIndex?: number): any;
|
|
91
94
|
getUnfoldedByCamera(): any;
|
|
92
95
|
can(action: 'show' | 'hide' | 'fold' | 'unfold'): boolean;
|
|
96
|
+
onClick(params: TagClickParams): void;
|
|
93
97
|
abstract computeNormal(): THREE.Vector3 | undefined;
|
|
94
98
|
computeRenderType(): "Mesh" | "Dom" | "BehindDom";
|
|
95
99
|
protected computeVisible(_fiveState?: Partial<FiveState>): {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type PanoTagPluginController from '..';
|
|
2
|
-
import type { ArrayPosition, TagContentType, Tag as TagData } from '../..';
|
|
2
|
+
import type { ArrayPosition, TagClickParams, TagContentType, Tag as TagData } from '../..';
|
|
3
3
|
import { BaseTag } from './BaseTag';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
export declare class PointTag<C extends TagContentType = TagContentType> extends BaseTag<C, '2DPoint' | '3DPoint'> {
|
|
6
6
|
private __Object__;
|
|
7
7
|
private requestIdleCallbackId?;
|
|
8
8
|
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
9
|
+
onClick(params: Pick<TagClickParams, 'target'>): void;
|
|
9
10
|
updateVisible(): void;
|
|
10
11
|
applyVisible(): void;
|
|
11
12
|
unfold(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TagContentType, StickType, TagId, MediaStore, State,
|
|
1
|
+
import type { TagContentType, StickType, TagId, MediaStore, State, PluginEventMap } from '../typings';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import type { Tags } from '../typings';
|
|
4
4
|
import { Five } from '@realsee/five';
|
|
@@ -7,7 +7,7 @@ import type { BaseTag } from './Tag/BaseTag';
|
|
|
7
7
|
import * as BasePlugin from '../../base/BasePlugin';
|
|
8
8
|
import type { PointTag } from './Tag/PointTag';
|
|
9
9
|
type RenderQueueType = 'TagContainerSvelte';
|
|
10
|
-
export declare abstract class TagUtil extends BasePlugin.Controller<State,
|
|
10
|
+
export declare abstract class TagUtil extends BasePlugin.Controller<State, PluginEventMap> {
|
|
11
11
|
tags: BaseTag[];
|
|
12
12
|
get container(): Element;
|
|
13
13
|
set container(container: Element);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Tag, TagId, Tags,
|
|
2
|
-
import type { TagConfigByKey, TagContentType } from '..';
|
|
1
|
+
import type { Tag, TagId, Tags, State, ContentTypeConfigKey } from '../typings';
|
|
2
|
+
import type { TagClickParams, TagConfigByKey, TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
4
|
import { type Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
@@ -129,7 +129,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
129
129
|
private addResizeObserver;
|
|
130
130
|
private handleFiveModeChange;
|
|
131
131
|
private handleFiveWantsMoveToPano;
|
|
132
|
-
clickhandler: (params:
|
|
132
|
+
clickhandler: (params: TagClickParams) => void;
|
|
133
133
|
private handleFiveCameraUpdate;
|
|
134
134
|
private handleFiveCameraFovUpdate;
|
|
135
135
|
private handleFivePanoArrived;
|
|
@@ -25,7 +25,7 @@ export type TagClickParams = {
|
|
|
25
25
|
target: 'TagModel';
|
|
26
26
|
tag: BaseTag<'Model', 'Model'> | BaseTag<'MediaModel', 'Model'>;
|
|
27
27
|
});
|
|
28
|
-
export interface
|
|
28
|
+
export interface PluginEventMap extends BasePlugin.EventMap<State> {
|
|
29
29
|
click: (params: TagClickParams) => void;
|
|
30
30
|
playStateChange: (params: {
|
|
31
31
|
event: Event;
|