New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

tweakpane-object-editor-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tweakpane-object-editor-plugin

Object editor for Tweakpane

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
-70%
Maintainers
1
Weekly downloads
 
Created
Source

Tweakpane Object Editor Plugin

Object editor plugin for Tweakpane.

Installation

$ npm install tweakpane-object-editor-plugin

Usage

import {Pane} from 'tweakpane';
import * as ObjectEditorPlugin from 'tweakpane-object-editor-plugin';

const parent = {
  a: 'bruh',
  b: 1,
  sayHello: function() {
    console.log('Hello');
  },
  isAuthenticated: false,
  params: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
  child: {
    parent: null
  }
}

setTimeout(() => {
  parent.child.parent = parent;
});

const params = { parent };

const pane = new Pane();
// Register plugin
pane.registerPlugin(ObjectEditorPlugin);

// TODO: Update parameters for your plugin
pane.addBinding(params, 'parent', {
  view: 'object-editor',
}).on('change', (ev) => {
  console.log(ev.value);
});

FAQs

Package last updated on 12 Nov 2024

Related posts