🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

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

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
4
100%
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 13 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts