@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.
@@ -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: Tag<C, S>['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, EventMap } from '../typings';
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, EventMap> {
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, EventMap, State, ContentTypeConfigKey } from '../typings';
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: Parameters<EventMap['click']>[0]) => void;
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 EventMap extends BasePlugin.EventMap<State> {
28
+ export interface PluginEventMap extends BasePlugin.EventMap<State> {
29
29
  click: (params: TagClickParams) => void;
30
30
  playStateChange: (params: {
31
31
  event: Event;