Giter VIP home page Giter VIP logo

openvectoreditor-1's Introduction

#openVectorEditor ##An open source vector/plasmid/dna editor

###Project Info: https://workflowy.com/s/AMpvp1km0o

Chatroom: Join the chat at https://gitter.im/TeselaGen/openVectorEditor

Issue Tracking: Stories in Ready

Google hangout link

See a [demo] (http://teselagen.github.io/openVectorEditor/)

###Embedding into your own project (Work In Progress)

import ReactDOM from 'react-dom';
import App from 'open-vector-editor'
import request from 'superagent'

//set your custom options here
var options = {
	state: {
		//override default state here. See state.js for the full list of application state
		showFeatures: true,
		//etc..
	},
	services: {
		//add or override any services you want here. These are passed to every action (see below)
		request: request
	},
	actions: {
		//override default actions here. See signals.js for the full list of application signals
		saveSequence: function saveSequence ({input, state, output}, services) {
			services.request.post('/sequence')
				.send(input.sequenceData)
				.then(function (res) {
					output.success(res.body)
				}).catch(function (err) {
					output.error(err)
				})
		}
	},
}

var {Editor, controller} = App(options);
//Editor is the React Component
//controller is the cerebral state controller


//choose the dom node you want to render to
const DOMNodeToRenderTo = document.createElement('div');
document.body.appendChild(DOMNodeToRenderTo);
ReactDOM.render(Editor, DOMNodeToRenderTo);

openvectoreditor-1's People

Contributors

tnrich avatar slafrance avatar salafrance avatar jakecoble avatar nixonpjoshua avatar thirdknife avatar waffle-iron avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.