threepipe
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SamplePlugin.ts 518B

12345678910111213141516171819
  1. import {AViewerPluginSync, createStyles, ThreeViewer,} from 'threepipe'
  2. import {TweakpaneUiPlugin} from '@threepipe/plugin-tweakpane'
  3. import styles from './SamplePlugin.css'
  4. console.log(TweakpaneUiPlugin)
  5. export class SamplePlugin extends AViewerPluginSync<string> {
  6. public static readonly PluginType: string = 'SamplePlugin'
  7. enabled = true
  8. dependencies = []
  9. constructor() {
  10. super()
  11. }
  12. onAdded(viewer: ThreeViewer) {
  13. super.onAdded(viewer)
  14. createStyles(styles)
  15. }
  16. }