threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 2 година
пре 2 година
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. }