wikipathways/kaavio-editor

Name: kaavio-editor

Owner: WikiPathways

Description: Editor plugin for kaavio

Created: 2015-06-10 21:23:04.0

Updated: 2016-01-11 23:06:20.0

Pushed: 2016-06-23 23:05:35.0

Homepage: null

Size: 88014

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Editor

It will emit an event from the container element of the pvjs instance (the one you specified). You can listen for `pvjsdatachange` like this:

ment.querySelector('#your-container-element').addEventListener('pvjsdatachange', function (e) {
nsole.log(e.detail);
alse);

The `detailproperty will have a property named ``pvjson```, which is the current diagram data.

It will TEMPORARILY also have a property named `gpml`, which will be the gpml data as a string. This property will be removed as soon as the pvjson to gpml converter is working, at which time the conversion will happen outside of pvjs.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.