Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsyg-fulleditor-menus

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsyg-fulleditor-menus

Menus plugin for JSYG.FullEditor

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

JSYG.FullEditor.Menus

Menus plugin for JSYG.FullEditor

Demo

http://yannickbochatay.github.io/JSYG.FullEditor.Menus

Installation
bower install jsyg-fulleditor-menus
Example

HTML

<div id="menuBar"></div>
<svg width="500" height="500" id="editor"></svg>

Javascript

var svgEditor = new JSYG.FullEditor("#editor");

svgEditor.enable();

var fileMenu = svgEditor.createMenu("openFile","print","downloadSVG","downloadPNG").set({title:"File"});

var toolsMenu = svgEditor.createMenu("selectionTool","insertText","insertImageFile","drawRect","drawPolyline","drawPath","drawFreeHandPath").set({"title":"Tools"});

toolsMenu.addItem({
    text:"personal item",
    icon:"ledicon user",
    action : function() {
        //do something great
    }
});
        
new JSYG("#menuBar").menuBar([fileMenu,toolsMenu]);
Full example script

https://github.com/YannickBochatay/JSYG.FullEditor.Menus/blob/master/script.js

Keywords

FAQs

Package last updated on 28 Nov 2016

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