New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-jsplumb

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-jsplumb

Ëmber Wrapper for JS Plumb

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-7.14%
Maintainers
1
Weekly downloads
 
Created
Source

Ember Observer Score Build Status Coverage Status NPM Version NPM Downloads Dependency Status DevDependency Status Greenkeeper

ember-cli-jsplumb

Simple Wrapper around JS PLUMB.

This provides a component that can be used to initialize jsplumb and create workflow diagrams

DEMO

Installation

ember install ember-cli-jsplumb

Usage

import Route from '@ember/routing/route';

import { computed } from '@ember/object';

export default Route.extend({
  definitionString: computed('controller.definition.{nodes,edges}', function(){
    const definition = this.get('controller').get('definition');

    return JSON.stringify(definition, null, 4);
  }),

  setupController() {

    this.get('controller').set('definition', transform(definition));

    this.get('controller').set('definitionString', this.get('definitionString'));

    setInterval(() => {
      this.notifyPropertyChange('definitionString');
      this.get('controller').set('definitionString', this.get('definitionString'));
    }, 500);
  },

  actions: {
    onEditNode(node) {
      window.alert(`Editing Node: ${node.id}`);
    },
    onRemoveNode(node) {
      window.alert(`Removing Node: ${node.id}`);
    },
    onResizxeNode(node) {
      // window.alert(`Resizing Node: ${node.id}`);
    }
  }
});
<h2 id="title">Ember CLI JS Plumb</h2>

{{ember-jsplumb
  definition=definition
  onEditNode=(action (route-action "onEditNode"))
  onRemoveNode=(action (route-action "onRemoveNode"))
  onResizeNode=(action (route-action "onResizeNode"))
}}

{{ember-ace
  lines=35
  readOnly=true
  mode="ace/mode/json"
  theme="ace/theme/chrome"
  value=definitionString
}}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 07 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc