threepipe
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

SamplePlugin.ts 510B

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 {
  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. }