@realsee/dnalogel 3.7.0 → 3.8.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.
@@ -23,9 +23,12 @@ export declare abstract class TagRender extends TagComputer {
23
23
  * 如果是 `TagContentType` 中的类型,将会覆盖掉插件内部默认的渲染器,
24
24
  * 如果是其他任意 str
25
25
  * ing 如:'Foo',则可以将类似 `{id: 1, contentType: 'Foo', position: [0,0,0]}` 的 tag 交给插件渲染
26
+ * @param config.usePoint 是否需要标签点, 默认为 false
26
27
  * @note 优先级低于 tag.element
27
28
  */
28
- registerRenderer(contentType: string, renderer: ElementRenderer): void;
29
+ registerRenderer(contentType: string, renderer: ElementRenderer, config?: {
30
+ usePoint?: boolean;
31
+ }): void;
29
32
  bindRenderer(contentType: string, builtInRenderer: TagContentType): void;
30
33
  clearTags(): void;
31
34
  /**
@@ -51,6 +51,7 @@ export type TagGLTFObject = GLTFObject & {
51
51
  export type ElementRenderer = (container: HTMLElement, tag: TagInstance<any, any>) => () => void;
52
52
  export type TagRendererMap = Map<string, {
53
53
  renderer: ElementRenderer;
54
+ usePoint: boolean;
54
55
  }>;
55
56
  export type TagContentTypeMapping = Map<string, string>;
56
57
  export interface TagObjectGroup extends Group {