Troika Text Plugin for ThreePipe
    Preparing search index...

    Class TroikaTextPlugin

    Plugin that adds support for troika text objects. The plugin extends troika Text with uiconfig, g-buffer and serialization support. It also adds a generator to the Object3DGeneratorPlugin to create text objects from the UI.

    Hierarchy

    Index

    Constructors

    Properties

    _dirty: boolean = false
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    dependencies: typeof Object3DGeneratorPlugin[] = ...
    enabled: boolean = true
    isViewerPluginSync: true = ...
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    OldPluginType?: string
    PluginType: "TroikaTextPlugin" = 'TroikaTextPlugin'

    Accessors

    Methods

    • Parameters

      • e: IViewerEvent

      Returns IViewerEvent

    • Parameters

      • Optionalprefix: string

      Returns string

    • Parameters

      • Optionalmaterial: IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[]

      Returns any

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Returns ISerializedConfig | Record<string, never>

    • Parameters

      • state: any

      Returns Promise<void>

    • Parameters

      • textWrapper: IObject3D
      • Optionalmaterial: IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[]

      Returns void

    • Parameters

      • Optionalmeta: SerializationMetaType

      Returns ISerializedConfig

    • Parameters

      • textWrapper: IObject3D
      • Optionalparams: any

      Returns
          | undefined
          | Object3D2<IObject3DEventMap, undefined, undefined>
          | IObject3D<
              IObject3DEventMap,
              undefined
              | IGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
              undefined | IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[],
          >