diff --git a/README.md b/README.md new file mode 100644 index 0000000..15ead9e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# zingchart-constants + +Just a repo with all of the method, event, and misc constants for ZingChart. Used for wrappers and integrations. \ No newline at end of file diff --git a/events.js b/events.js new file mode 100644 index 0000000..a087578 --- /dev/null +++ b/events.js @@ -0,0 +1,106 @@ +export default [ + 'about_hide', + 'about_show', + 'animation_end', + 'animation_start', + 'animation_step', + 'beforedestroy', + 'bugreport_hide', + 'bugreport_show', + 'click', + 'complete', + 'data_export', + 'dataexport', + 'dataload', + 'dataparse', + 'dataready', + 'destroy', + 'dimension_change', + 'error', + 'feed_clear', + 'feed_interval_modify', + 'feed_start', + 'feed_stop', + 'gcomplete', + 'gload', + 'gparse', + 'guide_mousemove', + 'guide_mouseout', + 'guide_mouseout', + 'heatmap.mousemove', + 'history_back', + 'history_forward', + 'image_save', + 'label_click', + 'label_mousedown', + 'label_mouseout', + 'label_mouseover', + 'label_mouseup', + 'legend_hide', + 'legend_item_click', + 'legend_item_mousemove', + 'legend_item_mouseout', + 'legend_item_mouseout', + 'legend_item_mouseover', + 'legend_marker_click', + 'legend_marker_click', + 'legend_maximize', + 'legend_minimize', + 'legend_minimize_click', + 'legend_pagination_click', + 'legend_show', + 'legend-drag_mousedown', + 'lens_hide', + 'lens_show', + 'load', + 'maps.zoom', + 'menu_item_click', + 'modify', + 'modulesready', + 'mousewheel', + 'node_add', + 'node_click', + 'node_deselect', + 'node_doubleclick', + 'node_mousedown', + 'node_mouseout', + 'node_mouseover', + 'node_mouseup', + 'node_remove', + 'node_select', + 'node_set', + 'objectsinit', + 'objectsready', + 'overscroll', + 'plot_add', + 'plot_click', + 'plot_deselect', + 'plot_doubleclick', + 'plot_hide', + 'plot_modify', + 'plot_mouseout', + 'plot_mouseover', + 'plot_remove', + 'plot_select', + 'plot_show', + 'postzoom', + 'print', + 'reload', + 'render', + 'resize', + 'setdata', + 'shape_click', + 'shape_mousedown', + 'shape_mouseout', + 'shape_mouseover', + 'shape_mouseup', + 'source_hide', + 'source_show', + 'swipe', + 'touchemove', + 'touchend', + 'touchstart', + 'zingchart.plugins.selection-tool.mouseup', + 'zingchart.plugins.selection-tool.selection', + 'zoom' +]; diff --git a/main.js b/main.js new file mode 100644 index 0000000..5f729c5 --- /dev/null +++ b/main.js @@ -0,0 +1,10 @@ +import EVENT_NAMES from './events'; +import METHOD_NAMES from './methods'; +import {DEFAULT_WIDTH, DEFAULT_HEIGHT} from './misc.js'; + +export default { + EVENT_NAMES, + METHOD_NAMES, + DEFAULT_WIDTH, + DEFAULT_HEIGHT +}; \ No newline at end of file diff --git a/methods.js b/methods.js new file mode 100644 index 0000000..c5867cd --- /dev/null +++ b/methods.js @@ -0,0 +1,110 @@ +export default [ + 'addgraph', + 'addmenuitem', + 'addnode', + 'addnote', + 'addobject', + 'addplot', + 'addrule', + 'addscalevalue', + 'appendseriesdata', + 'appendseriesvalues', + 'clearfeed', + 'clearscroll', + 'clearselection', + 'clicknode', + 'clicknode', + 'closemodal', + 'closemodal', + 'destroy/zcdestroy', + 'disable', + 'downloadCSV', + 'downloadRAW', + 'downloadXLS', + 'exitfullscreen', + 'exportdata', + 'exportimage', + 'fullscreen', + 'get3dview', + 'getbubblesize', + 'getcharttype', + 'getdata', + 'getgraphlength', + 'getimagedata', + 'getinterval', + 'getnodelength', + 'getnodevalue', + 'getobjectinfo', + 'getoriginaljson', + 'getpage', + 'getplotlength', + 'getplotvalues', + 'getrender', + 'getrules', + 'getscaleinfo', + 'getscales', + 'getseriesdata', + 'getseriesdata', + 'getseriesvalues', + 'getversion', + 'getxyinfo', + 'goback', + 'goforward', + 'hideguide', + 'hidemenu', + 'hideplot/plothide', + 'hidetooltip', + 'legendmaximize', + 'legendminimize', + 'legendscroll', + 'load', + 'loadstorage', + 'mapdata', + 'mapdata', + 'modify', + 'modifyplot', + 'openmodal', + 'print', + 'reload', + 'removegraph', + 'removenode', + 'removenote', + 'removeobject', + 'removeplot', + 'removerule', + 'removescalevalue', + 'repaintobjects', + 'resize', + 'saveasimage', + 'set3dview', + 'setcharttype', + 'setdata', + 'setguide', + 'setinterval', + 'setmode', + 'setnodevalue', + 'setpage', + 'setscalevalues', + 'setseriesdata', + 'setseriesvalues', + 'showhoverstate', + 'showmenu', + 'showplot/plotshow', + 'showtooltip', + 'startfeed', + 'stopfeed', + 'togglebugreport', + 'toggledimension', + 'togglelegend', + 'toggleplot', + 'unbinddocument', + 'update', + 'updatenote', + 'updateobject', + 'updaterule', + 'viewDataTable', + 'zoomin', + 'zoomout', + 'zoomto', + 'zoomtovalues' +]; diff --git a/misc.js b/misc.js new file mode 100644 index 0000000..3fc6eb8 --- /dev/null +++ b/misc.js @@ -0,0 +1,4 @@ +export default { + DEFAULT_WIDTH: '100%', + DEFAULT_HEIGHT: 480, +}; \ No newline at end of file