diff --git a/package.json b/package.json index cf88a11..7c36eed 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "make:dist": "mkdirp dist && browserify src/factory.js -o ./dist/create-plotly-component.js -t [ babelify --presets [ es2015 react ] --plugins add-module-exports ] -t browserify-global-shim --standalone createPlotlyComponent && uglifyjs ./dist/create-plotly-component.js --compress --mangle --output ./dist/create-plotly-component.min.js --source-map filename=dist/create-plotly-component.min.js.map", "clean": "rimraf lib dist react-plotly.js react-plotly.js.map factory.js factory.js.map", "prepublishOnly": "npm run clean && npm run make:lib && npm run make:dist", + "prepare": "npm run clean && npm run make:lib && npm run make:dist", "lint": "prettier --trailing-comma es5 --write \"src/**/*.js\" && eslint src", "test": "npm run lint && npm run deps && jest", "watch-test": "jest --watch", diff --git a/src/factory.js b/src/factory.js index a0e3a2a..c207fcb 100644 --- a/src/factory.js +++ b/src/factory.js @@ -19,6 +19,8 @@ const eventNames = [ 'DoubleClick', 'Framework', 'Hover', + 'LegendClick', + 'LegendDoubleClick', 'Relayout', 'Restyle', 'Redraw',
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: