From 6b439331eadcff005e70802f224e3267e4975681 Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 19 Jan 2021 18:57:18 -0500 Subject: [PATCH 1/4] remove unused role from attributes --- src/components/annotations/attributes.js | 42 ---------- src/components/annotations3d/attributes.js | 5 -- src/components/calendars/index.js | 1 - src/components/colorbar/attributes.js | 17 ---- src/components/colorscale/attributes.js | 10 --- .../colorscale/layout_attributes.js | 3 - src/components/drawing/attributes.js | 1 - src/components/errorbars/attributes.js | 13 ---- src/components/fx/layout_attributes.js | 10 --- src/components/grid/index.js | 11 --- src/components/images/attributes.js | 13 ---- src/components/legend/attributes.js | 18 ----- src/components/rangeselector/attributes.js | 14 ---- src/components/rangeslider/attributes.js | 7 -- .../rangeslider/oppaxis_attributes.js | 2 - src/components/shapes/attributes.js | 17 ---- .../shapes/draw_newshape/attributes.js | 10 --- src/components/sliders/attributes.js | 29 ------- src/components/updatemenus/attributes.js | 18 ----- src/plot_api/plot_schema.js | 1 - src/plot_api/plot_template.js | 2 - src/plots/animation_attributes.js | 8 -- src/plots/attributes.js | 13 ---- src/plots/cartesian/attributes.js | 2 - src/plots/cartesian/layout_attributes.js | 78 ------------------- src/plots/domain.js | 3 - src/plots/font_attributes.js | 3 - src/plots/frame_attributes.js | 6 -- src/plots/geo/index.js | 1 - src/plots/geo/layout_attributes.js | 41 ---------- src/plots/gl3d/layout/attributes.js | 1 - src/plots/gl3d/layout/axis_attributes.js | 7 -- src/plots/gl3d/layout/layout_attributes.js | 13 ---- src/plots/layout_attributes.js | 38 --------- src/plots/mapbox/index.js | 1 - src/plots/mapbox/layout_attributes.js | 28 ------- src/plots/pad_attributes.js | 4 - src/plots/polar/index.js | 1 - src/plots/polar/layout_attributes.js | 15 ---- src/plots/template_attributes.js | 2 - src/plots/ternary/index.js | 1 - src/plots/ternary/layout_attributes.js | 5 -- src/traces/bar/attributes.js | 12 --- src/traces/bar/layout_attributes.js | 4 - src/traces/barpolar/layout_attributes.js | 2 - src/traces/box/attributes.js | 29 ------- src/traces/box/layout_attributes.js | 3 - src/traces/carpet/attributes.js | 7 -- src/traces/carpet/axis_attributes.js | 49 ------------ src/traces/choropleth/attributes.js | 1 - src/traces/choroplethmapbox/attributes.js | 2 - src/traces/cone/attributes.js | 8 -- src/traces/contour/attributes.js | 14 ---- src/traces/contourcarpet/attributes.js | 2 - src/traces/densitymapbox/attributes.js | 2 - src/traces/funnel/attributes.js | 3 - src/traces/funnel/layout_attributes.js | 3 - src/traces/funnelarea/attributes.js | 2 - src/traces/funnelarea/layout_attributes.js | 2 - src/traces/heatmap/attributes.js | 9 --- src/traces/heatmapgl/attributes.js | 1 - src/traces/histogram/attributes.js | 10 --- src/traces/histogram/bin_attributes.js | 3 - src/traces/image/attributes.js | 10 --- src/traces/indicator/attributes.js | 26 ------- src/traces/isosurface/attributes.js | 19 ----- src/traces/mesh3d/attributes.js | 11 --- src/traces/ohlc/attributes.js | 4 - src/traces/parcats/attributes.js | 13 ---- src/traces/parcoords/attributes.js | 8 -- src/traces/pie/attributes.js | 19 ----- src/traces/pie/layout_attributes.js | 3 - src/traces/sankey/attributes.js | 26 ------- src/traces/scatter/attributes.js | 43 ---------- src/traces/scatter3d/attributes.js | 7 -- src/traces/scattercarpet/attributes.js | 1 - src/traces/scattergeo/attributes.js | 4 - src/traces/scattergl/attributes.js | 3 - src/traces/scattermapbox/attributes.js | 4 - src/traces/scatterpolar/attributes.js | 5 -- src/traces/scatterternary/attributes.js | 1 - src/traces/splom/attributes.js | 9 --- src/traces/streamtube/attributes.js | 7 -- src/traces/sunburst/attributes.js | 8 -- src/traces/sunburst/layout_attributes.js | 2 - src/traces/surface/attributes.js | 25 ------ src/traces/table/attributes.js | 18 ----- src/traces/treemap/attributes.js | 14 ---- src/traces/treemap/layout_attributes.js | 2 - src/traces/violin/attributes.js | 17 ---- src/traces/volume/attributes.js | 2 - src/traces/waterfall/attributes.js | 5 -- src/traces/waterfall/layout_attributes.js | 3 - src/transforms/aggregate.js | 6 -- src/transforms/filter.js | 5 -- src/transforms/groupby.js | 5 -- src/transforms/sort.js | 3 - 97 files changed, 1021 deletions(-) diff --git a/src/components/annotations/attributes.js b/src/components/annotations/attributes.js index a5770c1714a..a679fa7e2a2 100644 --- a/src/components/annotations/attributes.js +++ b/src/components/annotations/attributes.js @@ -44,7 +44,6 @@ function arrowCoordinateDescription(axis, lower, upper) { module.exports = templatedArray('annotation', { visible: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc+arraydraw', description: [ @@ -54,7 +53,6 @@ module.exports = templatedArray('annotation', { text: { valType: 'string', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the text associated with this annotation.', @@ -67,7 +65,6 @@ module.exports = templatedArray('annotation', { textangle: { valType: 'angle', dflt: 0, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets the angle at which the `text` is drawn', @@ -83,7 +80,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 1, dflt: null, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets an explicit width for the text box. null (default) lets the', @@ -95,7 +91,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 1, dflt: null, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets an explicit height for the text box. null (default) lets the', @@ -107,7 +102,6 @@ module.exports = templatedArray('annotation', { min: 0, max: 1, dflt: 1, - role: 'style', editType: 'arraydraw', description: 'Sets the opacity of the annotation (text + arrow).' }, @@ -115,7 +109,6 @@ module.exports = templatedArray('annotation', { valType: 'enumerated', values: ['left', 'center', 'right'], dflt: 'center', - role: 'style', editType: 'arraydraw', description: [ 'Sets the horizontal alignment of the `text` within the box.', @@ -128,7 +121,6 @@ module.exports = templatedArray('annotation', { valType: 'enumerated', values: ['top', 'middle', 'bottom'], dflt: 'middle', - role: 'style', editType: 'arraydraw', description: [ 'Sets the vertical alignment of the `text` within the box.', @@ -139,14 +131,12 @@ module.exports = templatedArray('annotation', { bgcolor: { valType: 'color', dflt: 'rgba(0,0,0,0)', - role: 'style', editType: 'arraydraw', description: 'Sets the background color of the annotation.' }, bordercolor: { valType: 'color', dflt: 'rgba(0,0,0,0)', - role: 'style', editType: 'arraydraw', description: [ 'Sets the color of the border enclosing the annotation `text`.' @@ -156,7 +146,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets the padding (in px) between the `text`', @@ -167,7 +156,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets the width (in px) of the border enclosing', @@ -178,7 +166,6 @@ module.exports = templatedArray('annotation', { showarrow: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc+arraydraw', description: [ 'Determines whether or not the annotation is drawn with an arrow.', @@ -188,7 +175,6 @@ module.exports = templatedArray('annotation', { }, arrowcolor: { valType: 'color', - role: 'style', editType: 'arraydraw', description: 'Sets the color of the annotation arrow.' }, @@ -197,7 +183,6 @@ module.exports = templatedArray('annotation', { min: 0, max: ARROWPATHS.length, dflt: 1, - role: 'style', editType: 'arraydraw', description: 'Sets the end annotation arrow head style.' }, @@ -206,7 +191,6 @@ module.exports = templatedArray('annotation', { min: 0, max: ARROWPATHS.length, dflt: 1, - role: 'style', editType: 'arraydraw', description: 'Sets the start annotation arrow head style.' }, @@ -215,7 +199,6 @@ module.exports = templatedArray('annotation', { flags: ['end', 'start'], extras: ['none'], dflt: 'end', - role: 'style', editType: 'arraydraw', description: 'Sets the annotation arrow head position.' }, @@ -223,7 +206,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 0.3, dflt: 1, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets the size of the end annotation arrow head, relative to `arrowwidth`.', @@ -234,7 +216,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 0.3, dflt: 1, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets the size of the start annotation arrow head, relative to `arrowwidth`.', @@ -244,7 +225,6 @@ module.exports = templatedArray('annotation', { arrowwidth: { valType: 'number', min: 0.1, - role: 'style', editType: 'calc+arraydraw', description: 'Sets the width (in px) of annotation arrow line.' }, @@ -252,7 +232,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 0, dflt: 0, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets a distance, in pixels, to move the end arrowhead away from the', @@ -266,7 +245,6 @@ module.exports = templatedArray('annotation', { valType: 'number', min: 0, dflt: 0, - role: 'style', editType: 'calc+arraydraw', description: [ 'Sets a distance, in pixels, to move the start arrowhead away from the', @@ -278,7 +256,6 @@ module.exports = templatedArray('annotation', { }, ax: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ arrowCoordinateDescription('x', 'left', 'right') @@ -286,7 +263,6 @@ module.exports = templatedArray('annotation', { }, ay: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ arrowCoordinateDescription('y', 'top', 'bottom') @@ -299,7 +275,6 @@ module.exports = templatedArray('annotation', { 'pixel', cartesianConstants.idRegex.x.toString() ], - role: 'info', editType: 'calc', description: [ 'Indicates in what coordinates the tail of the', @@ -315,7 +290,6 @@ module.exports = templatedArray('annotation', { 'pixel', cartesianConstants.idRegex.y.toString() ], - role: 'info', editType: 'calc', description: [ 'Indicates in what coordinates the tail of the', @@ -331,7 +305,6 @@ module.exports = templatedArray('annotation', { 'paper', cartesianConstants.idRegex.x.toString() ], - role: 'info', editType: 'calc', description: [ 'Sets the annotation\'s x coordinate axis.', @@ -340,7 +313,6 @@ module.exports = templatedArray('annotation', { }, x: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the annotation\'s x position.', @@ -358,7 +330,6 @@ module.exports = templatedArray('annotation', { valType: 'enumerated', values: ['auto', 'left', 'center', 'right'], dflt: 'auto', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the text box\'s horizontal position anchor', @@ -377,7 +348,6 @@ module.exports = templatedArray('annotation', { xshift: { valType: 'number', dflt: 0, - role: 'style', editType: 'calc+arraydraw', description: [ 'Shifts the position of the whole annotation and arrow to the', @@ -390,7 +360,6 @@ module.exports = templatedArray('annotation', { 'paper', cartesianConstants.idRegex.y.toString() ], - role: 'info', editType: 'calc', description: [ 'Sets the annotation\'s y coordinate axis.', @@ -399,7 +368,6 @@ module.exports = templatedArray('annotation', { }, y: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the annotation\'s y position.', @@ -417,7 +385,6 @@ module.exports = templatedArray('annotation', { valType: 'enumerated', values: ['auto', 'top', 'middle', 'bottom'], dflt: 'auto', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the text box\'s vertical position anchor', @@ -436,7 +403,6 @@ module.exports = templatedArray('annotation', { yshift: { valType: 'number', dflt: 0, - role: 'style', editType: 'calc+arraydraw', description: [ 'Shifts the position of the whole annotation and arrow up', @@ -447,7 +413,6 @@ module.exports = templatedArray('annotation', { valType: 'enumerated', values: [false, 'onoff', 'onout'], dflt: false, - role: 'style', editType: 'arraydraw', description: [ 'Makes this annotation respond to clicks on the plot.', @@ -466,7 +431,6 @@ module.exports = templatedArray('annotation', { }, xclick: { valType: 'any', - role: 'info', editType: 'arraydraw', description: [ 'Toggle this annotation when clicking a data point whose `x` value', @@ -475,7 +439,6 @@ module.exports = templatedArray('annotation', { }, yclick: { valType: 'any', - role: 'info', editType: 'arraydraw', description: [ 'Toggle this annotation when clicking a data point whose `y` value', @@ -484,7 +447,6 @@ module.exports = templatedArray('annotation', { }, hovertext: { valType: 'string', - role: 'info', editType: 'arraydraw', description: [ 'Sets text to appear when hovering over this annotation.', @@ -494,7 +456,6 @@ module.exports = templatedArray('annotation', { hoverlabel: { bgcolor: { valType: 'color', - role: 'style', editType: 'arraydraw', description: [ 'Sets the background color of the hover label.', @@ -504,7 +465,6 @@ module.exports = templatedArray('annotation', { }, bordercolor: { valType: 'color', - role: 'style', editType: 'arraydraw', description: [ 'Sets the border color of the hover label.', @@ -524,7 +484,6 @@ module.exports = templatedArray('annotation', { }, captureevents: { valType: 'boolean', - role: 'info', editType: 'arraydraw', description: [ 'Determines whether the annotation text box captures mouse move', @@ -540,7 +499,6 @@ module.exports = templatedArray('annotation', { _deprecated: { ref: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'Obsolete. Set `xref` and `yref` separately instead.' diff --git a/src/components/annotations3d/attributes.js b/src/components/annotations3d/attributes.js index c9734c90f09..30a9a832846 100644 --- a/src/components/annotations3d/attributes.js +++ b/src/components/annotations3d/attributes.js @@ -17,35 +17,30 @@ module.exports = overrideAll(templatedArray('annotation', { visible: annAttrs.visible, x: { valType: 'any', - role: 'info', description: [ 'Sets the annotation\'s x position.' ].join(' ') }, y: { valType: 'any', - role: 'info', description: [ 'Sets the annotation\'s y position.' ].join(' ') }, z: { valType: 'any', - role: 'info', description: [ 'Sets the annotation\'s z position.' ].join(' ') }, ax: { valType: 'number', - role: 'info', description: [ 'Sets the x component of the arrow tail about the arrow head (in pixels).' ].join(' ') }, ay: { valType: 'number', - role: 'info', description: [ 'Sets the y component of the arrow tail about the arrow head (in pixels).' ].join(' ') diff --git a/src/components/calendars/index.js b/src/components/calendars/index.js index a516ba965b9..5710e618624 100644 --- a/src/components/calendars/index.js +++ b/src/components/calendars/index.js @@ -19,7 +19,6 @@ var ONEDAY = constants.ONEDAY; var attributes = { valType: 'enumerated', values: Object.keys(calendars.calendars), - role: 'info', editType: 'calc', dflt: 'gregorian' }; diff --git a/src/components/colorbar/attributes.js b/src/components/colorbar/attributes.js index e39da7dddf6..ed075ecd961 100644 --- a/src/components/colorbar/attributes.js +++ b/src/components/colorbar/attributes.js @@ -29,7 +29,6 @@ module.exports = overrideAll({ thicknessmode: { valType: 'enumerated', values: ['fraction', 'pixels'], - role: 'style', dflt: 'pixels', description: [ 'Determines whether this color bar\'s thickness', @@ -40,7 +39,6 @@ module.exports = overrideAll({ }, thickness: { valType: 'number', - role: 'style', min: 0, dflt: 30, description: [ @@ -51,7 +49,6 @@ module.exports = overrideAll({ lenmode: { valType: 'enumerated', values: ['fraction', 'pixels'], - role: 'info', dflt: 'fraction', description: [ 'Determines whether this color bar\'s length', @@ -64,7 +61,6 @@ module.exports = overrideAll({ valType: 'number', min: 0, dflt: 1, - role: 'style', description: [ 'Sets the length of the color bar', 'This measure excludes the padding of both ends.', @@ -77,7 +73,6 @@ module.exports = overrideAll({ dflt: 1.02, min: -2, max: 3, - role: 'style', description: [ 'Sets the x position of the color bar (in plot fraction).' ].join(' ') @@ -86,7 +81,6 @@ module.exports = overrideAll({ valType: 'enumerated', values: ['left', 'center', 'right'], dflt: 'left', - role: 'style', description: [ 'Sets this color bar\'s horizontal position anchor.', 'This anchor binds the `x` position to the *left*, *center*', @@ -95,14 +89,12 @@ module.exports = overrideAll({ }, xpad: { valType: 'number', - role: 'style', min: 0, dflt: 10, description: 'Sets the amount of padding (in px) along the x direction.' }, y: { valType: 'number', - role: 'style', dflt: 0.5, min: -2, max: 3, @@ -113,7 +105,6 @@ module.exports = overrideAll({ yanchor: { valType: 'enumerated', values: ['top', 'middle', 'bottom'], - role: 'style', dflt: 'middle', description: [ 'Sets this color bar\'s vertical position anchor', @@ -123,7 +114,6 @@ module.exports = overrideAll({ }, ypad: { valType: 'number', - role: 'style', min: 0, dflt: 10, description: 'Sets the amount of padding (in px) along the y direction.' @@ -136,7 +126,6 @@ module.exports = overrideAll({ bordercolor: axesAttrs.linecolor, borderwidth: { valType: 'number', - role: 'style', min: 0, dflt: 0, description: [ @@ -145,7 +134,6 @@ module.exports = overrideAll({ }, bgcolor: { valType: 'color', - role: 'style', dflt: 'rgba(0,0,0,0)', description: 'Sets the color of padded area.' }, @@ -165,7 +153,6 @@ module.exports = overrideAll({ 'outside bottom', 'inside bottom' ], dflt: 'outside', - role: 'info', description: [ 'Determines where tick labels are drawn.' ].join(' ') @@ -191,7 +178,6 @@ module.exports = overrideAll({ title: { text: { valType: 'string', - role: 'info', description: [ 'Sets the title of the color bar.', 'Note that before the existence of `title.text`, the title\'s', @@ -209,7 +195,6 @@ module.exports = overrideAll({ side: { valType: 'enumerated', values: ['right', 'top', 'bottom'], - role: 'style', dflt: 'top', description: [ 'Determines the location of color bar\'s title', @@ -223,7 +208,6 @@ module.exports = overrideAll({ _deprecated: { title: { valType: 'string', - role: 'info', description: [ 'Deprecated in favor of color bar\'s `title.text`.', 'Note that value of color bar\'s `title` is no longer a simple', @@ -236,7 +220,6 @@ module.exports = overrideAll({ titleside: { valType: 'enumerated', values: ['right', 'top', 'bottom'], - role: 'style', dflt: 'top', description: 'Deprecated in favor of color bar\'s `title.side`.' } diff --git a/src/components/colorscale/attributes.js b/src/components/colorscale/attributes.js index 4db7504ff6d..1760ca0418b 100644 --- a/src/components/colorscale/attributes.js +++ b/src/components/colorscale/attributes.js @@ -106,7 +106,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs.color = { valType: 'color', arrayOk: true, - role: 'style', editType: editTypeOverride || 'style', description: [ 'Sets the', context, 'color.', @@ -124,7 +123,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs[auto] = { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc', impliedEdits: autoImpliedEdits, @@ -139,7 +137,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs[min] = { valType: 'number', - role: 'info', dflt: null, editType: editTypeOverride || 'plot', impliedEdits: minmaxImpliedEdits, @@ -153,7 +150,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs[max] = { valType: 'number', - role: 'info', dflt: null, editType: editTypeOverride || 'plot', impliedEdits: minmaxImpliedEdits, @@ -167,7 +163,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs[mid] = { valType: 'number', - role: 'info', dflt: null, editType: 'calc', impliedEdits: autoImpliedEdits, @@ -182,7 +177,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs.colorscale = { valType: 'colorscale', - role: 'style', editType: 'calc', dflt: colorscaleDflt, impliedEdits: {autocolorscale: false}, @@ -204,7 +198,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs.autocolorscale = { valType: 'boolean', - role: 'style', // gets overrode in 'heatmap' & 'surface' for backwards comp. dflt: opts.autoColorDflt === false ? false : true, editType: 'calc', @@ -221,7 +214,6 @@ module.exports = function colorScaleAttrs(context, opts) { attrs.reversescale = { valType: 'boolean', - role: 'style', dflt: false, editType: 'plot', description: [ @@ -235,7 +227,6 @@ module.exports = function colorScaleAttrs(context, opts) { if(!noScale) { attrs.showscale = { valType: 'boolean', - role: 'info', dflt: showScaleDflt, editType: 'calc', description: [ @@ -250,7 +241,6 @@ module.exports = function colorScaleAttrs(context, opts) { if(!opts.noColorAxis) { attrs.coloraxis = { valType: 'subplotid', - role: 'info', regex: counterRegex('coloraxis'), dflt: null, editType: 'calc', diff --git a/src/components/colorscale/layout_attributes.js b/src/components/colorscale/layout_attributes.js index f421557e999..baf160aa779 100644 --- a/src/components/colorscale/layout_attributes.js +++ b/src/components/colorscale/layout_attributes.js @@ -24,7 +24,6 @@ module.exports = { sequential: { valType: 'colorscale', dflt: scales.Reds, - role: 'style', editType: 'calc', description: [ 'Sets the default sequential colorscale for positive values.', @@ -34,7 +33,6 @@ module.exports = { sequentialminus: { valType: 'colorscale', dflt: scales.Blues, - role: 'style', editType: 'calc', description: [ 'Sets the default sequential colorscale for negative values.', @@ -44,7 +42,6 @@ module.exports = { diverging: { valType: 'colorscale', dflt: scales.RdBu, - role: 'style', editType: 'calc', description: [ 'Sets the default diverging colorscale.', diff --git a/src/components/drawing/attributes.js b/src/components/drawing/attributes.js index b95d6eaa115..4a248749593 100644 --- a/src/components/drawing/attributes.js +++ b/src/components/drawing/attributes.js @@ -17,7 +17,6 @@ exports.dash = { // dash lengths in px, and it will be honored values: ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'], dflt: 'solid', - role: 'style', editType: 'style', description: [ 'Sets the dash style of lines. Set to a dash type string', diff --git a/src/components/errorbars/attributes.js b/src/components/errorbars/attributes.js index 43c3986b251..0864ea7fb63 100644 --- a/src/components/errorbars/attributes.js +++ b/src/components/errorbars/attributes.js @@ -12,7 +12,6 @@ module.exports = { visible: { valType: 'boolean', - role: 'info', editType: 'calc', description: [ 'Determines whether or not this set of error bars is visible.' @@ -21,7 +20,6 @@ module.exports = { type: { valType: 'enumerated', values: ['percent', 'constant', 'sqrt', 'data'], - role: 'info', editType: 'calc', description: [ 'Determines the rule used to generate the error bars.', @@ -40,7 +38,6 @@ module.exports = { }, symmetric: { valType: 'boolean', - role: 'info', editType: 'calc', description: [ 'Determines whether or not the error bars have the same length', @@ -69,7 +66,6 @@ module.exports = { valType: 'number', min: 0, dflt: 10, - role: 'info', editType: 'calc', description: [ 'Sets the value of either the percentage', @@ -82,7 +78,6 @@ module.exports = { valType: 'number', min: 0, dflt: 10, - role: 'info', editType: 'calc', description: [ 'Sets the value of either the percentage', @@ -96,29 +91,24 @@ module.exports = { valType: 'integer', min: 0, dflt: 0, - role: 'info', editType: 'style' }, tracerefminus: { valType: 'integer', min: 0, dflt: 0, - role: 'info', editType: 'style' }, copy_ystyle: { valType: 'boolean', - role: 'style', editType: 'plot' }, copy_zstyle: { valType: 'boolean', - role: 'style', editType: 'style' }, color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the stoke color of the error bars.' }, @@ -126,14 +116,12 @@ module.exports = { valType: 'number', min: 0, dflt: 2, - role: 'style', editType: 'style', description: 'Sets the thickness (in px) of the error bars.' }, width: { valType: 'number', min: 0, - role: 'style', editType: 'plot', description: [ 'Sets the width (in px) of the cross-bar at both ends', @@ -145,7 +133,6 @@ module.exports = { _deprecated: { opacity: { valType: 'number', - role: 'style', editType: 'style', description: [ 'Obsolete.', diff --git a/src/components/fx/layout_attributes.js b/src/components/fx/layout_attributes.js index c006bfdbb6b..3e330ec6748 100644 --- a/src/components/fx/layout_attributes.js +++ b/src/components/fx/layout_attributes.js @@ -20,7 +20,6 @@ fontAttrs.size.dflt = constants.HOVERFONTSIZE; module.exports = { clickmode: { valType: 'flaglist', - role: 'info', flags: ['event', 'select'], dflt: 'event', editType: 'plot', @@ -43,7 +42,6 @@ module.exports = { }, dragmode: { valType: 'enumerated', - role: 'info', values: [ 'zoom', 'pan', @@ -69,7 +67,6 @@ module.exports = { }, hovermode: { valType: 'enumerated', - role: 'info', values: ['x', 'y', 'closest', false, 'x unified', 'y unified'], editType: 'modebar', description: [ @@ -97,7 +94,6 @@ module.exports = { valType: 'integer', min: -1, dflt: 20, - role: 'info', editType: 'none', description: [ 'Sets the default distance (in pixels) to look for data', @@ -112,7 +108,6 @@ module.exports = { valType: 'integer', min: -1, dflt: 20, - role: 'info', editType: 'none', description: [ 'Sets the default distance (in pixels) to look for data to draw', @@ -125,7 +120,6 @@ module.exports = { hoverlabel: { bgcolor: { valType: 'color', - role: 'style', editType: 'none', description: [ 'Sets the background color of all hover labels on graph' @@ -133,7 +127,6 @@ module.exports = { }, bordercolor: { valType: 'color', - role: 'style', editType: 'none', description: [ 'Sets the border color of all hover labels on graph.' @@ -144,7 +137,6 @@ module.exports = { valType: 'enumerated', values: ['left', 'right', 'auto'], dflt: 'auto', - role: 'style', editType: 'none', description: [ 'Sets the horizontal alignment of the text content within hover label box.', @@ -155,7 +147,6 @@ module.exports = { valType: 'integer', min: -1, dflt: 15, - role: 'style', editType: 'none', description: [ 'Sets the default length (in number of characters) of the trace name in', @@ -170,7 +161,6 @@ module.exports = { }, selectdirection: { valType: 'enumerated', - role: 'info', values: ['h', 'v', 'd', 'any'], dflt: 'any', description: [ diff --git a/src/components/grid/index.js b/src/components/grid/index.js index edcc472ed5c..ccbc15f9656 100644 --- a/src/components/grid/index.js +++ b/src/components/grid/index.js @@ -18,7 +18,6 @@ var gridAttrs = { rows: { valType: 'integer', min: 1, - role: 'info', editType: 'plot', description: [ 'The number of rows in the grid. If you provide a 2D `subplots`', @@ -31,7 +30,6 @@ var gridAttrs = { valType: 'enumerated', values: ['top to bottom', 'bottom to top'], dflt: 'top to bottom', - role: 'info', editType: 'plot', description: [ 'Is the first row the top or the bottom? Note that columns', @@ -41,7 +39,6 @@ var gridAttrs = { columns: { valType: 'integer', min: 1, - role: 'info', editType: 'plot', description: [ 'The number of columns in the grid. If you provide a 2D `subplots`', @@ -56,7 +53,6 @@ var gridAttrs = { freeLength: true, dimensions: 2, items: {valType: 'enumerated', values: [counterRegex('xy').toString(), ''], editType: 'plot'}, - role: 'info', editType: 'plot', description: [ 'Used for freeform grids, where some axes may be shared across subplots', @@ -71,7 +67,6 @@ var gridAttrs = { valType: 'info_array', freeLength: true, items: {valType: 'enumerated', values: [cartesianIdRegex.x.toString(), ''], editType: 'plot'}, - role: 'info', editType: 'plot', description: [ 'Used with `yaxes` when the x and y axes are shared across columns and rows.', @@ -85,7 +80,6 @@ var gridAttrs = { valType: 'info_array', freeLength: true, items: {valType: 'enumerated', values: [cartesianIdRegex.y.toString(), ''], editType: 'plot'}, - role: 'info', editType: 'plot', description: [ 'Used with `yaxes` when the x and y axes are shared across columns and rows.', @@ -99,7 +93,6 @@ var gridAttrs = { valType: 'enumerated', values: ['independent', 'coupled'], dflt: 'coupled', - role: 'info', editType: 'plot', description: [ 'If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,', @@ -113,7 +106,6 @@ var gridAttrs = { valType: 'number', min: 0, max: 1, - role: 'info', editType: 'plot', description: [ 'Horizontal space between grid cells, expressed as a fraction', @@ -125,7 +117,6 @@ var gridAttrs = { valType: 'number', min: 0, max: 1, - role: 'info', editType: 'plot', description: [ 'Vertical space between grid cells, expressed as a fraction', @@ -143,7 +134,6 @@ var gridAttrs = { valType: 'enumerated', values: ['bottom', 'bottom plot', 'top plot', 'top'], dflt: 'bottom plot', - role: 'info', editType: 'plot', description: [ 'Sets where the x axis labels and titles go. *bottom* means', @@ -155,7 +145,6 @@ var gridAttrs = { valType: 'enumerated', values: ['left', 'left plot', 'right plot', 'right'], dflt: 'left plot', - role: 'info', editType: 'plot', description: [ 'Sets where the y axis labels and titles go. *left* means', diff --git a/src/components/images/attributes.js b/src/components/images/attributes.js index dbbb77aec87..ad4d9807b17 100644 --- a/src/components/images/attributes.js +++ b/src/components/images/attributes.js @@ -16,7 +16,6 @@ var axisPlaceableObjs = require('../../constants/axis_placeable_objects'); module.exports = templatedArray('image', { visible: { valType: 'boolean', - role: 'info', dflt: true, editType: 'arraydraw', description: [ @@ -26,7 +25,6 @@ module.exports = templatedArray('image', { source: { valType: 'string', - role: 'info', editType: 'arraydraw', description: [ 'Specifies the URL of the image to be used.', @@ -40,7 +38,6 @@ module.exports = templatedArray('image', { valType: 'enumerated', values: ['below', 'above'], dflt: 'above', - role: 'info', editType: 'arraydraw', description: [ 'Specifies whether images are drawn below or above traces.', @@ -51,7 +48,6 @@ module.exports = templatedArray('image', { sizex: { valType: 'number', - role: 'info', dflt: 0, editType: 'arraydraw', description: [ @@ -66,7 +62,6 @@ module.exports = templatedArray('image', { sizey: { valType: 'number', - role: 'info', dflt: 0, editType: 'arraydraw', description: [ @@ -83,7 +78,6 @@ module.exports = templatedArray('image', { valType: 'enumerated', values: ['fill', 'contain', 'stretch'], dflt: 'contain', - role: 'info', editType: 'arraydraw', description: [ 'Specifies which dimension of the image to constrain.' @@ -92,7 +86,6 @@ module.exports = templatedArray('image', { opacity: { valType: 'number', - role: 'info', min: 0, max: 1, dflt: 1, @@ -102,7 +95,6 @@ module.exports = templatedArray('image', { x: { valType: 'any', - role: 'info', dflt: 0, editType: 'arraydraw', description: [ @@ -115,7 +107,6 @@ module.exports = templatedArray('image', { y: { valType: 'any', - role: 'info', dflt: 0, editType: 'arraydraw', description: [ @@ -130,7 +121,6 @@ module.exports = templatedArray('image', { valType: 'enumerated', values: ['left', 'center', 'right'], dflt: 'left', - role: 'info', editType: 'arraydraw', description: 'Sets the anchor for the x position' }, @@ -139,7 +129,6 @@ module.exports = templatedArray('image', { valType: 'enumerated', values: ['top', 'middle', 'bottom'], dflt: 'top', - role: 'info', editType: 'arraydraw', description: 'Sets the anchor for the y position.' }, @@ -151,7 +140,6 @@ module.exports = templatedArray('image', { cartesianConstants.idRegex.x.toString() ], dflt: 'paper', - role: 'info', editType: 'arraydraw', description: [ 'Sets the images\'s x coordinate axis.', @@ -166,7 +154,6 @@ module.exports = templatedArray('image', { cartesianConstants.idRegex.y.toString() ], dflt: 'paper', - role: 'info', editType: 'arraydraw', description: [ 'Sets the images\'s y coordinate axis.', diff --git a/src/components/legend/attributes.js b/src/components/legend/attributes.js index 043163c3fbc..caf804c8396 100644 --- a/src/components/legend/attributes.js +++ b/src/components/legend/attributes.js @@ -15,7 +15,6 @@ var colorAttrs = require('../color/attributes'); module.exports = { bgcolor: { valType: 'color', - role: 'style', editType: 'legend', description: [ 'Sets the legend background color.', @@ -25,7 +24,6 @@ module.exports = { bordercolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'legend', description: 'Sets the color of the border enclosing the legend.' }, @@ -33,7 +31,6 @@ module.exports = { valType: 'number', min: 0, dflt: 0, - role: 'style', editType: 'legend', description: 'Sets the width (in px) of the border enclosing the legend.' }, @@ -45,7 +42,6 @@ module.exports = { valType: 'enumerated', values: ['v', 'h'], dflt: 'v', - role: 'info', editType: 'legend', description: 'Sets the orientation of the legend.' }, @@ -53,7 +49,6 @@ module.exports = { valType: 'flaglist', flags: ['reversed', 'grouped'], extras: ['normal'], - role: 'style', editType: 'legend', description: [ 'Determines the order at which the legend items are displayed.', @@ -75,7 +70,6 @@ module.exports = { valType: 'number', min: 0, dflt: 10, - role: 'style', editType: 'legend', description: [ 'Sets the amount of vertical space (in px) between legend groups.' @@ -85,7 +79,6 @@ module.exports = { valType: 'enumerated', values: ['trace', 'constant'], dflt: 'trace', - role: 'style', editType: 'legend', description: [ 'Determines if the legend items symbols scale with their corresponding *trace* attributes', @@ -96,7 +89,6 @@ module.exports = { valType: 'number', min: 30, dflt: 30, - role: 'style', editType: 'legend', description: 'Sets the width (in px) of the legend item symbols (the part other than the title.text).', }, @@ -105,7 +97,6 @@ module.exports = { valType: 'enumerated', values: ['toggle', 'toggleothers', false], dflt: 'toggle', - role: 'info', editType: 'legend', description: [ 'Determines the behavior on legend item click.', @@ -118,7 +109,6 @@ module.exports = { valType: 'enumerated', values: ['toggle', 'toggleothers', false], dflt: 'toggleothers', - role: 'info', editType: 'legend', description: [ 'Determines the behavior on legend item double-click.', @@ -132,7 +122,6 @@ module.exports = { valType: 'number', min: -2, max: 3, - role: 'style', editType: 'legend', description: [ 'Sets the x position (in normalized coordinates) of the legend.', @@ -144,7 +133,6 @@ module.exports = { valType: 'enumerated', values: ['auto', 'left', 'center', 'right'], dflt: 'left', - role: 'info', editType: 'legend', description: [ 'Sets the legend\'s horizontal position anchor.', @@ -159,7 +147,6 @@ module.exports = { valType: 'number', min: -2, max: 3, - role: 'style', editType: 'legend', description: [ 'Sets the y position (in normalized coordinates) of the legend.', @@ -171,7 +158,6 @@ module.exports = { yanchor: { valType: 'enumerated', values: ['auto', 'top', 'middle', 'bottom'], - role: 'info', editType: 'legend', description: [ 'Sets the legend\'s vertical position anchor', @@ -184,7 +170,6 @@ module.exports = { }, uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of legend-driven changes in trace and pie label', @@ -195,7 +180,6 @@ module.exports = { valType: 'enumerated', values: ['top', 'middle', 'bottom'], dflt: 'middle', - role: 'style', editType: 'legend', description: [ 'Sets the vertical alignment of the symbols with respect to their associated text.', @@ -205,7 +189,6 @@ module.exports = { text: { valType: 'string', dflt: '', - role: 'info', editType: 'legend', description: [ 'Sets the title of the legend.' @@ -220,7 +203,6 @@ module.exports = { side: { valType: 'enumerated', values: ['top', 'left', 'top left'], - role: 'style', editType: 'legend', description: [ 'Determines the location of legend\'s title', diff --git a/src/components/rangeselector/attributes.js b/src/components/rangeselector/attributes.js index 4dc28d10679..2901fe0b23c 100644 --- a/src/components/rangeselector/attributes.js +++ b/src/components/rangeselector/attributes.js @@ -15,14 +15,12 @@ var templatedArray = require('../../plot_api/plot_template').templatedArray; var buttonAttrs = templatedArray('button', { visible: { valType: 'boolean', - role: 'info', dflt: true, editType: 'plot', description: 'Determines whether or not this button is visible.' }, step: { valType: 'enumerated', - role: 'info', values: ['month', 'year', 'day', 'hour', 'minute', 'second', 'all'], dflt: 'month', editType: 'plot', @@ -32,7 +30,6 @@ var buttonAttrs = templatedArray('button', { }, stepmode: { valType: 'enumerated', - role: 'info', values: ['backward', 'todate'], dflt: 'backward', editType: 'plot', @@ -52,7 +49,6 @@ var buttonAttrs = templatedArray('button', { }, count: { valType: 'number', - role: 'info', min: 0, dflt: 1, editType: 'plot', @@ -63,7 +59,6 @@ var buttonAttrs = templatedArray('button', { }, label: { valType: 'string', - role: 'info', editType: 'plot', description: 'Sets the text label to appear on the button.' }, @@ -77,7 +72,6 @@ var buttonAttrs = templatedArray('button', { module.exports = { visible: { valType: 'boolean', - role: 'info', editType: 'plot', description: [ 'Determines whether or not this range selector is visible.', @@ -92,7 +86,6 @@ module.exports = { valType: 'number', min: -2, max: 3, - role: 'style', editType: 'plot', description: 'Sets the x position (in normalized coordinates) of the range selector.' }, @@ -100,7 +93,6 @@ module.exports = { valType: 'enumerated', values: ['auto', 'left', 'center', 'right'], dflt: 'left', - role: 'info', editType: 'plot', description: [ 'Sets the range selector\'s horizontal position anchor.', @@ -112,7 +104,6 @@ module.exports = { valType: 'number', min: -2, max: 3, - role: 'style', editType: 'plot', description: 'Sets the y position (in normalized coordinates) of the range selector.' }, @@ -120,7 +111,6 @@ module.exports = { valType: 'enumerated', values: ['auto', 'top', 'middle', 'bottom'], dflt: 'bottom', - role: 'info', editType: 'plot', description: [ 'Sets the range selector\'s vertical position anchor', @@ -137,20 +127,17 @@ module.exports = { bgcolor: { valType: 'color', dflt: colorAttrs.lightLine, - role: 'style', editType: 'plot', description: 'Sets the background color of the range selector buttons.' }, activecolor: { valType: 'color', - role: 'style', editType: 'plot', description: 'Sets the background color of the active range selector button.' }, bordercolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'plot', description: 'Sets the color of the border enclosing the range selector.' }, @@ -158,7 +145,6 @@ module.exports = { valType: 'number', min: 0, dflt: 0, - role: 'style', editType: 'plot', description: 'Sets the width (in px) of the border enclosing the range selector.' }, diff --git a/src/components/rangeslider/attributes.js b/src/components/rangeslider/attributes.js index b9b9c1e3109..40fae6529c9 100644 --- a/src/components/rangeslider/attributes.js +++ b/src/components/rangeslider/attributes.js @@ -14,14 +14,12 @@ module.exports = { bgcolor: { valType: 'color', dflt: colorAttributes.background, - role: 'style', editType: 'plot', description: 'Sets the background color of the range slider.' }, bordercolor: { valType: 'color', dflt: colorAttributes.defaultLine, - role: 'style', editType: 'plot', description: 'Sets the border color of the range slider.' }, @@ -29,14 +27,12 @@ module.exports = { valType: 'integer', dflt: 0, min: 0, - role: 'style', editType: 'plot', description: 'Sets the border width of the range slider.' }, autorange: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc', impliedEdits: {'range[0]': undefined, 'range[1]': undefined}, description: [ @@ -47,7 +43,6 @@ module.exports = { }, range: { valType: 'info_array', - role: 'info', items: [ {valType: 'any', editType: 'calc', impliedEdits: {'^autorange': false}}, {valType: 'any', editType: 'calc', impliedEdits: {'^autorange': false}} @@ -72,7 +67,6 @@ module.exports = { dflt: 0.15, min: 0, max: 1, - role: 'style', editType: 'plot', description: [ 'The height of the range slider as a fraction of the', @@ -82,7 +76,6 @@ module.exports = { visible: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: [ 'Determines whether or not the range slider will be visible.', diff --git a/src/components/rangeslider/oppaxis_attributes.js b/src/components/rangeslider/oppaxis_attributes.js index cac659967f1..02374527b5e 100644 --- a/src/components/rangeslider/oppaxis_attributes.js +++ b/src/components/rangeslider/oppaxis_attributes.js @@ -18,7 +18,6 @@ module.exports = { valType: 'enumerated', values: ['auto', 'fixed', 'match'], dflt: 'match', - role: 'style', editType: 'calc', description: [ 'Determines whether or not the range of this axis in', @@ -31,7 +30,6 @@ module.exports = { }, range: { valType: 'info_array', - role: 'style', items: [ {valType: 'any', editType: 'plot'}, {valType: 'any', editType: 'plot'} diff --git a/src/components/shapes/attributes.js b/src/components/shapes/attributes.js index dedbe5ab6ea..2aad75316c5 100644 --- a/src/components/shapes/attributes.js +++ b/src/components/shapes/attributes.js @@ -18,7 +18,6 @@ var axisPlaceableObjs = require('../../constants/axis_placeable_objects'); module.exports = templatedArray('shape', { visible: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc+arraydraw', description: [ @@ -29,7 +28,6 @@ module.exports = templatedArray('shape', { type: { valType: 'enumerated', values: ['circle', 'rect', 'path', 'line'], - role: 'info', editType: 'calc+arraydraw', description: [ 'Specifies the shape type to be drawn.', @@ -56,7 +54,6 @@ module.exports = templatedArray('shape', { valType: 'enumerated', values: ['below', 'above'], dflt: 'above', - role: 'info', editType: 'arraydraw', description: 'Specifies whether shapes are drawn below or above traces.' }, @@ -75,7 +72,6 @@ module.exports = templatedArray('shape', { valType: 'enumerated', values: ['scaled', 'pixel'], dflt: 'scaled', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the shapes\'s sizing mode along the x axis.', @@ -91,7 +87,6 @@ module.exports = templatedArray('shape', { }, xanchor: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Only relevant in conjunction with `xsizemode` set to *pixel*.', @@ -103,7 +98,6 @@ module.exports = templatedArray('shape', { }, x0: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the shape\'s starting x position.', @@ -112,7 +106,6 @@ module.exports = templatedArray('shape', { }, x1: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the shape\'s end x position.', @@ -130,7 +123,6 @@ module.exports = templatedArray('shape', { valType: 'enumerated', values: ['scaled', 'pixel'], dflt: 'scaled', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the shapes\'s sizing mode along the y axis.', @@ -146,7 +138,6 @@ module.exports = templatedArray('shape', { }, yanchor: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Only relevant in conjunction with `ysizemode` set to *pixel*.', @@ -158,7 +149,6 @@ module.exports = templatedArray('shape', { }, y0: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the shape\'s starting y position.', @@ -167,7 +157,6 @@ module.exports = templatedArray('shape', { }, y1: { valType: 'any', - role: 'info', editType: 'calc+arraydraw', description: [ 'Sets the shape\'s end y position.', @@ -177,7 +166,6 @@ module.exports = templatedArray('shape', { path: { valType: 'string', - role: 'info', editType: 'calc+arraydraw', description: [ 'For `type` *path* - a valid SVG path with the pixel values', @@ -211,7 +199,6 @@ module.exports = templatedArray('shape', { min: 0, max: 1, dflt: 1, - role: 'info', editType: 'arraydraw', description: 'Sets the opacity of the shape.' }, @@ -219,13 +206,11 @@ module.exports = templatedArray('shape', { color: extendFlat({}, scatterLineAttrs.color, {editType: 'arraydraw'}), width: extendFlat({}, scatterLineAttrs.width, {editType: 'calc+arraydraw'}), dash: extendFlat({}, dash, {editType: 'arraydraw'}), - role: 'info', editType: 'calc+arraydraw' }, fillcolor: { valType: 'color', dflt: 'rgba(0,0,0,0)', - role: 'info', editType: 'arraydraw', description: [ 'Sets the color filling the shape\'s interior. Only applies to closed shapes.' @@ -235,7 +220,6 @@ module.exports = templatedArray('shape', { valType: 'enumerated', values: ['evenodd', 'nonzero'], dflt: 'evenodd', - role: 'info', editType: 'arraydraw', description: [ 'Determines which regions of complex paths constitute the interior.', @@ -244,7 +228,6 @@ module.exports = templatedArray('shape', { }, editable: { valType: 'boolean', - role: 'info', dflt: false, editType: 'calc+arraydraw', description: [ diff --git a/src/components/shapes/draw_newshape/attributes.js b/src/components/shapes/draw_newshape/attributes.js index af30b734e1e..f9752c61fde 100644 --- a/src/components/shapes/draw_newshape/attributes.js +++ b/src/components/shapes/draw_newshape/attributes.js @@ -17,7 +17,6 @@ module.exports = { color: { valType: 'color', editType: 'none', - role: 'info', description: [ 'Sets the line color.', 'By default uses either dark grey or white', @@ -28,7 +27,6 @@ module.exports = { valType: 'number', min: 0, dflt: 4, - role: 'info', editType: 'none', description: 'Sets the line width (in px).' }, @@ -36,13 +34,11 @@ module.exports = { dflt: 'solid', editType: 'none' }), - role: 'info', editType: 'none' }, fillcolor: { valType: 'color', dflt: 'rgba(0,0,0,0)', - role: 'info', editType: 'none', description: [ 'Sets the color filling new shapes\' interior.', @@ -55,7 +51,6 @@ module.exports = { valType: 'enumerated', values: ['evenodd', 'nonzero'], dflt: 'evenodd', - role: 'info', editType: 'none', description: [ 'Determines the path\'s interior.', @@ -67,7 +62,6 @@ module.exports = { min: 0, max: 1, dflt: 1, - role: 'info', editType: 'none', description: 'Sets the opacity of new shapes.' }, @@ -75,13 +69,11 @@ module.exports = { valType: 'enumerated', values: ['below', 'above'], dflt: 'above', - role: 'info', editType: 'none', description: 'Specifies whether new shapes are drawn below or above traces.' }, drawdirection: { valType: 'enumerated', - role: 'info', values: ['ortho', 'horizontal', 'vertical', 'diagonal'], dflt: 'diagonal', editType: 'none', @@ -102,7 +94,6 @@ module.exports = { fillcolor: { valType: 'color', dflt: 'rgb(255,0,255)', - role: 'style', editType: 'none', description: 'Sets the color filling the active shape\' interior.' }, @@ -111,7 +102,6 @@ module.exports = { min: 0, max: 1, dflt: 0.5, - role: 'info', editType: 'none', description: 'Sets the opacity of the active shape.' }, diff --git a/src/components/sliders/attributes.js b/src/components/sliders/attributes.js index 709b6a53fc1..aab345e1b9f 100644 --- a/src/components/sliders/attributes.js +++ b/src/components/sliders/attributes.js @@ -19,7 +19,6 @@ var constants = require('./constants'); var stepsAttrs = templatedArray('step', { visible: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Determines whether or not this step is included in the slider.' @@ -29,7 +28,6 @@ var stepsAttrs = templatedArray('step', { valType: 'enumerated', values: ['restyle', 'relayout', 'animate', 'update', 'skip'], dflt: 'restyle', - role: 'info', description: [ 'Sets the Plotly method to be called when the slider value is changed.', 'If the `skip` method is used, the API slider will function as normal', @@ -40,7 +38,6 @@ var stepsAttrs = templatedArray('step', { }, args: { valType: 'info_array', - role: 'info', freeLength: true, items: [ { valType: 'any' }, @@ -54,12 +51,10 @@ var stepsAttrs = templatedArray('step', { }, label: { valType: 'string', - role: 'info', description: 'Sets the text label to appear on the slider' }, value: { valType: 'string', - role: 'info', description: [ 'Sets the value of the slider step, used to refer to the step programatically.', 'Defaults to the slider label if not provided.' @@ -67,7 +62,6 @@ var stepsAttrs = templatedArray('step', { }, execute: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'When true, the API method is executed. When false, all other behaviors are the same', @@ -82,7 +76,6 @@ var stepsAttrs = templatedArray('step', { module.exports = overrideAll(templatedArray('slider', { visible: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Determines whether or not the slider is visible.' @@ -91,7 +84,6 @@ module.exports = overrideAll(templatedArray('slider', { active: { valType: 'number', - role: 'info', min: 0, dflt: 0, description: [ @@ -105,7 +97,6 @@ module.exports = overrideAll(templatedArray('slider', { lenmode: { valType: 'enumerated', values: ['fraction', 'pixels'], - role: 'info', dflt: 'fraction', description: [ 'Determines whether this slider length', @@ -117,7 +108,6 @@ module.exports = overrideAll(templatedArray('slider', { valType: 'number', min: 0, dflt: 1, - role: 'style', description: [ 'Sets the length of the slider', 'This measure excludes the padding of both ends.', @@ -130,7 +120,6 @@ module.exports = overrideAll(templatedArray('slider', { min: -2, max: 3, dflt: 0, - role: 'style', description: 'Sets the x position (in normalized coordinates) of the slider.' }, pad: extendDeepAll(padAttrs({editType: 'arraydraw'}), { @@ -140,7 +129,6 @@ module.exports = overrideAll(templatedArray('slider', { valType: 'enumerated', values: ['auto', 'left', 'center', 'right'], dflt: 'left', - role: 'info', description: [ 'Sets the slider\'s horizontal position anchor.', 'This anchor binds the `x` position to the *left*, *center*', @@ -152,14 +140,12 @@ module.exports = overrideAll(templatedArray('slider', { min: -2, max: 3, dflt: 0, - role: 'style', description: 'Sets the y position (in normalized coordinates) of the slider.' }, yanchor: { valType: 'enumerated', values: ['auto', 'top', 'middle', 'bottom'], dflt: 'top', - role: 'info', description: [ 'Sets the slider\'s vertical position anchor', 'This anchor binds the `y` position to the *top*, *middle*', @@ -170,7 +156,6 @@ module.exports = overrideAll(templatedArray('slider', { transition: { duration: { valType: 'number', - role: 'info', min: 0, dflt: 150, description: 'Sets the duration of the slider transition' @@ -178,7 +163,6 @@ module.exports = overrideAll(templatedArray('slider', { easing: { valType: 'enumerated', values: animationAttrs.transition.easing.values, - role: 'info', dflt: 'cubic-in-out', description: 'Sets the easing function of the slider transition' } @@ -187,7 +171,6 @@ module.exports = overrideAll(templatedArray('slider', { currentvalue: { visible: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Shows the currently-selected value above the slider.' @@ -198,7 +181,6 @@ module.exports = overrideAll(templatedArray('slider', { valType: 'enumerated', values: ['left', 'center', 'right'], dflt: 'left', - role: 'info', description: [ 'The alignment of the value readout relative to the length of the slider.' ].join(' ') @@ -207,7 +189,6 @@ module.exports = overrideAll(templatedArray('slider', { offset: { valType: 'number', dflt: 10, - role: 'info', description: [ 'The amount of space, in pixels, between the current value label', 'and the slider.' @@ -216,13 +197,11 @@ module.exports = overrideAll(templatedArray('slider', { prefix: { valType: 'string', - role: 'info', description: 'When currentvalue.visible is true, this sets the prefix of the label.' }, suffix: { valType: 'string', - role: 'info', description: 'When currentvalue.visible is true, this sets the suffix of the label.' }, @@ -237,7 +216,6 @@ module.exports = overrideAll(templatedArray('slider', { activebgcolor: { valType: 'color', - role: 'style', dflt: constants.gripBgActiveColor, description: [ 'Sets the background color of the slider grip', @@ -246,48 +224,41 @@ module.exports = overrideAll(templatedArray('slider', { }, bgcolor: { valType: 'color', - role: 'style', dflt: constants.railBgColor, description: 'Sets the background color of the slider.' }, bordercolor: { valType: 'color', dflt: constants.railBorderColor, - role: 'style', description: 'Sets the color of the border enclosing the slider.' }, borderwidth: { valType: 'number', min: 0, dflt: constants.railBorderWidth, - role: 'style', description: 'Sets the width (in px) of the border enclosing the slider.' }, ticklen: { valType: 'number', min: 0, dflt: constants.tickLength, - role: 'style', description: 'Sets the length in pixels of step tick marks' }, tickcolor: { valType: 'color', dflt: constants.tickColor, - role: 'style', description: 'Sets the color of the border enclosing the slider.' }, tickwidth: { valType: 'number', min: 0, dflt: 1, - role: 'style', description: 'Sets the tick width (in px).' }, minorticklen: { valType: 'number', min: 0, dflt: constants.minorTickLength, - role: 'style', description: 'Sets the length in pixels of minor step tick marks' } }), 'arraydraw', 'from-root'); diff --git a/src/components/updatemenus/attributes.js b/src/components/updatemenus/attributes.js index d869c3dccb1..85a96a50137 100644 --- a/src/components/updatemenus/attributes.js +++ b/src/components/updatemenus/attributes.js @@ -18,14 +18,12 @@ var templatedArray = require('../../plot_api/plot_template').templatedArray; var buttonsAttrs = templatedArray('button', { visible: { valType: 'boolean', - role: 'info', description: 'Determines whether or not this button is visible.' }, method: { valType: 'enumerated', values: ['restyle', 'relayout', 'animate', 'update', 'skip'], dflt: 'restyle', - role: 'info', description: [ 'Sets the Plotly method to be called on click.', 'If the `skip` method is used, the API updatemenu will function as normal', @@ -36,7 +34,6 @@ var buttonsAttrs = templatedArray('button', { }, args: { valType: 'info_array', - role: 'info', freeLength: true, items: [ {valType: 'any'}, @@ -50,7 +47,6 @@ var buttonsAttrs = templatedArray('button', { }, args2: { valType: 'info_array', - role: 'info', freeLength: true, items: [ {valType: 'any'}, @@ -66,13 +62,11 @@ var buttonsAttrs = templatedArray('button', { }, label: { valType: 'string', - role: 'info', dflt: '', description: 'Sets the text label to appear on the button.' }, execute: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'When true, the API method is executed. When false, all other behaviors are the same', @@ -89,7 +83,6 @@ module.exports = overrideAll(templatedArray('updatemenu', { visible: { valType: 'boolean', - role: 'info', description: [ 'Determines whether or not the update menu is visible.' ].join(' ') @@ -99,7 +92,6 @@ module.exports = overrideAll(templatedArray('updatemenu', { valType: 'enumerated', values: ['dropdown', 'buttons'], dflt: 'dropdown', - role: 'info', description: [ 'Determines whether the buttons are accessible via a dropdown menu', 'or whether the buttons are stacked horizontally or vertically' @@ -110,7 +102,6 @@ module.exports = overrideAll(templatedArray('updatemenu', { valType: 'enumerated', values: ['left', 'right', 'up', 'down'], dflt: 'down', - role: 'info', description: [ 'Determines the direction in which the buttons are laid out, whether', 'in a dropdown menu or a row/column of buttons. For `left` and `up`,', @@ -121,7 +112,6 @@ module.exports = overrideAll(templatedArray('updatemenu', { active: { valType: 'integer', - role: 'info', min: -1, dflt: 0, description: [ @@ -132,7 +122,6 @@ module.exports = overrideAll(templatedArray('updatemenu', { showactive: { valType: 'boolean', - role: 'info', dflt: true, description: 'Highlights active dropdown item or active button if true.' }, @@ -144,14 +133,12 @@ module.exports = overrideAll(templatedArray('updatemenu', { min: -2, max: 3, dflt: -0.05, - role: 'style', description: 'Sets the x position (in normalized coordinates) of the update menu.' }, xanchor: { valType: 'enumerated', values: ['auto', 'left', 'center', 'right'], dflt: 'right', - role: 'info', description: [ 'Sets the update menu\'s horizontal position anchor.', 'This anchor binds the `x` position to the *left*, *center*', @@ -163,14 +150,12 @@ module.exports = overrideAll(templatedArray('updatemenu', { min: -2, max: 3, dflt: 1, - role: 'style', description: 'Sets the y position (in normalized coordinates) of the update menu.' }, yanchor: { valType: 'enumerated', values: ['auto', 'top', 'middle', 'bottom'], dflt: 'top', - role: 'info', description: [ 'Sets the update menu\'s vertical position anchor', 'This anchor binds the `y` position to the *top*, *middle*', @@ -188,20 +173,17 @@ module.exports = overrideAll(templatedArray('updatemenu', { bgcolor: { valType: 'color', - role: 'style', description: 'Sets the background color of the update menu buttons.' }, bordercolor: { valType: 'color', dflt: colorAttrs.borderLine, - role: 'style', description: 'Sets the color of the border enclosing the update menu.' }, borderwidth: { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'arraydraw', description: 'Sets the width (in px) of the border enclosing the update menu.' } diff --git a/src/plot_api/plot_schema.js b/src/plot_api/plot_schema.js index 1fa14250aaa..0e2f542ec26 100644 --- a/src/plot_api/plot_schema.js +++ b/src/plot_api/plot_schema.js @@ -611,7 +611,6 @@ function mergeValTypeAndRole(attrs) { function makeSrcAttr(attrName) { return { valType: 'string', - role: 'info', description: [ 'Sets the source reference on Chart Studio Cloud for ', attrName, '.' diff --git a/src/plot_api/plot_template.js b/src/plot_api/plot_template.js index 3c3d6d1b547..721291121f9 100644 --- a/src/plot_api/plot_template.js +++ b/src/plot_api/plot_template.js @@ -17,7 +17,6 @@ var TEMPLATEITEMNAME = 'templateitemname'; var templateAttrs = { name: { valType: 'string', - role: 'style', editType: 'none', description: [ 'When used in a template, named items are created in the output figure', @@ -32,7 +31,6 @@ var templateAttrs = { }; templateAttrs[TEMPLATEITEMNAME] = { valType: 'string', - role: 'info', editType: 'calc', description: [ 'Used to refer to a named item in this array in the template. Named', diff --git a/src/plots/animation_attributes.js b/src/plots/animation_attributes.js index 4b043cd1043..80456c08769 100644 --- a/src/plots/animation_attributes.js +++ b/src/plots/animation_attributes.js @@ -12,7 +12,6 @@ module.exports = { mode: { valType: 'enumerated', dflt: 'afterall', - role: 'info', values: ['immediate', 'next', 'afterall'], description: [ 'Describes how a new animate call interacts with currently-running', @@ -25,7 +24,6 @@ module.exports = { }, direction: { valType: 'enumerated', - role: 'info', values: ['forward', 'reverse'], dflt: 'forward', description: [ @@ -35,7 +33,6 @@ module.exports = { fromcurrent: { valType: 'boolean', dflt: false, - role: 'info', description: [ 'Play frames starting at the current frame instead of the beginning.' ].join(' ') @@ -43,7 +40,6 @@ module.exports = { frame: { duration: { valType: 'number', - role: 'info', min: 0, dflt: 500, description: [ @@ -53,7 +49,6 @@ module.exports = { }, redraw: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Redraw the plot at completion of the transition. This is desirable', @@ -66,7 +61,6 @@ module.exports = { transition: { duration: { valType: 'number', - role: 'info', min: 0, dflt: 500, editType: 'none', @@ -116,7 +110,6 @@ module.exports = { 'back-in-out', 'bounce-in-out' ], - role: 'info', editType: 'none', description: 'The easing function used for the transition' }, @@ -124,7 +117,6 @@ module.exports = { valType: 'enumerated', values: ['layout first', 'traces first'], dflt: 'layout first', - role: 'info', editType: 'none', description: [ 'Determines whether the figure\'s layout or traces smoothly transitions', diff --git a/src/plots/attributes.js b/src/plots/attributes.js index bd8b21b1701..beeefef41b1 100644 --- a/src/plots/attributes.js +++ b/src/plots/attributes.js @@ -13,7 +13,6 @@ var fxAttrs = require('../components/fx/attributes'); module.exports = { type: { valType: 'enumerated', - role: 'info', values: [], // listed dynamically dflt: 'scatter', editType: 'calc+clearAxisTypes', @@ -22,7 +21,6 @@ module.exports = { visible: { valType: 'enumerated', values: [true, false, 'legendonly'], - role: 'info', dflt: true, editType: 'calc', description: [ @@ -34,7 +32,6 @@ module.exports = { }, showlegend: { valType: 'boolean', - role: 'info', dflt: true, editType: 'style', description: [ @@ -44,7 +41,6 @@ module.exports = { }, legendgroup: { valType: 'string', - role: 'info', dflt: '', editType: 'style', description: [ @@ -55,7 +51,6 @@ module.exports = { }, opacity: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, @@ -64,7 +59,6 @@ module.exports = { }, name: { valType: 'string', - role: 'info', editType: 'style', description: [ 'Sets the trace name.', @@ -73,7 +67,6 @@ module.exports = { }, uid: { valType: 'string', - role: 'info', editType: 'plot', anim: true, description: [ @@ -105,7 +98,6 @@ module.exports = { meta: { valType: 'any', arrayOk: true, - role: 'info', editType: 'plot', description: [ 'Assigns extra meta information associated with this trace', @@ -129,7 +121,6 @@ module.exports = { // https://github.com/plotly/plotly.js/issues/1894 selectedpoints: { valType: 'any', - role: 'info', editType: 'calc', description: [ 'Array containing integer indices of selected points.', @@ -142,7 +133,6 @@ module.exports = { hoverinfo: { valType: 'flaglist', - role: 'info', flags: ['x', 'y', 'z', 'text', 'name'], extras: ['all', 'none', 'skip'], arrayOk: true, @@ -160,7 +150,6 @@ module.exports = { valType: 'string', noBlank: true, strict: true, - role: 'info', editType: 'calc', description: [ 'The stream id number links a data trace on a plot with a stream.', @@ -172,7 +161,6 @@ module.exports = { min: 0, max: 10000, dflt: 500, - role: 'info', editType: 'calc', description: [ 'Sets the maximum number of points to keep on the plots from an', @@ -193,7 +181,6 @@ module.exports = { }, uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of some user-driven changes to the trace:', diff --git a/src/plots/cartesian/attributes.js b/src/plots/cartesian/attributes.js index 924935e95b4..e9944306ad1 100644 --- a/src/plots/cartesian/attributes.js +++ b/src/plots/cartesian/attributes.js @@ -12,7 +12,6 @@ module.exports = { xaxis: { valType: 'subplotid', - role: 'info', dflt: 'x', editType: 'calc+clearAxisTypes', description: [ @@ -25,7 +24,6 @@ module.exports = { }, yaxis: { valType: 'subplotid', - role: 'info', dflt: 'y', editType: 'calc+clearAxisTypes', description: [ diff --git a/src/plots/cartesian/layout_attributes.js b/src/plots/cartesian/layout_attributes.js index 8d8434987c0..822abfdbfc9 100644 --- a/src/plots/cartesian/layout_attributes.js +++ b/src/plots/cartesian/layout_attributes.js @@ -24,7 +24,6 @@ var DAY_OF_WEEK = constants.WEEKDAY_PATTERN; module.exports = { visible: { valType: 'boolean', - role: 'info', editType: 'plot', description: [ 'A single toggle to hide the axis while preserving interaction like dragging.', @@ -35,7 +34,6 @@ module.exports = { color: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'ticks', description: [ 'Sets default for all colors associated with this axis', @@ -47,7 +45,6 @@ module.exports = { title: { text: { valType: 'string', - role: 'info', editType: 'ticks', description: [ 'Sets the title of this axis.', @@ -66,7 +63,6 @@ module.exports = { }), standoff: { valType: 'number', - role: 'info', min: 0, editType: 'ticks', description: [ @@ -88,7 +84,6 @@ module.exports = { // to gd.data like the others are. values: ['-', 'linear', 'log', 'date', 'category', 'multicategory'], dflt: '-', - role: 'info', editType: 'calc', // we forget when an axis has been autotyped, just writing the auto // value back to the input - so it doesn't make sense to template this. @@ -106,7 +101,6 @@ module.exports = { valType: 'enumerated', values: ['convert types', 'strict'], dflt: 'convert types', - role: 'info', editType: 'calc', description: [ 'Using *strict* a numeric string in trace data is not converted to a number.', @@ -119,7 +113,6 @@ module.exports = { valType: 'enumerated', values: [true, false, 'reversed'], dflt: true, - role: 'info', editType: 'axrange', impliedEdits: {'range[0]': undefined, 'range[1]': undefined}, description: [ @@ -133,7 +126,6 @@ module.exports = { valType: 'enumerated', values: ['normal', 'tozero', 'nonnegative'], dflt: 'normal', - role: 'info', editType: 'plot', description: [ 'If *normal*, the range is computed in relation to the extrema', @@ -147,7 +139,6 @@ module.exports = { }, range: { valType: 'info_array', - role: 'info', items: [ {valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true}, {valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true} @@ -171,7 +162,6 @@ module.exports = { fixedrange: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'Determines whether or not this axis is zoom-able.', @@ -186,7 +176,6 @@ module.exports = { constants.idRegex.x.toString(), constants.idRegex.y.toString() ], - role: 'info', editType: 'plot', description: [ 'If set to another axis id (e.g. `x2`, `y`), the range of this axis', @@ -210,7 +199,6 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'info', editType: 'plot', description: [ 'If this axis is linked to another by `scaleanchor`, this determines the pixel', @@ -223,7 +211,6 @@ module.exports = { constrain: { valType: 'enumerated', values: ['range', 'domain'], - role: 'info', editType: 'plot', description: [ 'If this axis needs to be compressed (either due to its own `scaleanchor` and', @@ -236,7 +223,6 @@ module.exports = { constraintoward: { valType: 'enumerated', values: ['left', 'center', 'right', 'top', 'middle', 'bottom'], - role: 'info', editType: 'plot', description: [ 'If this axis needs to be compressed (either due to its own `scaleanchor` and', @@ -251,7 +237,6 @@ module.exports = { constants.idRegex.x.toString(), constants.idRegex.y.toString() ], - role: 'info', editType: 'calc', description: [ 'If set to another axis id (e.g. `x2`, `y`), the range of this axis', @@ -267,7 +252,6 @@ module.exports = { rangebreaks: templatedArray('rangebreak', { enabled: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc', description: [ @@ -278,7 +262,6 @@ module.exports = { bounds: { valType: 'info_array', - role: 'info', items: [ {valType: 'any', editType: 'calc'}, {valType: 'any', editType: 'calc'} @@ -293,7 +276,6 @@ module.exports = { pattern: { valType: 'enumerated', values: [DAY_OF_WEEK, HOUR, ''], - role: 'info', editType: 'calc', description: [ 'Determines a pattern on the time line that generates breaks.', @@ -314,7 +296,6 @@ module.exports = { values: { valType: 'info_array', freeLength: true, - role: 'info', editType: 'calc', items: { valType: 'any', @@ -329,7 +310,6 @@ module.exports = { dvalue: { // TODO could become 'any' to add support for 'months', 'years' valType: 'number', - role: 'info', editType: 'calc', min: 0, dflt: ONEDAY, @@ -345,7 +325,6 @@ module.exports = { min: 0, dflt: 0, // for *date* axes, maybe something else for *linear* editType: 'calc', - role: 'info', description: [ 'Sets the gap distance between the start and the end of this rangebreak.', 'Use with `gapmode` to set the unit of measurement.' @@ -356,7 +335,6 @@ module.exports = { values: ['pixels', 'fraction'], dflt: 'pixels', editType: 'calc', - role: 'info', description: [ 'Determines if the `gap` value corresponds to a pixel length', 'or a fraction of the plot area.' @@ -377,7 +355,6 @@ module.exports = { tickmode: { valType: 'enumerated', values: ['auto', 'linear', 'array'], - role: 'info', editType: 'ticks', impliedEdits: {tick0: undefined, dtick: undefined}, description: [ @@ -395,7 +372,6 @@ module.exports = { valType: 'integer', min: 0, dflt: 0, - role: 'style', editType: 'ticks', description: [ 'Specifies the maximum number of ticks for the particular axis.', @@ -406,7 +382,6 @@ module.exports = { }, tick0: { valType: 'any', - role: 'style', editType: 'ticks', impliedEdits: {tickmode: 'linear'}, description: [ @@ -422,7 +397,6 @@ module.exports = { }, dtick: { valType: 'any', - role: 'style', editType: 'ticks', impliedEdits: {tickmode: 'linear'}, description: [ @@ -468,7 +442,6 @@ module.exports = { ticks: { valType: 'enumerated', values: ['outside', 'inside', ''], - role: 'style', editType: 'ticks', description: [ 'Determines whether ticks are drawn or not.', @@ -480,7 +453,6 @@ module.exports = { tickson: { valType: 'enumerated', values: ['labels', 'boundaries'], - role: 'info', dflt: 'labels', editType: 'ticks', description: [ @@ -495,7 +467,6 @@ module.exports = { valType: 'enumerated', values: ['instant', 'period'], dflt: 'instant', - role: 'info', editType: 'ticks', description: [ 'Determines where tick labels are drawn with respect to their', @@ -517,7 +488,6 @@ module.exports = { 'outside bottom', 'inside bottom' ], dflt: 'outside', - role: 'info', editType: 'calc', description: [ 'Determines where tick labels are drawn with respect to the axis', @@ -535,7 +505,6 @@ module.exports = { valType: 'enumerated', values: [true, 'ticks', false, 'all', 'allticks'], dflt: false, - role: 'style', editType: 'ticks+layoutstyle', description: [ 'Determines if the axis lines or/and ticks are mirrored to', @@ -552,7 +521,6 @@ module.exports = { valType: 'number', min: 0, dflt: 5, - role: 'style', editType: 'ticks', description: 'Sets the tick length (in px).' }, @@ -560,28 +528,24 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'ticks', description: 'Sets the tick width (in px).' }, tickcolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'ticks', description: 'Sets the tick color.' }, showticklabels: { valType: 'boolean', dflt: true, - role: 'style', editType: 'ticks', description: 'Determines whether or not the tick labels are drawn.' }, automargin: { valType: 'boolean', dflt: false, - role: 'style', editType: 'ticks', description: [ 'Determines whether long tick labels automatically grow the figure', @@ -591,7 +555,6 @@ module.exports = { showspikes: { valType: 'boolean', dflt: false, - role: 'style', editType: 'modebar', description: [ 'Determines whether or not spikes (aka droplines) are drawn for this axis.', @@ -601,14 +564,12 @@ module.exports = { spikecolor: { valType: 'color', dflt: null, - role: 'style', editType: 'none', description: 'Sets the spike color. If undefined, will use the series color' }, spikethickness: { valType: 'number', dflt: 3, - role: 'style', editType: 'none', description: 'Sets the width (in px) of the zero line.' }, @@ -616,7 +577,6 @@ module.exports = { spikemode: { valType: 'flaglist', flags: ['toaxis', 'across', 'marker'], - role: 'style', dflt: 'toaxis', editType: 'none', description: [ @@ -635,7 +595,6 @@ module.exports = { valType: 'enumerated', values: ['data', 'cursor', 'hovered data'], dflt: 'data', - role: 'style', editType: 'none', description: 'Determines whether spikelines are stuck to the cursor or to the closest datapoints.' }, @@ -646,7 +605,6 @@ module.exports = { tickangle: { valType: 'angle', dflt: 'auto', - role: 'style', editType: 'ticks', description: [ 'Sets the angle of the tick labels with respect to the horizontal.', @@ -657,7 +615,6 @@ module.exports = { tickprefix: { valType: 'string', dflt: '', - role: 'style', editType: 'ticks', description: 'Sets a tick label prefix.' }, @@ -665,7 +622,6 @@ module.exports = { valType: 'enumerated', values: ['all', 'first', 'last', 'none'], dflt: 'all', - role: 'style', editType: 'ticks', description: [ 'If *all*, all tick labels are displayed with a prefix.', @@ -677,7 +633,6 @@ module.exports = { ticksuffix: { valType: 'string', dflt: '', - role: 'style', editType: 'ticks', description: 'Sets a tick label suffix.' }, @@ -685,7 +640,6 @@ module.exports = { valType: 'enumerated', values: ['all', 'first', 'last', 'none'], dflt: 'all', - role: 'style', editType: 'ticks', description: 'Same as `showtickprefix` but for tick suffixes.' }, @@ -693,7 +647,6 @@ module.exports = { valType: 'enumerated', values: ['all', 'first', 'last', 'none'], dflt: 'all', - role: 'style', editType: 'ticks', description: [ 'If *all*, all exponents are shown besides their significands.', @@ -706,7 +659,6 @@ module.exports = { valType: 'enumerated', values: ['none', 'e', 'E', 'power', 'SI', 'B'], dflt: 'B', - role: 'style', editType: 'ticks', description: [ 'Determines a formatting rule for the tick exponents.', @@ -723,7 +675,6 @@ module.exports = { valType: 'number', dflt: 3, min: 0, - role: 'style', editType: 'ticks', description: [ 'Hide SI prefix for 10^n if |n| is below this number.', @@ -733,7 +684,6 @@ module.exports = { separatethousands: { valType: 'boolean', dflt: false, - role: 'style', editType: 'ticks', description: [ 'If "true", even 4-digit integers are separated' @@ -742,7 +692,6 @@ module.exports = { tickformat: { valType: 'string', dflt: '', - role: 'style', editType: 'ticks', description: [ 'Sets the tick label formatting rule using d3 formatting mini-languages', @@ -758,7 +707,6 @@ module.exports = { tickformatstops: templatedArray('tickformatstop', { enabled: { valType: 'boolean', - role: 'info', dflt: true, editType: 'ticks', description: [ @@ -768,7 +716,6 @@ module.exports = { }, dtickrange: { valType: 'info_array', - role: 'info', items: [ {valType: 'any', editType: 'ticks'}, {valType: 'any', editType: 'ticks'} @@ -783,7 +730,6 @@ module.exports = { value: { valType: 'string', dflt: '', - role: 'style', editType: 'ticks', description: [ 'string - dtickformat for described zoom level, the same as *tickformat*' @@ -794,7 +740,6 @@ module.exports = { hoverformat: { valType: 'string', dflt: '', - role: 'style', editType: 'none', description: [ 'Sets the hover text formatting rule using d3 formatting mini-languages', @@ -811,7 +756,6 @@ module.exports = { showline: { valType: 'boolean', dflt: false, - role: 'style', editType: 'ticks+layoutstyle', description: [ 'Determines whether or not a line bounding this axis is drawn.' @@ -820,7 +764,6 @@ module.exports = { linecolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'layoutstyle', description: 'Sets the axis line color.' }, @@ -828,13 +771,11 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'ticks+layoutstyle', description: 'Sets the width (in px) of the axis line.' }, showgrid: { valType: 'boolean', - role: 'style', editType: 'ticks', description: [ 'Determines whether or not grid lines are drawn.', @@ -844,7 +785,6 @@ module.exports = { gridcolor: { valType: 'color', dflt: colorAttrs.lightLine, - role: 'style', editType: 'ticks', description: 'Sets the color of the grid lines.' }, @@ -852,13 +792,11 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'ticks', description: 'Sets the width (in px) of the grid lines.' }, zeroline: { valType: 'boolean', - role: 'style', editType: 'ticks', description: [ 'Determines whether or not a line is drawn at along the 0 value', @@ -869,14 +807,12 @@ module.exports = { zerolinecolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'ticks', description: 'Sets the line color of the zero line.' }, zerolinewidth: { valType: 'number', dflt: 1, - role: 'style', editType: 'ticks', description: 'Sets the width (in px) of the zero line.' }, @@ -884,7 +820,6 @@ module.exports = { showdividers: { valType: 'boolean', dflt: true, - role: 'style', editType: 'ticks', description: [ 'Determines whether or not a dividers are drawn', @@ -895,7 +830,6 @@ module.exports = { dividercolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'ticks', description: [ 'Sets the color of the dividers', @@ -905,7 +839,6 @@ module.exports = { dividerwidth: { valType: 'number', dflt: 1, - role: 'style', editType: 'ticks', description: [ 'Sets the width (in px) of the dividers', @@ -924,7 +857,6 @@ module.exports = { constants.idRegex.x.toString(), constants.idRegex.y.toString() ], - role: 'info', editType: 'plot', description: [ 'If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to', @@ -937,7 +869,6 @@ module.exports = { side: { valType: 'enumerated', values: ['top', 'bottom', 'left', 'right'], - role: 'info', editType: 'plot', description: [ 'Determines whether a x (y) axis is positioned', @@ -955,7 +886,6 @@ module.exports = { constants.idRegex.x.toString(), constants.idRegex.y.toString() ], - role: 'info', editType: 'plot', description: [ 'If set a same-letter axis id, this axis is overlaid on top of', @@ -970,7 +900,6 @@ module.exports = { valType: 'enumerated', values: ['above traces', 'below traces'], dflt: 'above traces', - role: 'info', editType: 'plot', description: [ 'Sets the layer on which this axis is displayed.', @@ -983,7 +912,6 @@ module.exports = { }, domain: { valType: 'info_array', - role: 'info', items: [ {valType: 'number', min: 0, max: 1, editType: 'plot'}, {valType: 'number', min: 0, max: 1, editType: 'plot'} @@ -999,7 +927,6 @@ module.exports = { min: 0, max: 1, dflt: 0, - role: 'style', editType: 'plot', description: [ 'Sets the position of this axis in the plotting space', @@ -1019,7 +946,6 @@ module.exports = { 'median ascending', 'median descending' ], dflt: 'trace', - role: 'info', editType: 'calc', description: [ 'Specifies the ordering logic for the case of categorical variables.', @@ -1036,7 +962,6 @@ module.exports = { }, categoryarray: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the order in which categories on this axis appear.', @@ -1046,7 +971,6 @@ module.exports = { }, uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in axis `range`,', @@ -1059,7 +983,6 @@ module.exports = { _deprecated: { autotick: { valType: 'boolean', - role: 'info', editType: 'ticks', description: [ 'Obsolete.', @@ -1069,7 +992,6 @@ module.exports = { }, title: { valType: 'string', - role: 'info', editType: 'ticks', description: [ 'Value of `title` is no longer a simple *string* but a set of sub-attributes.', diff --git a/src/plots/domain.js b/src/plots/domain.js index 9575bbddf81..28b6d441f79 100644 --- a/src/plots/domain.js +++ b/src/plots/domain.js @@ -37,7 +37,6 @@ exports.attributes = function(opts, extra) { var base = { valType: 'info_array', - role: 'info', editType: opts.editType, items: [ {valType: 'number', min: 0, max: 1, editType: opts.editType}, @@ -77,7 +76,6 @@ exports.attributes = function(opts, extra) { valType: 'integer', min: 0, dflt: 0, - role: 'info', editType: opts.editType, description: [ 'If there is a layout grid, use the domain ', @@ -92,7 +90,6 @@ exports.attributes = function(opts, extra) { valType: 'integer', min: 0, dflt: 0, - role: 'info', editType: opts.editType, description: [ 'If there is a layout grid, use the domain ', diff --git a/src/plots/font_attributes.js b/src/plots/font_attributes.js index 0e7ad8ce022..42c060b424b 100644 --- a/src/plots/font_attributes.js +++ b/src/plots/font_attributes.js @@ -30,7 +30,6 @@ module.exports = function(opts) { var attrs = { family: { valType: 'string', - role: 'style', noBlank: true, strict: true, editType: editType, @@ -49,13 +48,11 @@ module.exports = function(opts) { }, size: { valType: 'number', - role: 'style', min: 1, editType: editType }, color: { valType: 'color', - role: 'style', editType: colorEditType }, editType: editType, diff --git a/src/plots/frame_attributes.js b/src/plots/frame_attributes.js index c951a6871b1..fd16d5d59b7 100644 --- a/src/plots/frame_attributes.js +++ b/src/plots/frame_attributes.js @@ -13,7 +13,6 @@ module.exports = { group: { valType: 'string', - role: 'info', description: [ 'An identifier that specifies the group to which the frame belongs,', 'used by animate to select a subset of frames.' @@ -21,12 +20,10 @@ module.exports = { }, name: { valType: 'string', - role: 'info', description: 'A label by which to identify the frame' }, traces: { valType: 'any', - role: 'info', description: [ 'A list of trace indices that identify the respective traces in the', 'data attribute' @@ -34,7 +31,6 @@ module.exports = { }, baseframe: { valType: 'string', - role: 'info', description: [ 'The name of the frame into which this frame\'s properties are merged', 'before applying. This is used to unify properties and avoid needing', @@ -43,7 +39,6 @@ module.exports = { }, data: { valType: 'any', - role: 'object', description: [ 'A list of traces this frame modifies. The format is identical to the', 'normal trace definition.' @@ -51,7 +46,6 @@ module.exports = { }, layout: { valType: 'any', - role: 'object', description: [ 'Layout properties which this frame modifies. The format is identical', 'to the normal layout definition.' diff --git a/src/plots/geo/index.js b/src/plots/geo/index.js index 0d7958800db..c38b2ea2026 100644 --- a/src/plots/geo/index.js +++ b/src/plots/geo/index.js @@ -19,7 +19,6 @@ var counter = counterRegex(GEO); var attributes = {}; attributes[GEO] = { valType: 'subplotid', - role: 'info', dflt: GEO, editType: 'calc', description: [ diff --git a/src/plots/geo/layout_attributes.js b/src/plots/geo/layout_attributes.js index 4532d220a5e..ac70bf65072 100644 --- a/src/plots/geo/layout_attributes.js +++ b/src/plots/geo/layout_attributes.js @@ -16,7 +16,6 @@ var overrideAll = require('../../plot_api/edit_types').overrideAll; var geoAxesAttrs = { range: { valType: 'info_array', - role: 'info', items: [ {valType: 'number'}, {valType: 'number'} @@ -28,13 +27,11 @@ var geoAxesAttrs = { }, showgrid: { valType: 'boolean', - role: 'info', dflt: false, description: 'Sets whether or not graticule are shown on the map.' }, tick0: { valType: 'number', - role: 'info', dflt: 0, description: [ 'Sets the graticule\'s starting tick longitude/latitude.' @@ -42,14 +39,12 @@ var geoAxesAttrs = { }, dtick: { valType: 'number', - role: 'info', description: [ 'Sets the graticule\'s longitude/latitude tick step.' ].join(' ') }, gridcolor: { valType: 'color', - role: 'style', dflt: colorAttrs.lightLine, description: [ 'Sets the graticule\'s stroke color.' @@ -57,7 +52,6 @@ var geoAxesAttrs = { }, gridwidth: { valType: 'number', - role: 'style', min: 0, dflt: 1, description: [ @@ -79,7 +73,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: [false, 'locations', 'geojson'], dflt: false, - role: 'info', editType: 'plot', description: [ 'Determines if this subplot\'s view settings are auto-computed to fit trace data.', @@ -105,7 +98,6 @@ var attrs = module.exports = overrideAll({ resolution: { valType: 'enumerated', values: [110, 50], - role: 'info', dflt: 110, coerceNumber: true, description: [ @@ -116,7 +108,6 @@ var attrs = module.exports = overrideAll({ }, scope: { valType: 'enumerated', - role: 'info', values: Object.keys(constants.scopeDefaults), dflt: 'world', description: 'Set the scope of the map.' @@ -124,14 +115,12 @@ var attrs = module.exports = overrideAll({ projection: { type: { valType: 'enumerated', - role: 'info', values: Object.keys(constants.projNames), description: 'Sets the projection type.' }, rotation: { lon: { valType: 'number', - role: 'info', description: [ 'Rotates the map along parallels', '(in degrees East).', @@ -140,7 +129,6 @@ var attrs = module.exports = overrideAll({ }, lat: { valType: 'number', - role: 'info', description: [ 'Rotates the map along meridians', '(in degrees North).' @@ -148,7 +136,6 @@ var attrs = module.exports = overrideAll({ }, roll: { valType: 'number', - role: 'info', description: [ 'Roll the map (in degrees)', 'For example, a roll of *180* makes the map appear upside down.' @@ -157,7 +144,6 @@ var attrs = module.exports = overrideAll({ }, parallels: { valType: 'info_array', - role: 'info', items: [ {valType: 'number'}, {valType: 'number'} @@ -170,7 +156,6 @@ var attrs = module.exports = overrideAll({ }, scale: { valType: 'number', - role: 'info', min: 0, dflt: 1, description: [ @@ -183,7 +168,6 @@ var attrs = module.exports = overrideAll({ center: { lon: { valType: 'number', - role: 'info', description: [ 'Sets the longitude of the map\'s center.', 'By default, the map\'s longitude center lies at the middle of the longitude range', @@ -192,7 +176,6 @@ var attrs = module.exports = overrideAll({ }, lat: { valType: 'number', - role: 'info', description: [ 'Sets the latitude of the map\'s center.', 'For all projection types, the map\'s latitude center lies', @@ -202,104 +185,87 @@ var attrs = module.exports = overrideAll({ }, visible: { valType: 'boolean', - role: 'info', dflt: true, description: 'Sets the default visibility of the base layers.' }, showcoastlines: { valType: 'boolean', - role: 'info', description: 'Sets whether or not the coastlines are drawn.' }, coastlinecolor: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, description: 'Sets the coastline color.' }, coastlinewidth: { valType: 'number', - role: 'style', min: 0, dflt: 1, description: 'Sets the coastline stroke width (in px).' }, showland: { valType: 'boolean', - role: 'info', dflt: false, description: 'Sets whether or not land masses are filled in color.' }, landcolor: { valType: 'color', - role: 'style', dflt: constants.landColor, description: 'Sets the land mass color.' }, showocean: { valType: 'boolean', - role: 'info', dflt: false, description: 'Sets whether or not oceans are filled in color.' }, oceancolor: { valType: 'color', - role: 'style', dflt: constants.waterColor, description: 'Sets the ocean color' }, showlakes: { valType: 'boolean', - role: 'info', dflt: false, description: 'Sets whether or not lakes are drawn.' }, lakecolor: { valType: 'color', - role: 'style', dflt: constants.waterColor, description: 'Sets the color of the lakes.' }, showrivers: { valType: 'boolean', - role: 'info', dflt: false, description: 'Sets whether or not rivers are drawn.' }, rivercolor: { valType: 'color', - role: 'style', dflt: constants.waterColor, description: 'Sets color of the rivers.' }, riverwidth: { valType: 'number', - role: 'style', min: 0, dflt: 1, description: 'Sets the stroke width (in px) of the rivers.' }, showcountries: { valType: 'boolean', - role: 'info', description: 'Sets whether or not country boundaries are drawn.' }, countrycolor: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, description: 'Sets line color of the country boundaries.' }, countrywidth: { valType: 'number', - role: 'style', min: 0, dflt: 1, description: 'Sets line width (in px) of the country boundaries.' }, showsubunits: { valType: 'boolean', - role: 'info', description: [ 'Sets whether or not boundaries of subunits within countries', '(e.g. states, provinces) are drawn.' @@ -307,38 +273,32 @@ var attrs = module.exports = overrideAll({ }, subunitcolor: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, description: 'Sets the color of the subunits boundaries.' }, subunitwidth: { valType: 'number', - role: 'style', min: 0, dflt: 1, description: 'Sets the stroke width (in px) of the subunits boundaries.' }, showframe: { valType: 'boolean', - role: 'info', description: 'Sets whether or not a frame is drawn around the map.' }, framecolor: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, description: 'Sets the color the frame.' }, framewidth: { valType: 'number', - role: 'style', min: 0, dflt: 1, description: 'Sets the stroke width (in px) of the frame.' }, bgcolor: { valType: 'color', - role: 'style', dflt: colorAttrs.background, description: 'Set the background color of the map' }, @@ -349,7 +309,6 @@ var attrs = module.exports = overrideAll({ // set uirevision outside of overrideAll so it can be `editType: 'none'` attrs.uirevision = { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in the view', diff --git a/src/plots/gl3d/layout/attributes.js b/src/plots/gl3d/layout/attributes.js index 8c65f5faade..3418b700f82 100644 --- a/src/plots/gl3d/layout/attributes.js +++ b/src/plots/gl3d/layout/attributes.js @@ -12,7 +12,6 @@ module.exports = { scene: { valType: 'subplotid', - role: 'info', dflt: 'scene', editType: 'calc+clearAxisTypes', description: [ diff --git a/src/plots/gl3d/layout/axis_attributes.js b/src/plots/gl3d/layout/axis_attributes.js index 3c9061d8cff..3c5543c7cbe 100644 --- a/src/plots/gl3d/layout/axis_attributes.js +++ b/src/plots/gl3d/layout/axis_attributes.js @@ -17,7 +17,6 @@ module.exports = overrideAll({ visible: axesAttrs.visible, showspikes: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Sets whether or not spikes starting from', @@ -26,7 +25,6 @@ module.exports = overrideAll({ }, spikesides: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Sets whether or not spikes extending from the', @@ -36,20 +34,17 @@ module.exports = overrideAll({ }, spikethickness: { valType: 'number', - role: 'style', min: 0, dflt: 2, description: 'Sets the thickness (in px) of the spikes.' }, spikecolor: { valType: 'color', - role: 'style', dflt: Color.defaultLine, description: 'Sets the color of the spikes.' }, showbackground: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Sets whether or not this axis\' wall', @@ -58,13 +53,11 @@ module.exports = overrideAll({ }, backgroundcolor: { valType: 'color', - role: 'style', dflt: 'rgba(204, 204, 204, 0.5)', description: 'Sets the background color of this axis\' wall.' }, showaxeslabels: { valType: 'boolean', - role: 'info', dflt: true, description: 'Sets whether or not this axis is labeled' }, diff --git a/src/plots/gl3d/layout/layout_attributes.js b/src/plots/gl3d/layout/layout_attributes.js index 67f4f1236b7..e508e8f481f 100644 --- a/src/plots/gl3d/layout/layout_attributes.js +++ b/src/plots/gl3d/layout/layout_attributes.js @@ -18,19 +18,16 @@ function makeCameraVector(x, y, z) { return { x: { valType: 'number', - role: 'info', dflt: x, editType: 'camera' }, y: { valType: 'number', - role: 'info', dflt: y, editType: 'camera' }, z: { valType: 'number', - role: 'info', dflt: z, editType: 'camera' }, @@ -43,7 +40,6 @@ module.exports = { bgcolor: { valType: 'color', - role: 'style', dflt: 'rgba(0,0,0,0)', editType: 'plot' }, @@ -75,7 +71,6 @@ module.exports = { projection: { type: { valType: 'enumerated', - role: 'info', values: ['perspective', 'orthographic'], dflt: 'perspective', editType: 'calc', @@ -92,7 +87,6 @@ module.exports = { domain: domainAttrs({name: 'scene', editType: 'plot'}), aspectmode: { valType: 'enumerated', - role: 'info', values: ['auto', 'cube', 'data', 'manual'], dflt: 'auto', editType: 'plot', @@ -121,21 +115,18 @@ module.exports = { aspectratio: { // must be positive (0's are coerced to 1) x: { valType: 'number', - role: 'info', min: 0, editType: 'plot', impliedEdits: {'^aspectmode': 'manual'} }, y: { valType: 'number', - role: 'info', min: 0, editType: 'plot', impliedEdits: {'^aspectmode': 'manual'} }, z: { valType: 'number', - role: 'info', min: 0, editType: 'plot', impliedEdits: {'^aspectmode': 'manual'} @@ -153,7 +144,6 @@ module.exports = { dragmode: { valType: 'enumerated', - role: 'info', values: ['orbit', 'turntable', 'zoom', 'pan', false], editType: 'plot', description: [ @@ -162,7 +152,6 @@ module.exports = { }, hovermode: { valType: 'enumerated', - role: 'info', values: ['closest', false], dflt: 'closest', editType: 'modebar', @@ -172,7 +161,6 @@ module.exports = { }, uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in camera attributes.', @@ -184,7 +172,6 @@ module.exports = { _deprecated: { cameraposition: { valType: 'info_array', - role: 'info', editType: 'camera', description: 'Obsolete. Use `camera` instead.' } diff --git a/src/plots/layout_attributes.js b/src/plots/layout_attributes.js index a7c6507a167..b00419686d8 100644 --- a/src/plots/layout_attributes.js +++ b/src/plots/layout_attributes.js @@ -32,7 +32,6 @@ module.exports = { title: { text: { valType: 'string', - role: 'info', editType: 'layoutstyle', description: [ 'Sets the plot\'s title.', @@ -53,7 +52,6 @@ module.exports = { valType: 'enumerated', dflt: 'container', values: ['container', 'paper'], - role: 'info', editType: 'layoutstyle', description: [ 'Sets the container `x` refers to.', @@ -65,7 +63,6 @@ module.exports = { valType: 'enumerated', dflt: 'container', values: ['container', 'paper'], - role: 'info', editType: 'layoutstyle', description: [ 'Sets the container `y` refers to.', @@ -78,7 +75,6 @@ module.exports = { min: 0, max: 1, dflt: 0.5, - role: 'style', editType: 'layoutstyle', description: [ 'Sets the x position with respect to `xref` in normalized', @@ -90,7 +86,6 @@ module.exports = { min: 0, max: 1, dflt: 'auto', - role: 'style', editType: 'layoutstyle', description: [ 'Sets the y position with respect to `yref` in normalized', @@ -103,7 +98,6 @@ module.exports = { valType: 'enumerated', dflt: 'auto', values: ['auto', 'left', 'center', 'right'], - role: 'info', editType: 'layoutstyle', description: [ 'Sets the title\'s horizontal alignment with respect to its x position.', @@ -118,7 +112,6 @@ module.exports = { valType: 'enumerated', dflt: 'auto', values: ['auto', 'top', 'middle', 'bottom'], - role: 'info', editType: 'layoutstyle', description: [ 'Sets the title\'s vertical alignment with respect to its y position.', @@ -146,7 +139,6 @@ module.exports = { valType: 'enumerated', values: [false, 'hide', 'show'], dflt: false, - role: 'info', editType: 'plot', description: [ 'Determines how the font size for various text', @@ -163,7 +155,6 @@ module.exports = { valType: 'number', min: 0, dflt: 0, - role: 'info', editType: 'plot', description: [ 'Sets the minimum text size between traces of the same type.' @@ -173,7 +164,6 @@ module.exports = { }, autosize: { valType: 'boolean', - role: 'info', dflt: false, // autosize, width, and height get special editType treatment in _relayout // so we can handle noop resizes more efficiently @@ -190,7 +180,6 @@ module.exports = { }, width: { valType: 'number', - role: 'info', min: 10, dflt: 700, editType: 'plot', @@ -200,7 +189,6 @@ module.exports = { }, height: { valType: 'number', - role: 'info', min: 10, dflt: 450, editType: 'plot', @@ -211,7 +199,6 @@ module.exports = { margin: { l: { valType: 'number', - role: 'info', min: 0, dflt: 80, editType: 'plot', @@ -219,7 +206,6 @@ module.exports = { }, r: { valType: 'number', - role: 'info', min: 0, dflt: 80, editType: 'plot', @@ -227,7 +213,6 @@ module.exports = { }, t: { valType: 'number', - role: 'info', min: 0, dflt: 100, editType: 'plot', @@ -235,7 +220,6 @@ module.exports = { }, b: { valType: 'number', - role: 'info', min: 0, dflt: 80, editType: 'plot', @@ -243,7 +227,6 @@ module.exports = { }, pad: { valType: 'number', - role: 'info', min: 0, dflt: 0, editType: 'plot', @@ -254,7 +237,6 @@ module.exports = { }, autoexpand: { valType: 'boolean', - role: 'info', dflt: true, editType: 'plot', description: [ @@ -267,7 +249,6 @@ module.exports = { }, computed: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Placeholder for exporting automargin-impacting values namely', @@ -276,7 +257,6 @@ module.exports = { }, paper_bgcolor: { valType: 'color', - role: 'style', dflt: colorAttrs.background, editType: 'plot', description: 'Sets the background color of the paper where the graph is drawn.' @@ -285,7 +265,6 @@ module.exports = { // defined here, but set in cartesian.supplyLayoutDefaults // because it needs to know if there are (2D) axes or not valType: 'color', - role: 'style', dflt: colorAttrs.background, editType: 'layoutstyle', description: [ @@ -296,7 +275,6 @@ module.exports = { valType: 'enumerated', values: ['convert types', 'strict'], dflt: 'convert types', - role: 'info', editType: 'calc', description: [ 'Using *strict* a numeric string in trace data is not converted to a number.', @@ -307,7 +285,6 @@ module.exports = { }, separators: { valType: 'string', - role: 'style', editType: 'plot', description: [ 'Sets the decimal and thousand separators.', @@ -318,7 +295,6 @@ module.exports = { }, hidesources: { valType: 'boolean', - role: 'info', dflt: false, editType: 'plot', description: [ @@ -332,7 +308,6 @@ module.exports = { // handled in legend.supplyLayoutDefaults // but included here because it's not in the legend object valType: 'boolean', - role: 'info', editType: 'legend', description: [ 'Determines whether or not a legend is drawn.', @@ -345,13 +320,11 @@ module.exports = { colorway: { valType: 'colorlist', dflt: colorAttrs.defaults, - role: 'style', editType: 'calc', description: 'Sets the default trace colors.' }, datarevision: { valType: 'any', - role: 'info', editType: 'calc', description: [ 'If provided, a changed value tells `Plotly.react` that', @@ -365,7 +338,6 @@ module.exports = { }, uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Used to allow user interactions with the plot to persist after', @@ -387,7 +359,6 @@ module.exports = { }, editrevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in `editable: true`', @@ -397,7 +368,6 @@ module.exports = { }, selectionrevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in selected points', @@ -406,7 +376,6 @@ module.exports = { }, template: { valType: 'any', - role: 'info', editType: 'calc', description: [ 'Default attributes to be applied to the plot. Templates can be', @@ -432,31 +401,26 @@ module.exports = { valType: 'enumerated', values: ['v', 'h'], dflt: 'h', - role: 'info', editType: 'modebar', description: 'Sets the orientation of the modebar.' }, bgcolor: { valType: 'color', - role: 'style', editType: 'modebar', description: 'Sets the background color of the modebar.' }, color: { valType: 'color', - role: 'style', editType: 'modebar', description: 'Sets the color of the icons in the modebar.' }, activecolor: { valType: 'color', - role: 'style', editType: 'modebar', description: 'Sets the color of the active or hovered on icons in the modebar.' }, uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes related to the modebar,', @@ -473,7 +437,6 @@ module.exports = { meta: { valType: 'any', arrayOk: true, - role: 'info', editType: 'plot', description: [ 'Assigns extra meta information that can be used in various `text` attributes.', @@ -496,7 +459,6 @@ module.exports = { _deprecated: { title: { valType: 'string', - role: 'info', editType: 'layoutstyle', description: [ 'Value of `title` is no longer a simple *string* but a set of sub-attributes.', diff --git a/src/plots/mapbox/index.js b/src/plots/mapbox/index.js index 17b05013059..b2e8569b740 100644 --- a/src/plots/mapbox/index.js +++ b/src/plots/mapbox/index.js @@ -36,7 +36,6 @@ exports.idRegex = exports.attrRegex = Lib.counterRegex(MAPBOX); exports.attributes = { subplot: { valType: 'subplotid', - role: 'info', dflt: 'mapbox', editType: 'calc', description: [ diff --git a/src/plots/mapbox/layout_attributes.js b/src/plots/mapbox/layout_attributes.js index 07e99f929da..efe8a8602a1 100644 --- a/src/plots/mapbox/layout_attributes.js +++ b/src/plots/mapbox/layout_attributes.js @@ -35,7 +35,6 @@ var attrs = module.exports = overrideAll({ valType: 'string', noBlank: true, strict: true, - role: 'info', description: [ 'Sets the mapbox access token to be used for this mapbox map.', 'Alternatively, the mapbox access token can be set in the', @@ -49,7 +48,6 @@ var attrs = module.exports = overrideAll({ valType: 'any', values: constants.styleValuesMapbox.concat(constants.styleValuesNonMapbox), dflt: constants.styleValueDflt, - role: 'style', description: [ 'Defines the map layers that are rendered by default below the trace layers defined in `data`,', 'which are themselves by default rendered below the layers defined in `layout.mapbox.layers`.', @@ -78,32 +76,27 @@ var attrs = module.exports = overrideAll({ lon: { valType: 'number', dflt: 0, - role: 'info', description: 'Sets the longitude of the center of the map (in degrees East).' }, lat: { valType: 'number', dflt: 0, - role: 'info', description: 'Sets the latitude of the center of the map (in degrees North).' } }, zoom: { valType: 'number', dflt: 1, - role: 'info', description: 'Sets the zoom level of the map (mapbox.zoom).' }, bearing: { valType: 'number', dflt: 0, - role: 'info', description: 'Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing).' }, pitch: { valType: 'number', dflt: 0, - role: 'info', description: [ 'Sets the pitch angle of the map', '(in degrees, where *0* means perpendicular to the surface of the map) (mapbox.pitch).' @@ -113,7 +106,6 @@ var attrs = module.exports = overrideAll({ layers: templatedArray('layer', { visible: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Determines whether this layer is displayed' @@ -123,7 +115,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: ['geojson', 'vector', 'raster', 'image'], dflt: 'geojson', - role: 'info', description: [ 'Sets the source type for this layer,', 'that is the type of the layer data.' @@ -132,7 +123,6 @@ var attrs = module.exports = overrideAll({ source: { valType: 'any', - role: 'info', description: [ 'Sets the source data for this layer (mapbox.layer.source).', 'When `sourcetype` is set to *geojson*, `source` can be a URL to a GeoJSON', @@ -146,7 +136,6 @@ var attrs = module.exports = overrideAll({ sourcelayer: { valType: 'string', dflt: '', - role: 'info', description: [ 'Specifies the layer to use from a vector tile source (mapbox.layer.source-layer).', 'Required for *vector* source type that supports multiple layers.' @@ -155,7 +144,6 @@ var attrs = module.exports = overrideAll({ sourceattribution: { valType: 'string', - role: 'info', description: [ 'Sets the attribution for this source.' ].join(' ') @@ -165,7 +153,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: ['circle', 'line', 'fill', 'symbol', 'raster'], dflt: 'circle', - role: 'info', description: [ 'Sets the layer type,', 'that is the how the layer data set in `source` will be rendered', @@ -181,7 +168,6 @@ var attrs = module.exports = overrideAll({ coordinates: { valType: 'any', - role: 'info', description: [ 'Sets the coordinates array contains [longitude, latitude] pairs', 'for the image corners listed in clockwise order:', @@ -193,7 +179,6 @@ var attrs = module.exports = overrideAll({ // attributes shared between all types below: { valType: 'string', - role: 'info', description: [ 'Determines if the layer will be inserted', 'before the layer with the specified ID.', @@ -204,7 +189,6 @@ var attrs = module.exports = overrideAll({ color: { valType: 'color', dflt: defaultLine, - role: 'style', description: [ 'Sets the primary layer color.', 'If `type` is *circle*, color corresponds to the circle color (mapbox.layer.paint.circle-color)', @@ -218,7 +202,6 @@ var attrs = module.exports = overrideAll({ min: 0, max: 1, dflt: 1, - role: 'info', description: [ 'Sets the opacity of the layer.', 'If `type` is *circle*, opacity corresponds to the circle opacity (mapbox.layer.paint.circle-opacity)', @@ -232,7 +215,6 @@ var attrs = module.exports = overrideAll({ min: 0, max: 24, dflt: 0, - role: 'info', description: [ 'Sets the minimum zoom level (mapbox.layer.minzoom).', 'At zoom levels less than the minzoom, the layer will be hidden.', @@ -243,7 +225,6 @@ var attrs = module.exports = overrideAll({ min: 0, max: 24, dflt: 24, - role: 'info', description: [ 'Sets the maximum zoom level (mapbox.layer.maxzoom).', 'At zoom levels equal to or greater than the maxzoom, the layer will be hidden.' @@ -255,7 +236,6 @@ var attrs = module.exports = overrideAll({ radius: { valType: 'number', dflt: 15, - role: 'style', description: [ 'Sets the circle radius (mapbox.layer.paint.circle-radius).', 'Has an effect only when `type` is set to *circle*.' @@ -267,7 +247,6 @@ var attrs = module.exports = overrideAll({ width: { valType: 'number', dflt: 2, - role: 'style', description: [ 'Sets the line width (mapbox.layer.paint.line-width).', 'Has an effect only when `type` is set to *line*.' @@ -275,7 +254,6 @@ var attrs = module.exports = overrideAll({ }, dash: { valType: 'data_array', - role: 'style', description: [ 'Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray).', 'Has an effect only when `type` is set to *line*.' @@ -287,7 +265,6 @@ var attrs = module.exports = overrideAll({ outlinecolor: { valType: 'color', dflt: defaultLine, - role: 'style', description: [ 'Sets the fill outline color (mapbox.layer.paint.fill-outline-color).', 'Has an effect only when `type` is set to *fill*.' @@ -299,7 +276,6 @@ var attrs = module.exports = overrideAll({ icon: { valType: 'string', dflt: 'marker', - role: 'style', description: [ 'Sets the symbol icon image (mapbox.layer.layout.icon-image).', 'Full list: https://www.mapbox.com/maki-icons/' @@ -308,7 +284,6 @@ var attrs = module.exports = overrideAll({ iconsize: { valType: 'number', dflt: 10, - role: 'style', description: [ 'Sets the symbol icon size (mapbox.layer.layout.icon-size).', 'Has an effect only when `type` is set to *symbol*.' @@ -317,7 +292,6 @@ var attrs = module.exports = overrideAll({ text: { valType: 'string', dflt: '', - role: 'info', description: [ 'Sets the symbol text (mapbox.layer.layout.text-field).' ].join(' ') @@ -326,7 +300,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: ['point', 'line', 'line-center'], dflt: 'point', - role: 'info', description: [ 'Sets the symbol and/or text placement (mapbox.layer.layout.symbol-placement).', 'If `placement` is *point*, the label is placed where the geometry is located', @@ -343,7 +316,6 @@ var attrs = module.exports = overrideAll({ // set uirevision outside of overrideAll so it can be `editType: 'none'` attrs.uirevision = { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in the view:', diff --git a/src/plots/pad_attributes.js b/src/plots/pad_attributes.js index 6b7172b9995..294d9d919fc 100644 --- a/src/plots/pad_attributes.js +++ b/src/plots/pad_attributes.js @@ -23,28 +23,24 @@ module.exports = function(opts) { t: { valType: 'number', dflt: 0, - role: 'style', editType: editType, description: 'The amount of padding (in px) along the top of the component.' }, r: { valType: 'number', dflt: 0, - role: 'style', editType: editType, description: 'The amount of padding (in px) on the right side of the component.' }, b: { valType: 'number', dflt: 0, - role: 'style', editType: editType, description: 'The amount of padding (in px) along the bottom of the component.' }, l: { valType: 'number', dflt: 0, - role: 'style', editType: editType, description: 'The amount of padding (in px) on the left side of the component.' }, diff --git a/src/plots/polar/index.js b/src/plots/polar/index.js index 971b61c0a6c..c086883d103 100644 --- a/src/plots/polar/index.js +++ b/src/plots/polar/index.js @@ -21,7 +21,6 @@ var counter = counterRegex(name); var attributes = {}; attributes[attr] = { valType: 'subplotid', - role: 'info', dflt: name, editType: 'calc', description: [ diff --git a/src/plots/polar/layout_attributes.js b/src/plots/polar/layout_attributes.js index 12e85de3ca2..a72d3574601 100644 --- a/src/plots/polar/layout_attributes.js +++ b/src/plots/polar/layout_attributes.js @@ -68,7 +68,6 @@ var radialAxisAttrs = { valType: 'enumerated', values: ['tozero', 'nonnegative', 'normal'], dflt: 'tozero', - role: 'style', editType: 'calc', description: [ 'If *tozero*`, the range extends to 0,', @@ -93,7 +92,6 @@ var radialAxisAttrs = { angle: { valType: 'angle', editType: 'plot', - role: 'info', description: [ 'Sets the angle (in degrees) from which the radial axis is drawn.', 'Note that by default, radial axis line on the theta=0 line', @@ -108,7 +106,6 @@ var radialAxisAttrs = { values: ['clockwise', 'counterclockwise'], dflt: 'clockwise', editType: 'plot', - role: 'info', description: [ 'Determines on which side of radial axis line', 'the tick and tick labels appear.' @@ -133,7 +130,6 @@ var radialAxisAttrs = { uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in axis `range`,', @@ -171,7 +167,6 @@ var angularAxisAttrs = { // no 'log' for now values: ['-', 'linear', 'category'], dflt: '-', - role: 'info', editType: 'calc', _noTemplating: true, description: [ @@ -189,7 +184,6 @@ var angularAxisAttrs = { valType: 'enumerated', values: ['radians', 'degrees'], dflt: 'degrees', - role: 'info', editType: 'calc', description: [ 'Sets the format unit of the formatted *theta* values.', @@ -201,7 +195,6 @@ var angularAxisAttrs = { valType: 'number', editType: 'calc', min: 0, - role: 'info', description: [ 'Set the angular period.', 'Has an effect only when `angularaxis.type` is *category*.', @@ -222,7 +215,6 @@ var angularAxisAttrs = { valType: 'enumerated', values: ['counterclockwise', 'clockwise'], dflt: 'counterclockwise', - role: 'info', editType: 'calc', description: [ 'Sets the direction corresponding to positive angles.' @@ -232,7 +224,6 @@ var angularAxisAttrs = { rotation: { valType: 'angle', editType: 'calc', - role: 'info', description: [ 'Sets that start position (in degrees) of the angular axis', 'By default, polar subplots with `direction` set to *counterclockwise*', @@ -247,7 +238,6 @@ var angularAxisAttrs = { uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in axis `rotation`.', @@ -284,7 +274,6 @@ module.exports = { {valType: 'number', editType: 'plot'} ], dflt: [0, 360], - role: 'info', editType: 'plot', description: [ 'Sets angular span of this polar subplot with two angles (in degrees).', @@ -298,7 +287,6 @@ module.exports = { max: 1, dflt: 0, editType: 'plot', - role: 'info', description: [ 'Sets the fraction of the radius to cut out of the polar subplot.' ].join(' ') @@ -306,7 +294,6 @@ module.exports = { bgcolor: { valType: 'color', - role: 'style', editType: 'plot', dflt: colorAttrs.background, description: 'Set the background color of the subplot' @@ -319,7 +306,6 @@ module.exports = { valType: 'enumerated', values: ['circular', 'linear'], dflt: 'circular', - role: 'style', editType: 'plot', description: [ 'Determines if the radial axis grid lines and angular axis line are drawn', @@ -336,7 +322,6 @@ module.exports = { uirevision: { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in axis attributes,', diff --git a/src/plots/template_attributes.js b/src/plots/template_attributes.js index fb118061562..11325567b8f 100644 --- a/src/plots/template_attributes.js +++ b/src/plots/template_attributes.js @@ -47,7 +47,6 @@ exports.hovertemplateAttrs = function(opts, extra) { var hovertemplate = { valType: 'string', - role: 'info', dflt: '', editType: opts.editType || 'none', description: [ @@ -77,7 +76,6 @@ exports.texttemplateAttrs = function(opts, extra) { var texttemplate = { valType: 'string', - role: 'info', dflt: '', editType: opts.editType || 'calc', description: [ diff --git a/src/plots/ternary/index.js b/src/plots/ternary/index.js index 871f8e0d111..fd33c2f1135 100644 --- a/src/plots/ternary/index.js +++ b/src/plots/ternary/index.js @@ -26,7 +26,6 @@ exports.idRegex = exports.attrRegex = counterRegex(TERNARY); var attributes = exports.attributes = {}; attributes[attr] = { valType: 'subplotid', - role: 'info', dflt: 'ternary', editType: 'calc', description: [ diff --git a/src/plots/ternary/layout_attributes.js b/src/plots/ternary/layout_attributes.js index dac65e440da..67fdf20850a 100644 --- a/src/plots/ternary/layout_attributes.js +++ b/src/plots/ternary/layout_attributes.js @@ -59,7 +59,6 @@ var ternaryAxesAttrs = { min: { valType: 'number', dflt: 0, - role: 'info', min: 0, description: [ 'The minimum value visible on this axis.', @@ -79,13 +78,11 @@ var attrs = module.exports = overrideAll({ bgcolor: { valType: 'color', - role: 'style', dflt: colorAttrs.background, description: 'Set the background color of the subplot' }, sum: { valType: 'number', - role: 'info', dflt: 1, min: 0, description: [ @@ -101,7 +98,6 @@ var attrs = module.exports = overrideAll({ // set uirevisions outside of `overrideAll` so we can get `editType: none` attrs.uirevision = { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in axis `min` and `title`,', @@ -112,7 +108,6 @@ attrs.uirevision = { attrs.aaxis.uirevision = attrs.baxis.uirevision = attrs.caxis.uirevision = { valType: 'any', - role: 'info', editType: 'none', description: [ 'Controls persistence of user-driven changes in axis `min`,', diff --git a/src/traces/bar/attributes.js b/src/traces/bar/attributes.js index 3be2749d8e4..e8e76cf4347 100644 --- a/src/traces/bar/attributes.js +++ b/src/traces/bar/attributes.js @@ -45,7 +45,6 @@ var marker = extendFlat({ dflt: 1, min: 0, max: 1, - role: 'style', editType: 'style', description: 'Sets the opacity of the bars.' } @@ -77,7 +76,6 @@ module.exports = { textposition: { valType: 'enumerated', - role: 'info', values: ['inside', 'outside', 'auto', 'none'], dflt: 'none', arrayOk: true, @@ -99,7 +97,6 @@ module.exports = { valType: 'enumerated', values: ['end', 'middle', 'start'], dflt: 'end', - role: 'info', editType: 'plot', description: [ 'Determines if texts are kept at center or start/end points in `textposition` *inside* mode.' @@ -109,7 +106,6 @@ module.exports = { textangle: { valType: 'angle', dflt: 'auto', - role: 'info', editType: 'plot', description: [ 'Sets the angle of the tick labels with respect to the bar.', @@ -134,7 +130,6 @@ module.exports = { constraintext: { valType: 'enumerated', values: ['inside', 'outside', 'both', 'none'], - role: 'info', dflt: 'both', editType: 'calc', description: [ @@ -154,7 +149,6 @@ module.exports = { orientation: { valType: 'enumerated', - role: 'info', values: ['v', 'h'], editType: 'calc+clearAxisTypes', description: [ @@ -168,7 +162,6 @@ module.exports = { valType: 'any', dflt: null, arrayOk: true, - role: 'info', editType: 'calc', description: [ 'Sets where the bar base is drawn (in position axis units).', @@ -182,7 +175,6 @@ module.exports = { valType: 'number', dflt: null, arrayOk: true, - role: 'info', editType: 'calc', description: [ 'Shifts the position where the bar is drawn', @@ -198,7 +190,6 @@ module.exports = { dflt: null, min: 0, arrayOk: true, - role: 'info', editType: 'calc', description: [ 'Sets the bar width (in position axis units).' @@ -209,7 +200,6 @@ module.exports = { offsetgroup: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ @@ -220,7 +210,6 @@ module.exports = { }, alignmentgroup: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ @@ -253,7 +242,6 @@ module.exports = { _deprecated: { bardir: { valType: 'enumerated', - role: 'info', editType: 'calc', values: ['v', 'h'], description: 'Renamed to `orientation`.' diff --git a/src/traces/bar/layout_attributes.js b/src/traces/bar/layout_attributes.js index 674d8770824..bf296676c19 100644 --- a/src/traces/bar/layout_attributes.js +++ b/src/traces/bar/layout_attributes.js @@ -14,7 +14,6 @@ module.exports = { valType: 'enumerated', values: ['stack', 'group', 'overlay', 'relative'], dflt: 'group', - role: 'info', editType: 'calc', description: [ 'Determines how bars at the same location coordinate', @@ -32,7 +31,6 @@ module.exports = { valType: 'enumerated', values: ['', 'fraction', 'percent'], dflt: '', - role: 'info', editType: 'calc', description: [ 'Sets the normalization for bar traces on the graph.', @@ -45,7 +43,6 @@ module.exports = { valType: 'number', min: 0, max: 1, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between bars of', @@ -57,7 +54,6 @@ module.exports = { min: 0, max: 1, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between bars of', diff --git a/src/traces/barpolar/layout_attributes.js b/src/traces/barpolar/layout_attributes.js index f6074ba3981..98d5671feab 100644 --- a/src/traces/barpolar/layout_attributes.js +++ b/src/traces/barpolar/layout_attributes.js @@ -13,7 +13,6 @@ module.exports = { valType: 'enumerated', values: ['stack', 'overlay'], dflt: 'stack', - role: 'info', editType: 'calc', description: [ 'Determines how bars at the same location coordinate', @@ -28,7 +27,6 @@ module.exports = { dflt: 0.1, min: 0, max: 1, - role: 'style', editType: 'calc', description: [ 'Sets the gap between bars of', diff --git a/src/traces/box/attributes.js b/src/traces/box/attributes.js index d796477bf8e..9cafe4f1d63 100644 --- a/src/traces/box/attributes.js +++ b/src/traces/box/attributes.js @@ -36,7 +36,6 @@ module.exports = { }, x0: { valType: 'any', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the x coordinate for single-box traces', @@ -47,7 +46,6 @@ module.exports = { }, y0: { valType: 'any', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the y coordinate for single-box traces', @@ -59,7 +57,6 @@ module.exports = { dx: { valType: 'number', - role: 'info', editType: 'calc', description: [ 'Sets the x coordinate step for multi-box traces', @@ -68,7 +65,6 @@ module.exports = { }, dy: { valType: 'number', - role: 'info', editType: 'calc', description: [ 'Sets the y coordinate step for multi-box traces', @@ -85,7 +81,6 @@ module.exports = { name: { valType: 'string', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the trace name.', @@ -98,7 +93,6 @@ module.exports = { q1: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the Quartile 1 values.', @@ -107,7 +101,6 @@ module.exports = { }, median: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the median values.', @@ -116,7 +109,6 @@ module.exports = { }, q3: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the Quartile 3 values.', @@ -125,7 +117,6 @@ module.exports = { }, lowerfence: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the lower fence values.', @@ -137,7 +128,6 @@ module.exports = { }, upperfence: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the upper fence values.', @@ -150,7 +140,6 @@ module.exports = { notched: { valType: 'boolean', - role: 'info', editType: 'calc', description: [ 'Determines whether or not notches are drawn.', @@ -167,7 +156,6 @@ module.exports = { min: 0, max: 0.5, dflt: 0.25, - role: 'style', editType: 'calc', description: [ 'Sets the width of the notches relative to', @@ -177,7 +165,6 @@ module.exports = { }, notchspan: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the notch span from the boxes\' `median` values.', @@ -197,7 +184,6 @@ module.exports = { boxpoints: { valType: 'enumerated', values: ['all', 'outliers', 'suspectedoutliers', false], - role: 'style', editType: 'calc', description: [ 'If *outliers*, only the sample points lying outside the whiskers', @@ -217,7 +203,6 @@ module.exports = { valType: 'number', min: 0, max: 1, - role: 'style', editType: 'calc', description: [ 'Sets the amount of jitter in the sample points drawn.', @@ -230,7 +215,6 @@ module.exports = { valType: 'number', min: -2, max: 2, - role: 'style', editType: 'calc', description: [ 'Sets the position of the sample points in relation to the box(es).', @@ -243,7 +227,6 @@ module.exports = { boxmean: { valType: 'enumerated', values: [true, 'sd', false], - role: 'style', editType: 'calc', description: [ 'If *true*, the mean of the box(es)\' underlying distribution is', @@ -256,7 +239,6 @@ module.exports = { }, mean: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the mean values.', @@ -268,7 +250,6 @@ module.exports = { }, sd: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the standard deviation values.', @@ -282,7 +263,6 @@ module.exports = { orientation: { valType: 'enumerated', values: ['v', 'h'], - role: 'style', editType: 'calc+clearAxisTypes', description: [ 'Sets the orientation of the box(es).', @@ -295,7 +275,6 @@ module.exports = { valType: 'enumerated', values: ['linear', 'exclusive', 'inclusive'], dflt: 'linear', - role: 'info', editType: 'calc', description: [ 'Sets the method used to compute the sample\'s Q1 and Q3 quartiles.', @@ -318,7 +297,6 @@ module.exports = { width: { valType: 'number', min: 0, - role: 'info', dflt: 0, editType: 'calc', description: [ @@ -332,7 +310,6 @@ module.exports = { outliercolor: { valType: 'color', dflt: 'rgba(0, 0, 0, 0)', - role: 'style', editType: 'style', description: 'Sets the color of the outlier sample points.' }, @@ -353,7 +330,6 @@ module.exports = { ), outliercolor: { valType: 'color', - role: 'style', editType: 'style', description: [ 'Sets the border line color of the outlier sample points.', @@ -364,7 +340,6 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'style', description: [ 'Sets the border line width (in px) of the outlier sample points.' @@ -378,13 +353,11 @@ module.exports = { line: { color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the color of line bounding the box(es).' }, width: { valType: 'number', - role: 'style', min: 0, dflt: 2, editType: 'style', @@ -400,7 +373,6 @@ module.exports = { min: 0, max: 1, dflt: 0.5, - role: 'style', editType: 'calc', description: [ 'Sets the width of the whiskers relative to', @@ -444,7 +416,6 @@ module.exports = { valType: 'flaglist', flags: ['boxes', 'points'], dflt: 'boxes+points', - role: 'info', editType: 'style', description: [ 'Do the hover effects highlight individual boxes ', diff --git a/src/traces/box/layout_attributes.js b/src/traces/box/layout_attributes.js index f100596723b..3c9b465a02b 100644 --- a/src/traces/box/layout_attributes.js +++ b/src/traces/box/layout_attributes.js @@ -14,7 +14,6 @@ module.exports = { valType: 'enumerated', values: ['group', 'overlay'], dflt: 'overlay', - role: 'info', editType: 'calc', description: [ 'Determines how boxes at the same location coordinate', @@ -31,7 +30,6 @@ module.exports = { min: 0, max: 1, dflt: 0.3, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between boxes of', @@ -44,7 +42,6 @@ module.exports = { min: 0, max: 1, dflt: 0.3, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between boxes of', diff --git a/src/traces/carpet/attributes.js b/src/traces/carpet/attributes.js index bc097a3eb99..49fe3e20e6e 100644 --- a/src/traces/carpet/attributes.js +++ b/src/traces/carpet/attributes.js @@ -24,7 +24,6 @@ carpetFont.color.dflt = colorAttrs.defaultLine; module.exports = { carpet: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'An identifier for this carpet, so that `scattercarpet` and', @@ -56,7 +55,6 @@ module.exports = { a0: { valType: 'number', dflt: 0, - role: 'info', editType: 'calc', description: [ 'Alternate to `a`.', @@ -68,7 +66,6 @@ module.exports = { da: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', description: [ 'Sets the a coordinate step.', @@ -83,7 +80,6 @@ module.exports = { b0: { valType: 'number', dflt: 0, - role: 'info', editType: 'calc', description: [ 'Alternate to `b`.', @@ -95,7 +91,6 @@ module.exports = { db: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', description: [ 'Sets the b coordinate step.', @@ -104,7 +99,6 @@ module.exports = { }, cheaterslope: { valType: 'number', - role: 'info', dflt: 1, editType: 'calc', description: [ @@ -118,7 +112,6 @@ module.exports = { color: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'plot', description: [ 'Sets default for all colors associated with this axis', diff --git a/src/traces/carpet/axis_attributes.js b/src/traces/carpet/axis_attributes.js index 77ab539e830..986eaa470f1 100644 --- a/src/traces/carpet/axis_attributes.js +++ b/src/traces/carpet/axis_attributes.js @@ -19,7 +19,6 @@ var DATE_FORMAT_LINK = require('../../constants/docs').TIME_FORMAT_LINK; module.exports = { color: { valType: 'color', - role: 'style', editType: 'calc', description: [ 'Sets default for all colors associated with this axis', @@ -33,14 +32,12 @@ module.exports = { dflt: 1, min: 0, max: 1.3, - role: 'info', editType: 'calc' }, title: { text: { valType: 'string', dflt: '', - role: 'info', editType: 'calc', description: [ 'Sets the title of this axis.', @@ -60,7 +57,6 @@ module.exports = { // TODO how is this different than `title.standoff` offset: { valType: 'number', - role: 'info', dflt: 10, editType: 'calc', description: [ @@ -79,7 +75,6 @@ module.exports = { // to gd.data like the others are. values: ['-', 'linear', 'date', 'category'], dflt: '-', - role: 'info', editType: 'calc', description: [ 'Sets the axis type.', @@ -93,7 +88,6 @@ module.exports = { valType: 'enumerated', values: [true, false, 'reversed'], dflt: true, - role: 'style', editType: 'calc', description: [ 'Determines whether or not the range of this axis is', @@ -106,7 +100,6 @@ module.exports = { valType: 'enumerated', values: ['normal', 'tozero', 'nonnegative'], dflt: 'normal', - role: 'style', editType: 'calc', description: [ 'If *normal*, the range is computed in relation to the extrema', @@ -119,7 +112,6 @@ module.exports = { }, range: { valType: 'info_array', - role: 'info', editType: 'calc', items: [ {valType: 'any', editType: 'calc'}, @@ -142,7 +134,6 @@ module.exports = { fixedrange: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'Determines whether or not this axis is zoom-able.', @@ -153,21 +144,18 @@ module.exports = { valType: 'enumerated', values: ['index', 'value'], dflt: 'value', - role: 'info', editType: 'calc' }, tickmode: { valType: 'enumerated', values: ['linear', 'array'], dflt: 'array', - role: 'info', editType: 'calc' }, nticks: { valType: 'integer', min: 0, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Specifies the maximum number of ticks for the particular axis.', @@ -198,7 +186,6 @@ module.exports = { valType: 'enumerated', values: ['start', 'end', 'both', 'none'], dflt: 'start', - role: 'style', editType: 'calc', description: [ 'Determines whether axis labels are drawn on the low side,', @@ -212,7 +199,6 @@ module.exports = { tickangle: { valType: 'angle', dflt: 'auto', - role: 'style', editType: 'calc', description: [ 'Sets the angle of the tick labels with respect to the horizontal.', @@ -223,7 +209,6 @@ module.exports = { tickprefix: { valType: 'string', dflt: '', - role: 'style', editType: 'calc', description: 'Sets a tick label prefix.' }, @@ -231,7 +216,6 @@ module.exports = { valType: 'enumerated', values: ['all', 'first', 'last', 'none'], dflt: 'all', - role: 'style', editType: 'calc', description: [ 'If *all*, all tick labels are displayed with a prefix.', @@ -243,7 +227,6 @@ module.exports = { ticksuffix: { valType: 'string', dflt: '', - role: 'style', editType: 'calc', description: 'Sets a tick label suffix.' }, @@ -251,7 +234,6 @@ module.exports = { valType: 'enumerated', values: ['all', 'first', 'last', 'none'], dflt: 'all', - role: 'style', editType: 'calc', description: 'Same as `showtickprefix` but for tick suffixes.' }, @@ -259,7 +241,6 @@ module.exports = { valType: 'enumerated', values: ['all', 'first', 'last', 'none'], dflt: 'all', - role: 'style', editType: 'calc', description: [ 'If *all*, all exponents are shown besides their significands.', @@ -272,7 +253,6 @@ module.exports = { valType: 'enumerated', values: ['none', 'e', 'E', 'power', 'SI', 'B'], dflt: 'B', - role: 'style', editType: 'calc', description: [ 'Determines a formatting rule for the tick exponents.', @@ -289,7 +269,6 @@ module.exports = { valType: 'number', dflt: 3, min: 0, - role: 'style', editType: 'calc', description: [ 'Hide SI prefix for 10^n if |n| is below this number' @@ -298,7 +277,6 @@ module.exports = { separatethousands: { valType: 'boolean', dflt: false, - role: 'style', editType: 'calc', description: [ 'If "true", even 4-digit integers are separated' @@ -307,7 +285,6 @@ module.exports = { tickformat: { valType: 'string', dflt: '', - role: 'style', editType: 'calc', description: [ 'Sets the tick label formatting rule using d3 formatting mini-languages', @@ -328,7 +305,6 @@ module.exports = { /* , 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later ], dflt: 'trace', - role: 'info', editType: 'calc', description: [ 'Specifies the ordering logic for the case of categorical variables.', @@ -344,7 +320,6 @@ module.exports = { }, categoryarray: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the order in which categories on this axis appear.', @@ -354,21 +329,18 @@ module.exports = { }, labelpadding: { valType: 'integer', - role: 'style', dflt: 10, editType: 'calc', description: 'Extra padding between label and the axis' }, labelprefix: { valType: 'string', - role: 'style', editType: 'calc', description: 'Sets a axis label prefix.' }, labelsuffix: { valType: 'string', dflt: '', - role: 'style', editType: 'calc', description: 'Sets a axis label suffix.' }, @@ -376,7 +348,6 @@ module.exports = { showline: { valType: 'boolean', dflt: false, - role: 'style', editType: 'calc', description: [ 'Determines whether or not a line bounding this axis is drawn.' @@ -385,7 +356,6 @@ module.exports = { linecolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'style', editType: 'calc', description: 'Sets the axis line color.' }, @@ -393,13 +363,11 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'calc', description: 'Sets the width (in px) of the axis line.' }, gridcolor: { valType: 'color', - role: 'style', editType: 'calc', description: 'Sets the axis line color.' }, @@ -407,13 +375,11 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'calc', description: 'Sets the width (in px) of the axis line.' }, showgrid: { valType: 'boolean', - role: 'style', dflt: true, editType: 'calc', description: [ @@ -425,7 +391,6 @@ module.exports = { valType: 'integer', min: 0, dflt: 0, - role: 'info', editType: 'calc', description: 'Sets the number of minor grid ticks per major grid tick' }, @@ -433,20 +398,17 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'style', editType: 'calc', description: 'Sets the width (in px) of the grid lines.' }, minorgridcolor: { valType: 'color', dflt: colorAttrs.lightLine, - role: 'style', editType: 'calc', description: 'Sets the color of the grid lines.' }, startline: { valType: 'boolean', - role: 'style', editType: 'calc', description: [ 'Determines whether or not a line is drawn at along the starting value', @@ -456,20 +418,17 @@ module.exports = { }, startlinecolor: { valType: 'color', - role: 'style', editType: 'calc', description: 'Sets the line color of the start line.' }, startlinewidth: { valType: 'number', dflt: 1, - role: 'style', editType: 'calc', description: 'Sets the width (in px) of the start line.' }, endline: { valType: 'boolean', - role: 'style', editType: 'calc', description: [ 'Determines whether or not a line is drawn at along the final value', @@ -480,13 +439,11 @@ module.exports = { endlinewidth: { valType: 'number', dflt: 1, - role: 'style', editType: 'calc', description: 'Sets the width (in px) of the end line.' }, endlinecolor: { valType: 'color', - role: 'style', editType: 'calc', description: 'Sets the line color of the end line.' }, @@ -494,7 +451,6 @@ module.exports = { valType: 'number', min: 0, dflt: 0, - role: 'info', editType: 'calc', description: 'The starting index of grid lines along the axis' }, @@ -502,7 +458,6 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'info', editType: 'calc', description: 'The stride between grid lines along the axis' }, @@ -510,7 +465,6 @@ module.exports = { valType: 'integer', min: 0, dflt: 0, - role: 'info', editType: 'calc', description: 'The starting index of grid lines along the axis' }, @@ -518,7 +472,6 @@ module.exports = { valType: 'integer', min: 1, dflt: 1, - role: 'info', editType: 'calc', description: 'The stride between grid lines along the axis' }, @@ -526,7 +479,6 @@ module.exports = { _deprecated: { title: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'Deprecated in favor of `title.text`.', @@ -540,7 +492,6 @@ module.exports = { }), titleoffset: { valType: 'number', - role: 'info', dflt: 10, editType: 'calc', description: 'Deprecated in favor of `title.offset`.' diff --git a/src/traces/choropleth/attributes.js b/src/traces/choropleth/attributes.js index bfa4177286e..f6e52d4d579 100644 --- a/src/traces/choropleth/attributes.js +++ b/src/traces/choropleth/attributes.js @@ -66,7 +66,6 @@ module.exports = extendFlat({ min: 0, max: 1, dflt: 1, - role: 'style', editType: 'style', description: 'Sets the opacity of the locations.' }, diff --git a/src/traces/choroplethmapbox/attributes.js b/src/traces/choroplethmapbox/attributes.js index 8aec0b9d56a..f88c90c80e9 100644 --- a/src/traces/choroplethmapbox/attributes.js +++ b/src/traces/choroplethmapbox/attributes.js @@ -41,7 +41,6 @@ module.exports = extendFlat({ geojson: { valType: 'any', - role: 'info', editType: 'calc', description: [ 'Sets the GeoJSON data associated with this trace.', @@ -68,7 +67,6 @@ module.exports = extendFlat({ // see https://codepen.io/etpinard/pen/ydVMwM for full list below: { valType: 'string', - role: 'info', editType: 'plot', description: [ 'Determines if the choropleth polygons will be inserted', diff --git a/src/traces/cone/attributes.js b/src/traces/cone/attributes.js index 170e725549e..1eb14f2f1ff 100644 --- a/src/traces/cone/attributes.js +++ b/src/traces/cone/attributes.js @@ -18,7 +18,6 @@ var extendFlat = require('../../lib/extend').extendFlat; var attrs = { x: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the x coordinates of the vector field', @@ -27,7 +26,6 @@ var attrs = { }, y: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the y coordinates of the vector field', @@ -36,7 +34,6 @@ var attrs = { }, z: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the z coordinates of the vector field', @@ -107,7 +104,6 @@ var attrs = { sizemode: { valType: 'enumerated', values: ['scaled', 'absolute'], - role: 'info', editType: 'calc', dflt: 'scaled', description: [ @@ -118,7 +114,6 @@ var attrs = { }, sizeref: { valType: 'number', - role: 'info', editType: 'calc', min: 0, description: [ @@ -135,7 +130,6 @@ var attrs = { anchor: { valType: 'enumerated', - role: 'info', editType: 'calc', values: ['tip', 'tail', 'cm', 'center'], dflt: 'cm', @@ -148,7 +142,6 @@ var attrs = { text: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', @@ -160,7 +153,6 @@ var attrs = { }, hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', diff --git a/src/traces/contour/attributes.js b/src/traces/contour/attributes.js index b39d7ca4615..0dd9da8bbe8 100644 --- a/src/traces/contour/attributes.js +++ b/src/traces/contour/attributes.js @@ -60,7 +60,6 @@ module.exports = extendFlat({ fillcolor: { valType: 'color', - role: 'style', editType: 'calc', description: [ 'Sets the fill color if `contours.type` is *constraint*.', @@ -72,7 +71,6 @@ module.exports = extendFlat({ autocontour: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc', impliedEdits: { 'contours.start': undefined, @@ -90,7 +88,6 @@ module.exports = extendFlat({ valType: 'integer', dflt: 15, min: 1, - role: 'style', editType: 'calc', description: [ 'Sets the maximum number of contour levels. The actual number', @@ -106,7 +103,6 @@ module.exports = extendFlat({ valType: 'enumerated', values: ['levels', 'constraint'], dflt: 'levels', - role: 'info', editType: 'calc', description: [ 'If `levels`, the data is represented as a contour plot with multiple', @@ -118,7 +114,6 @@ module.exports = extendFlat({ start: { valType: 'number', dflt: null, - role: 'style', editType: 'plot', impliedEdits: {'^autocontour': false}, description: [ @@ -129,7 +124,6 @@ module.exports = extendFlat({ end: { valType: 'number', dflt: null, - role: 'style', editType: 'plot', impliedEdits: {'^autocontour': false}, description: [ @@ -141,7 +135,6 @@ module.exports = extendFlat({ valType: 'number', dflt: null, min: 0, - role: 'style', editType: 'plot', impliedEdits: {'^autocontour': false}, description: [ @@ -153,7 +146,6 @@ module.exports = extendFlat({ valType: 'enumerated', values: ['fill', 'heatmap', 'lines', 'none'], dflt: 'fill', - role: 'style', editType: 'calc', description: [ 'Determines the coloring method showing the contour values.', @@ -167,7 +159,6 @@ module.exports = extendFlat({ showlines: { valType: 'boolean', dflt: true, - role: 'style', editType: 'plot', description: [ 'Determines whether or not the contour lines are drawn.', @@ -177,7 +168,6 @@ module.exports = extendFlat({ showlabels: { valType: 'boolean', dflt: false, - role: 'style', editType: 'plot', description: [ 'Determines whether to label the contour lines with their values.' @@ -195,7 +185,6 @@ module.exports = extendFlat({ labelformat: { valType: 'string', dflt: '', - role: 'style', editType: 'plot', description: [ 'Sets the contour label formatting rule using d3 formatting', @@ -206,7 +195,6 @@ module.exports = extendFlat({ operation: { valType: 'enumerated', values: [].concat(COMPARISON_OPS2).concat(INTERVAL_OPS), - role: 'info', dflt: '=', editType: 'calc', description: [ @@ -229,7 +217,6 @@ module.exports = extendFlat({ value: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc', description: [ 'Sets the value or values of the constraint boundary.', @@ -259,7 +246,6 @@ module.exports = extendFlat({ width: { valType: 'number', min: 0, - role: 'style', editType: 'style+colorbars', description: [ 'Sets the contour line width in (in px)', diff --git a/src/traces/contourcarpet/attributes.js b/src/traces/contourcarpet/attributes.js index 2b33720f87c..4cd65644958 100644 --- a/src/traces/contourcarpet/attributes.js +++ b/src/traces/contourcarpet/attributes.js @@ -19,7 +19,6 @@ var contourContourAttrs = contourAttrs.contours; module.exports = extendFlat({ carpet: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'The `carpet` of the carpet axes on which this contour trace lies' @@ -53,7 +52,6 @@ module.exports = extendFlat({ valType: 'enumerated', values: ['fill', 'lines', 'none'], dflt: 'fill', - role: 'style', editType: 'calc', description: [ 'Determines the coloring method showing the contour values.', diff --git a/src/traces/densitymapbox/attributes.js b/src/traces/densitymapbox/attributes.js index eb56a4b9f33..e3484a21195 100644 --- a/src/traces/densitymapbox/attributes.js +++ b/src/traces/densitymapbox/attributes.js @@ -53,7 +53,6 @@ module.exports = extendFlat({ radius: { valType: 'number', - role: 'info', editType: 'plot', arrayOk: true, min: 1, @@ -66,7 +65,6 @@ module.exports = extendFlat({ below: { valType: 'string', - role: 'info', editType: 'plot', description: [ 'Determines if the densitymapbox trace will be inserted', diff --git a/src/traces/funnel/attributes.js b/src/traces/funnel/attributes.js index 4ff7e0fe633..0f938b74790 100644 --- a/src/traces/funnel/attributes.js +++ b/src/traces/funnel/attributes.js @@ -45,7 +45,6 @@ module.exports = { valType: 'flaglist', flags: ['label', 'text', 'percent initial', 'percent previous', 'percent total', 'value'], extras: ['none'], - role: 'info', editType: 'plot', arrayOk: false, description: [ @@ -89,7 +88,6 @@ module.exports = { connector: { fillcolor: { valType: 'color', - role: 'style', editType: 'style', description: [ 'Sets the fill color.' @@ -107,7 +105,6 @@ module.exports = { visible: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: [ 'Determines if connector regions and lines are drawn.' diff --git a/src/traces/funnel/layout_attributes.js b/src/traces/funnel/layout_attributes.js index 826df1fc176..20dfbecb8f0 100644 --- a/src/traces/funnel/layout_attributes.js +++ b/src/traces/funnel/layout_attributes.js @@ -13,7 +13,6 @@ module.exports = { valType: 'enumerated', values: ['stack', 'group', 'overlay'], dflt: 'stack', - role: 'info', editType: 'calc', description: [ 'Determines how bars at the same location coordinate', @@ -29,7 +28,6 @@ module.exports = { valType: 'number', min: 0, max: 1, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between bars of', @@ -41,7 +39,6 @@ module.exports = { min: 0, max: 1, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between bars of', diff --git a/src/traces/funnelarea/attributes.js b/src/traces/funnelarea/attributes.js index b602f06a454..24d9a751e62 100644 --- a/src/traces/funnelarea/attributes.js +++ b/src/traces/funnelarea/attributes.js @@ -88,7 +88,6 @@ module.exports = { aspectratio: { valType: 'number', - role: 'info', min: 0, dflt: 1, editType: 'plot', @@ -99,7 +98,6 @@ module.exports = { baseratio: { valType: 'number', - role: 'info', min: 0, max: 1, dflt: 0.333, diff --git a/src/traces/funnelarea/layout_attributes.js b/src/traces/funnelarea/layout_attributes.js index af46d270e85..520eb0ab82a 100644 --- a/src/traces/funnelarea/layout_attributes.js +++ b/src/traces/funnelarea/layout_attributes.js @@ -15,7 +15,6 @@ module.exports = { funnelareacolorway: { valType: 'colorlist', - role: 'style', editType: 'calc', description: [ 'Sets the default funnelarea slice colors. Defaults to the main', @@ -27,7 +26,6 @@ module.exports = { extendfunnelareacolors: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc', description: [ 'If `true`, the funnelarea slice colors (whether given by `funnelareacolorway` or', diff --git a/src/traces/heatmap/attributes.js b/src/traces/heatmap/attributes.js index a21a56d2120..820ee96df14 100644 --- a/src/traces/heatmap/attributes.js +++ b/src/traces/heatmap/attributes.js @@ -49,14 +49,12 @@ module.exports = extendFlat({ transpose: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: 'Transposes the z data.' }, xtype: { valType: 'enumerated', values: ['array', 'scaled'], - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'If *array*, the heatmap\'s x coordinates are given by *x*', @@ -68,7 +66,6 @@ module.exports = extendFlat({ ytype: { valType: 'enumerated', values: ['array', 'scaled'], - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'If *array*, the heatmap\'s y coordinates are given by *y*', @@ -81,7 +78,6 @@ module.exports = extendFlat({ valType: 'enumerated', values: ['fast', 'best', false], dflt: false, - role: 'style', editType: 'calc', description: [ 'Picks a smoothing algorithm use to smooth `z` data.' @@ -90,7 +86,6 @@ module.exports = extendFlat({ hoverongaps: { valType: 'boolean', dflt: true, - role: 'style', editType: 'none', description: [ 'Determines whether or not gaps', @@ -100,7 +95,6 @@ module.exports = extendFlat({ }, connectgaps: { valType: 'boolean', - role: 'info', editType: 'calc', description: [ 'Determines whether or not gaps', @@ -115,7 +109,6 @@ module.exports = extendFlat({ valType: 'number', dflt: 0, min: 0, - role: 'style', editType: 'plot', description: 'Sets the horizontal gap (in pixels) between bricks.' }, @@ -123,14 +116,12 @@ module.exports = extendFlat({ valType: 'number', dflt: 0, min: 0, - role: 'style', editType: 'plot', description: 'Sets the vertical gap (in pixels) between bricks.' }, zhoverformat: { valType: 'string', dflt: '', - role: 'style', editType: 'none', description: [ 'Sets the hover text formatting rule using d3 formatting mini-languages', diff --git a/src/traces/heatmapgl/attributes.js b/src/traces/heatmapgl/attributes.js index b78f17ab812..812bb18ff27 100644 --- a/src/traces/heatmapgl/attributes.js +++ b/src/traces/heatmapgl/attributes.js @@ -33,7 +33,6 @@ attrs.zsmooth = { valType: 'enumerated', values: ['fast', false], dflt: 'fast', - role: 'style', editType: 'calc', description: 'Picks a smoothing algorithm use to smooth `z` data.' }; diff --git a/src/traces/histogram/attributes.js b/src/traces/histogram/attributes.js index 44a3c6d473d..ddbdd67b38f 100644 --- a/src/traces/histogram/attributes.js +++ b/src/traces/histogram/attributes.js @@ -46,7 +46,6 @@ module.exports = { histfunc: { valType: 'enumerated', values: ['count', 'sum', 'avg', 'min', 'max'], - role: 'style', dflt: 'count', editType: 'calc', description: [ @@ -65,7 +64,6 @@ module.exports = { valType: 'enumerated', values: ['', 'percent', 'probability', 'density', 'probability density'], dflt: '', - role: 'style', editType: 'calc', description: [ 'Specifies the type of normalization used for this histogram trace.', @@ -93,7 +91,6 @@ module.exports = { enabled: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'If true, display the cumulative distribution by summing the', @@ -111,7 +108,6 @@ module.exports = { valType: 'enumerated', values: ['increasing', 'decreasing'], dflt: 'increasing', - role: 'info', editType: 'calc', description: [ 'Only applies if cumulative is enabled.', @@ -125,7 +121,6 @@ module.exports = { valType: 'enumerated', values: ['include', 'exclude', 'half'], dflt: 'include', - role: 'info', editType: 'calc', description: [ 'Only applies if cumulative is enabled.', @@ -143,7 +138,6 @@ module.exports = { valType: 'integer', min: 0, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Specifies the maximum number of desired bins. This value will be used', @@ -158,7 +152,6 @@ module.exports = { valType: 'integer', min: 0, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Specifies the maximum number of desired bins. This value will be used', @@ -171,7 +164,6 @@ module.exports = { autobinx: { valType: 'boolean', dflt: null, - role: 'style', editType: 'calc', description: [ 'Obsolete: since v1.42 each bin attribute is auto-determined', @@ -183,7 +175,6 @@ module.exports = { autobiny: { valType: 'boolean', dflt: null, - role: 'style', editType: 'calc', description: [ 'Obsolete: since v1.42 each bin attribute is auto-determined', @@ -195,7 +186,6 @@ module.exports = { bingroup: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ diff --git a/src/traces/histogram/bin_attributes.js b/src/traces/histogram/bin_attributes.js index de67b0a6c75..e6cdd1342b3 100644 --- a/src/traces/histogram/bin_attributes.js +++ b/src/traces/histogram/bin_attributes.js @@ -12,7 +12,6 @@ module.exports = function makeBinAttrs(axLetter, match) { return { start: { valType: 'any', // for date axes - role: 'style', editType: 'calc', description: [ 'Sets the starting value for the', axLetter, @@ -36,7 +35,6 @@ module.exports = function makeBinAttrs(axLetter, match) { }, end: { valType: 'any', // for date axes - role: 'style', editType: 'calc', description: [ 'Sets the end value for the', axLetter, @@ -49,7 +47,6 @@ module.exports = function makeBinAttrs(axLetter, match) { }, size: { valType: 'any', // for date axes - role: 'style', editType: 'calc', description: [ 'Sets the size of each', axLetter, 'axis bin.', diff --git a/src/traces/image/attributes.js b/src/traces/image/attributes.js index e144e029d28..3961fa8907d 100644 --- a/src/traces/image/attributes.js +++ b/src/traces/image/attributes.js @@ -25,7 +25,6 @@ for(var i = 0; i < cm.length; i++) { module.exports = extendFlat({ source: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'Specifies the data URI of the image to be visualized.', @@ -34,7 +33,6 @@ module.exports = extendFlat({ }, z: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color.', @@ -43,7 +41,6 @@ module.exports = extendFlat({ colormodel: { valType: 'enumerated', values: cm, - role: 'info', editType: 'calc', description: [ 'Color model used to map the numerical color components described in `z` into colors.', @@ -55,7 +52,6 @@ module.exports = extendFlat({ valType: 'enumerated', values: ['fast', false], dflt: false, - role: 'info', editType: 'plot', description: [ 'Picks a smoothing algorithm used to smooth `z` data.', @@ -70,7 +66,6 @@ module.exports = extendFlat({ {valType: 'number', editType: 'calc'}, {valType: 'number', editType: 'calc'} ], - role: 'info', editType: 'calc', description: [ 'Array defining the lower bound for each color component.', @@ -86,7 +81,6 @@ module.exports = extendFlat({ {valType: 'number', editType: 'calc'}, {valType: 'number', editType: 'calc'} ], - role: 'info', editType: 'calc', description: [ 'Array defining the higher bound for each color component.', @@ -97,28 +91,24 @@ module.exports = extendFlat({ x0: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc+clearAxisTypes', description: 'Set the image\'s x position.' }, y0: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc+clearAxisTypes', description: 'Set the image\'s y position.' }, dx: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', description: 'Set the pixel\'s horizontal size.' }, dy: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', description: 'Set the pixel\'s vertical size' }, diff --git a/src/traces/indicator/attributes.js b/src/traces/indicator/attributes.js index 32aca59f95a..4496eb70956 100644 --- a/src/traces/indicator/attributes.js +++ b/src/traces/indicator/attributes.js @@ -28,7 +28,6 @@ var gaugeBarAttrs = { color: { valType: 'color', editType: 'plot', - role: 'info', description: [ 'Sets the background color of the arc.' ].join(' ') @@ -36,7 +35,6 @@ var gaugeBarAttrs = { line: { color: { valType: 'color', - role: 'info', dflt: colorAttrs.defaultLine, editType: 'plot', description: [ @@ -45,7 +43,6 @@ var gaugeBarAttrs = { }, width: { valType: 'number', - role: 'info', min: 0, dflt: 0, editType: 'plot', @@ -57,7 +54,6 @@ var gaugeBarAttrs = { }, thickness: { valType: 'number', - role: 'info', min: 0, max: 1, dflt: 1, @@ -71,7 +67,6 @@ var gaugeBarAttrs = { var rangeAttr = { valType: 'info_array', - role: 'info', items: [ {valType: 'number', editType: 'plot'}, {valType: 'number', editType: 'plot'} @@ -100,7 +95,6 @@ module.exports = { mode: { valType: 'flaglist', editType: 'calc', - role: 'info', flags: ['number', 'delta', 'gauge'], dflt: 'number', description: [ @@ -113,7 +107,6 @@ module.exports = { value: { valType: 'number', editType: 'calc', - role: 'info', anim: true, description: [ 'Sets the number to be displayed.' @@ -122,7 +115,6 @@ module.exports = { align: { valType: 'enumerated', values: ['left', 'center', 'right'], - role: 'info', editType: 'plot', description: [ 'Sets the horizontal alignment of the `text` within the box.', @@ -136,7 +128,6 @@ module.exports = { title: { text: { valType: 'string', - role: 'info', editType: 'plot', description: [ 'Sets the title of this indicator.' @@ -145,7 +136,6 @@ module.exports = { align: { valType: 'enumerated', values: ['left', 'center', 'right'], - role: 'info', editType: 'plot', description: [ 'Sets the horizontal alignment of the title.', @@ -164,7 +154,6 @@ module.exports = { valueformat: { valType: 'string', dflt: '', - role: 'info', editType: 'plot', description: [ 'Sets the value formatting rule using d3 formatting mini-language', @@ -180,7 +169,6 @@ module.exports = { prefix: { valType: 'string', dflt: '', - role: 'info', editType: 'plot', description: [ 'Sets a prefix appearing before the number.' @@ -189,7 +177,6 @@ module.exports = { suffix: { valType: 'string', dflt: '', - role: 'info', editType: 'plot', description: [ 'Sets a suffix appearing next to the number.' @@ -200,7 +187,6 @@ module.exports = { delta: { reference: { valType: 'number', - role: 'info', editType: 'calc', description: [ 'Sets the reference value to compute the delta.', @@ -210,7 +196,6 @@ module.exports = { position: { valType: 'enumerated', values: ['top', 'bottom', 'left', 'right'], - role: 'info', dflt: 'bottom', editType: 'plot', description: [ @@ -220,7 +205,6 @@ module.exports = { relative: { valType: 'boolean', editType: 'plot', - role: 'info', dflt: false, description: [ 'Show relative change' @@ -228,7 +212,6 @@ module.exports = { }, valueformat: { valType: 'string', - role: 'info', editType: 'plot', description: [ 'Sets the value formatting rule using d3 formatting mini-language', @@ -239,7 +222,6 @@ module.exports = { increasing: { symbol: { valType: 'string', - role: 'info', dflt: delta.INCREASING.SYMBOL, editType: 'plot', description: [ @@ -248,7 +230,6 @@ module.exports = { }, color: { valType: 'color', - role: 'info', dflt: delta.INCREASING.COLOR, editType: 'plot', description: [ @@ -261,7 +242,6 @@ module.exports = { decreasing: { symbol: { valType: 'string', - role: 'info', dflt: delta.DECREASING.SYMBOL, editType: 'plot', description: [ @@ -270,7 +250,6 @@ module.exports = { }, color: { valType: 'color', - role: 'info', dflt: delta.DECREASING.COLOR, editType: 'plot', description: [ @@ -291,7 +270,6 @@ module.exports = { shape: { valType: 'enumerated', editType: 'plot', - role: 'info', dflt: 'angular', values: ['angular', 'bullet'], description: [ @@ -307,14 +285,12 @@ module.exports = { // Background of the gauge bgcolor: { valType: 'color', - role: 'info', editType: 'plot', description: 'Sets the gauge background color.' }, bordercolor: { valType: 'color', dflt: colorAttrs.defaultLine, - role: 'info', editType: 'plot', description: 'Sets the color of the border enclosing the gauge.' }, @@ -322,7 +298,6 @@ module.exports = { valType: 'number', min: 0, dflt: 1, - role: 'info', editType: 'plot', description: 'Sets the width (in px) of the border enclosing the gauge.' }, @@ -386,7 +361,6 @@ module.exports = { valType: 'number', editType: 'calc', dflt: false, - role: 'info', description: [ 'Sets a treshold value drawn as a line.' ].join(' ') diff --git a/src/traces/isosurface/attributes.js b/src/traces/isosurface/attributes.js index 2449067bd30..55a13426c88 100644 --- a/src/traces/isosurface/attributes.js +++ b/src/traces/isosurface/attributes.js @@ -20,7 +20,6 @@ function makeSliceAttr(axLetter) { return { show: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Determines whether or not slice planes about the', axLetter, @@ -30,7 +29,6 @@ function makeSliceAttr(axLetter) { locations: { valType: 'data_array', dflt: [], - role: 'info', description: [ 'Specifies the location(s) of slices on the axis.', 'When not specified slices would be created for', @@ -39,7 +37,6 @@ function makeSliceAttr(axLetter) { }, fill: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, @@ -57,7 +54,6 @@ function makeCapAttr(axLetter) { return { show: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Sets the fill ratio of the `slices`. The default fill value of the', axLetter, @@ -68,7 +64,6 @@ function makeCapAttr(axLetter) { }, fill: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, @@ -85,42 +80,36 @@ function makeCapAttr(axLetter) { var attrs = module.exports = overrideAll(extendFlat({ x: { valType: 'data_array', - role: 'info', description: [ 'Sets the X coordinates of the vertices on X axis.' ].join(' ') }, y: { valType: 'data_array', - role: 'info', description: [ 'Sets the Y coordinates of the vertices on Y axis.' ].join(' ') }, z: { valType: 'data_array', - role: 'info', description: [ 'Sets the Z coordinates of the vertices on Z axis.' ].join(' ') }, value: { valType: 'data_array', - role: 'info', description: [ 'Sets the 4th dimension (value) of the vertices.' ].join(' ') }, isomin: { valType: 'number', - role: 'info', description: [ 'Sets the minimum boundary for iso-surface plot.' ].join(' ') }, isomax: { valType: 'number', - role: 'info', description: [ 'Sets the maximum boundary for iso-surface plot.' ].join(' ') @@ -129,7 +118,6 @@ var attrs = module.exports = overrideAll(extendFlat({ surface: { show: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Hides/displays surfaces between minimum and maximum iso-values.' @@ -137,7 +125,6 @@ var attrs = module.exports = overrideAll(extendFlat({ }, count: { valType: 'integer', - role: 'info', dflt: 2, min: 1, description: [ @@ -148,7 +135,6 @@ var attrs = module.exports = overrideAll(extendFlat({ }, fill: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, @@ -164,7 +150,6 @@ var attrs = module.exports = overrideAll(extendFlat({ flags: ['A', 'B', 'C', 'D', 'E'], extras: ['all', 'odd', 'even'], dflt: 'all', - role: 'style', description: [ 'Sets the surface pattern of the iso-surface 3-D sections. The default pattern of', 'the surface is `all` meaning that the rest of surface elements would be shaded.', @@ -179,7 +164,6 @@ var attrs = module.exports = overrideAll(extendFlat({ spaceframe: { show: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Displays/hides tetrahedron shapes between minimum and', @@ -189,7 +173,6 @@ var attrs = module.exports = overrideAll(extendFlat({ }, fill: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 0.15, @@ -216,7 +199,6 @@ var attrs = module.exports = overrideAll(extendFlat({ text: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, description: [ @@ -227,7 +209,6 @@ var attrs = module.exports = overrideAll(extendFlat({ }, hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, description: 'Same as `text`.' diff --git a/src/traces/mesh3d/attributes.js b/src/traces/mesh3d/attributes.js index 99c89909e0b..284becb001b 100644 --- a/src/traces/mesh3d/attributes.js +++ b/src/traces/mesh3d/attributes.js @@ -79,7 +79,6 @@ module.exports = extendFlat({ text: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', @@ -91,7 +90,6 @@ module.exports = extendFlat({ }, hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', @@ -101,7 +99,6 @@ module.exports = extendFlat({ delaunayaxis: { valType: 'enumerated', - role: 'info', values: [ 'x', 'y', 'z' ], dflt: 'z', editType: 'calc', @@ -115,7 +112,6 @@ module.exports = extendFlat({ alphahull: { valType: 'number', - role: 'style', dflt: -1, editType: 'calc', description: [ @@ -154,7 +150,6 @@ module.exports = extendFlat({ values: ['vertex', 'cell'], dflt: 'vertex', editType: 'calc', - role: 'info', description: [ 'Determines the source of `intensity` values.' ].join(' ') @@ -163,13 +158,11 @@ module.exports = extendFlat({ // Color field color: { valType: 'color', - role: 'style', editType: 'calc', description: 'Sets the color of the whole mesh' }, vertexcolor: { valType: 'data_array', - role: 'style', editType: 'calc', description: [ 'Sets the color of each vertex', @@ -181,7 +174,6 @@ module.exports = extendFlat({ }, facecolor: { valType: 'data_array', - role: 'style', editType: 'calc', description: [ 'Sets the color of each face', @@ -201,7 +193,6 @@ colorScaleAttrs('', { // Flat shaded mode flatshading: { valType: 'boolean', - role: 'style', dflt: false, editType: 'calc', description: [ @@ -230,7 +221,6 @@ colorScaleAttrs('', { lighting: extendFlat({ vertexnormalsepsilon: { valType: 'number', - role: 'style', min: 0.00, max: 1, dflt: 1e-12, // otherwise finely tessellated things eg. the brain will have no specular light reflection @@ -239,7 +229,6 @@ colorScaleAttrs('', { }, facenormalsepsilon: { valType: 'number', - role: 'style', min: 0.00, max: 1, dflt: 1e-6, // even the brain model doesn't appear to need finer than this diff --git a/src/traces/ohlc/attributes.js b/src/traces/ohlc/attributes.js index 90c660f8e2a..b2262b76062 100644 --- a/src/traces/ohlc/attributes.js +++ b/src/traces/ohlc/attributes.js @@ -97,7 +97,6 @@ module.exports = { text: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', @@ -111,7 +110,6 @@ module.exports = { }, hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', @@ -123,7 +121,6 @@ module.exports = { min: 0, max: 0.5, dflt: 0.3, - role: 'style', editType: 'calc', description: [ 'Sets the width of the open/close tick marks', @@ -134,7 +131,6 @@ module.exports = { hoverlabel: extendFlat({}, fxAttrs.hoverlabel, { split: { valType: 'boolean', - role: 'info', dflt: false, editType: 'style', description: [ diff --git a/src/traces/parcats/attributes.js b/src/traces/parcats/attributes.js index 5830634c7a7..da7c4e4b5ed 100644 --- a/src/traces/parcats/attributes.js +++ b/src/traces/parcats/attributes.js @@ -23,7 +23,6 @@ var line = extendFlat( valType: 'enumerated', values: ['linear', 'hspline'], dflt: 'linear', - role: 'info', editType: 'plot', description: [ 'Sets the shape of the paths.', @@ -56,7 +55,6 @@ module.exports = { valType: 'enumerated', values: ['category', 'color', 'dimension'], dflt: 'category', - role: 'info', editType: 'plot', description: [ 'Sets the hover interaction mode for the parcats diagram.', @@ -84,7 +82,6 @@ module.exports = { valType: 'enumerated', values: ['perpendicular', 'freeform', 'fixed'], dflt: 'perpendicular', - role: 'style', editType: 'plot', description: [ 'Sets the drag interaction mode for categories and dimensions.', @@ -96,7 +93,6 @@ module.exports = { bundlecolors: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: 'Sort paths so that like colors are bundled together within each category.' }, @@ -104,7 +100,6 @@ module.exports = { valType: 'enumerated', values: ['forward', 'backward'], dflt: 'forward', - role: 'info', editType: 'plot', description: [ 'Sets the path sorting algorithm.', @@ -126,7 +121,6 @@ module.exports = { _isLinkedToArray: 'dimension', label: { valType: 'string', - role: 'info', editType: 'calc', description: 'The shown name of the dimension.' }, @@ -136,7 +130,6 @@ module.exports = { 'trace', 'category ascending', 'category descending', 'array' ], dflt: 'trace', - role: 'info', editType: 'calc', description: [ 'Specifies the ordering logic for the categories in the dimension.', @@ -150,7 +143,6 @@ module.exports = { }, categoryarray: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets the order in which categories in this dimension appear.', @@ -160,7 +152,6 @@ module.exports = { }, ticktext: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Sets alternative tick labels for the categories in this dimension.', @@ -171,7 +162,6 @@ module.exports = { }, values: { valType: 'data_array', - role: 'info', dflt: [], editType: 'calc', description: [ @@ -182,7 +172,6 @@ module.exports = { }, displayindex: { valType: 'integer', - role: 'info', editType: 'calc', description: [ 'The display index of dimension, from left to right, zero indexed, defaults to dimension', @@ -194,7 +183,6 @@ module.exports = { visible: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: 'Shows the dimension when set to `true` (the default). Hides the dimension for `false`.' } @@ -206,7 +194,6 @@ module.exports = { min: 0, dflt: 1, arrayOk: true, - role: 'info', editType: 'calc', description: [ 'The number of observations represented by each state. Defaults to 1 so that each state represents', diff --git a/src/traces/parcoords/attributes.js b/src/traces/parcoords/attributes.js index f0e48b7b673..3aef1c36e22 100644 --- a/src/traces/parcoords/attributes.js +++ b/src/traces/parcoords/attributes.js @@ -22,7 +22,6 @@ module.exports = { labelangle: { valType: 'angle', dflt: 0, - role: 'info', editType: 'plot', description: [ 'Sets the angle of the labels with respect to the horizontal.', @@ -34,7 +33,6 @@ module.exports = { labelside: { valType: 'enumerated', - role: 'info', values: ['top', 'bottom'], dflt: 'top', editType: 'plot', @@ -63,7 +61,6 @@ module.exports = { dimensions: templatedArray('dimension', { label: { valType: 'string', - role: 'info', editType: 'plot', description: 'The shown name of the dimension.' }, @@ -87,13 +84,11 @@ module.exports = { visible: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: 'Shows the dimension when set to `true` (the default). Hides the dimension for `false`.' }, range: { valType: 'info_array', - role: 'info', items: [ {valType: 'number', editType: 'plot'}, {valType: 'number', editType: 'plot'} @@ -106,7 +101,6 @@ module.exports = { }, constraintrange: { valType: 'info_array', - role: 'info', freeLength: true, dimensions: '1-2', items: [ @@ -123,13 +117,11 @@ module.exports = { multiselect: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: 'Do we allow multiple selection ranges or just a single range?' }, values: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'Dimension values. `values[n]` represents the value of the `n`th point in the dataset,', diff --git a/src/traces/pie/attributes.js b/src/traces/pie/attributes.js index ab14ca17a96..c163bd64b1f 100644 --- a/src/traces/pie/attributes.js +++ b/src/traces/pie/attributes.js @@ -39,7 +39,6 @@ module.exports = { // equivalent of x0 and dx, if label is missing label0: { valType: 'number', - role: 'info', dflt: 0, editType: 'calc', description: [ @@ -51,7 +50,6 @@ module.exports = { }, dlabel: { valType: 'number', - role: 'info', dflt: 1, editType: 'calc', description: 'Sets the label step. See `label0` for more info.' @@ -80,7 +78,6 @@ module.exports = { line: { color: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, arrayOk: true, editType: 'style', @@ -90,7 +87,6 @@ module.exports = { }, width: { valType: 'number', - role: 'style', min: 0, dflt: 0, arrayOk: true, @@ -117,7 +113,6 @@ module.exports = { }, hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'style', @@ -137,7 +132,6 @@ module.exports = { // 'of its own. but the point is the size of the whole pie is important.)' scalegroup: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ @@ -150,7 +144,6 @@ module.exports = { // labels (legend is handled by plots.attributes.showlegend and layout.hiddenlabels) textinfo: { valType: 'flaglist', - role: 'info', flags: ['label', 'text', 'value', 'percent'], extras: ['none'], editType: 'calc', @@ -169,7 +162,6 @@ module.exports = { }), textposition: { valType: 'enumerated', - role: 'info', values: ['inside', 'outside', 'auto', 'none'], dflt: 'auto', arrayOk: true, @@ -183,7 +175,6 @@ module.exports = { }), insidetextorientation: { valType: 'enumerated', - role: 'info', values: ['horizontal', 'radial', 'tangential', 'auto'], dflt: 'auto', editType: 'plot', @@ -206,7 +197,6 @@ module.exports = { automargin: { valType: 'boolean', dflt: false, - role: 'info', editType: 'plot', description: [ 'Determines whether outside text labels can push the margins.' @@ -217,7 +207,6 @@ module.exports = { text: { valType: 'string', dflt: '', - role: 'info', editType: 'plot', description: [ 'Sets the title of the chart.', @@ -241,7 +230,6 @@ module.exports = { 'middle center', 'bottom left', 'bottom center', 'bottom right' ], - role: 'info', editType: 'plot', description: [ 'Specifies the location of the `title`.', @@ -258,7 +246,6 @@ module.exports = { hole: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 0, @@ -272,7 +259,6 @@ module.exports = { // ordering and direction sort: { valType: 'boolean', - role: 'style', dflt: true, editType: 'calc', description: [ @@ -290,7 +276,6 @@ module.exports = { */ valType: 'enumerated', values: ['clockwise', 'counterclockwise'], - role: 'style', dflt: 'counterclockwise', editType: 'calc', description: [ @@ -300,7 +285,6 @@ module.exports = { }, rotation: { valType: 'number', - role: 'style', min: -360, max: 360, dflt: 0, @@ -313,7 +297,6 @@ module.exports = { pull: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 0, @@ -331,7 +314,6 @@ module.exports = { title: { valType: 'string', dflt: '', - role: 'info', editType: 'calc', description: [ 'Deprecated in favor of `title.text`.', @@ -349,7 +331,6 @@ module.exports = { 'middle center', 'bottom left', 'bottom center', 'bottom right' ], - role: 'info', editType: 'calc', description: 'Deprecated in favor of `title.position`.' } diff --git a/src/traces/pie/layout_attributes.js b/src/traces/pie/layout_attributes.js index 3fb826ea2fb..561d05d8ba3 100644 --- a/src/traces/pie/layout_attributes.js +++ b/src/traces/pie/layout_attributes.js @@ -11,7 +11,6 @@ module.exports = { hiddenlabels: { valType: 'data_array', - role: 'info', editType: 'calc', description: [ 'hiddenlabels is the funnelarea & pie chart analog of', @@ -22,7 +21,6 @@ module.exports = { }, piecolorway: { valType: 'colorlist', - role: 'style', editType: 'calc', description: [ 'Sets the default pie slice colors. Defaults to the main', @@ -34,7 +32,6 @@ module.exports = { extendpiecolors: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc', description: [ 'If `true`, the pie slice colors (whether given by `piecolorway` or', diff --git a/src/traces/sankey/attributes.js b/src/traces/sankey/attributes.js index 2b2c7a19b83..b9cc68e798f 100644 --- a/src/traces/sankey/attributes.js +++ b/src/traces/sankey/attributes.js @@ -41,14 +41,12 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: ['v', 'h'], dflt: 'h', - role: 'style', description: 'Sets the orientation of the Sankey diagram.' }, valueformat: { valType: 'string', dflt: '.3s', - role: 'style', description: [ 'Sets the value formatting rule using d3 formatting mini-language', 'which is similar to those of Python. See', @@ -59,7 +57,6 @@ var attrs = module.exports = overrideAll({ valuesuffix: { valType: 'string', dflt: '', - role: 'style', description: [ 'Adds a unit to follow the value in the hover tooltip. Add a space if a separation', 'is necessary from the value.' @@ -70,7 +67,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: ['snap', 'perpendicular', 'freeform', 'fixed'], dflt: 'snap', - role: 'style', description: [ 'If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to', 'preserve space between nodes specified via `nodepad`.', @@ -91,7 +87,6 @@ var attrs = module.exports = overrideAll({ label: { valType: 'data_array', dflt: [], - role: 'info', description: 'The shown name of the node.' }, groups: { @@ -101,7 +96,6 @@ var attrs = module.exports = overrideAll({ freeLength: true, dflt: [], items: {valType: 'number', editType: 'calc'}, - role: 'info', description: [ 'Groups of nodes.', 'Each group is defined by an array with the indices of the nodes it contains.', @@ -111,18 +105,15 @@ var attrs = module.exports = overrideAll({ x: { valType: 'data_array', dflt: [], - role: 'info', description: 'The normalized horizontal position of the node.' }, y: { valType: 'data_array', dflt: [], - role: 'info', description: 'The normalized vertical position of the node.' }, color: { valType: 'color', - role: 'style', arrayOk: true, description: [ 'Sets the `node` color. It can be a single value, or an array for specifying color for each `node`.', @@ -141,7 +132,6 @@ var attrs = module.exports = overrideAll({ line: { color: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, arrayOk: true, description: [ @@ -150,7 +140,6 @@ var attrs = module.exports = overrideAll({ }, width: { valType: 'number', - role: 'style', min: 0, dflt: 0.5, arrayOk: true, @@ -164,7 +153,6 @@ var attrs = module.exports = overrideAll({ arrayOk: false, min: 0, dflt: 20, - role: 'style', description: 'Sets the padding (in px) between the `nodes`.' }, thickness: { @@ -172,14 +160,12 @@ var attrs = module.exports = overrideAll({ arrayOk: false, min: 1, dflt: 20, - role: 'style', description: 'Sets the thickness (in px) of the `nodes`.' }, hoverinfo: { valType: 'enumerated', values: ['all', 'none', 'skip'], dflt: 'all', - role: 'info', description: [ 'Determines which trace information appear when hovering nodes.', 'If `none` or `skip` are set, no information is displayed upon hovering.', @@ -198,12 +184,10 @@ var attrs = module.exports = overrideAll({ label: { valType: 'data_array', dflt: [], - role: 'info', description: 'The shown name of the link.' }, color: { valType: 'color', - role: 'style', arrayOk: true, description: [ 'Sets the `link` color. It can be a single value, or an array for specifying color for each `link`.', @@ -220,7 +204,6 @@ var attrs = module.exports = overrideAll({ line: { color: { valType: 'color', - role: 'style', dflt: colorAttrs.defaultLine, arrayOk: true, description: [ @@ -229,7 +212,6 @@ var attrs = module.exports = overrideAll({ }, width: { valType: 'number', - role: 'style', min: 0, dflt: 0, arrayOk: true, @@ -240,27 +222,23 @@ var attrs = module.exports = overrideAll({ }, source: { valType: 'data_array', - role: 'info', dflt: [], description: 'An integer number `[0..nodes.length - 1]` that represents the source node.' }, target: { valType: 'data_array', - role: 'info', dflt: [], description: 'An integer number `[0..nodes.length - 1]` that represents the target node.' }, value: { valType: 'data_array', dflt: [], - role: 'info', description: 'A numeric value representing the flow volume value.' }, hoverinfo: { valType: 'enumerated', values: ['all', 'none', 'skip'], dflt: 'all', - role: 'info', description: [ 'Determines which trace information appear when hovering links.', 'If `none` or `skip` are set, no information is displayed upon hovering.', @@ -276,14 +254,12 @@ var attrs = module.exports = overrideAll({ editType: 'calc', label: { valType: 'string', - role: 'info', editType: 'calc', description: 'The label of the links to color based on their concentration within a flow.', dflt: '' }, cmax: { valType: 'number', - role: 'info', editType: 'calc', dflt: 1, description: [ @@ -292,7 +268,6 @@ var attrs = module.exports = overrideAll({ }, cmin: { valType: 'number', - role: 'info', editType: 'calc', dflt: 0, description: [ @@ -302,7 +277,6 @@ var attrs = module.exports = overrideAll({ colorscale: extendFlat(colorAttributes().colorscale, {dflt: [[0, 'white'], [1, 'black']]}) }), description: 'The links of the Sankey plot.', - role: 'info' } }, 'calc', 'nested'); attrs.transforms = undefined; diff --git a/src/traces/scatter/attributes.js b/src/traces/scatter/attributes.js index 7792e7cf046..6e8c63c198a 100644 --- a/src/traces/scatter/attributes.js +++ b/src/traces/scatter/attributes.js @@ -23,7 +23,6 @@ function axisPeriod(axis) { return { valType: 'any', dflt: 0, - role: 'info', editType: 'calc', description: [ 'Only relevant when the axis `type` is *date*.', @@ -37,7 +36,6 @@ function axisPeriod(axis) { function axisPeriod0(axis) { return { valType: 'any', - role: 'info', editType: 'calc', description: [ 'Only relevant when the axis `type` is *date*.', @@ -56,7 +54,6 @@ function axisPeriodAlignment(axis) { 'start', 'middle', 'end' ], dflt: 'middle', - role: 'style', editType: 'calc', description: [ 'Only relevant when the axis `type` is *date*.', @@ -75,7 +72,6 @@ module.exports = { x0: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc+clearAxisTypes', anim: true, description: [ @@ -88,7 +84,6 @@ module.exports = { dx: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', anim: true, description: [ @@ -105,7 +100,6 @@ module.exports = { y0: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc+clearAxisTypes', anim: true, description: [ @@ -118,7 +112,6 @@ module.exports = { dy: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', anim: true, description: [ @@ -136,7 +129,6 @@ module.exports = { stackgroup: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ @@ -155,7 +147,6 @@ module.exports = { }, orientation: { valType: 'enumerated', - role: 'info', values: ['v', 'h'], editType: 'calc', description: [ @@ -170,7 +161,6 @@ module.exports = { valType: 'enumerated', values: ['', 'fraction', 'percent'], dflt: '', - role: 'info', editType: 'calc', description: [ 'Only relevant when `stackgroup` is used, and only the first', @@ -188,7 +178,6 @@ module.exports = { valType: 'enumerated', values: ['infer zero', 'interpolate'], dflt: 'infer zero', - role: 'info', editType: 'calc', description: [ 'Only relevant when `stackgroup` is used, and only the first', @@ -207,7 +196,6 @@ module.exports = { text: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'calc', @@ -227,7 +215,6 @@ module.exports = { }), hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, editType: 'style', @@ -244,7 +231,6 @@ module.exports = { valType: 'flaglist', flags: ['lines', 'markers', 'text'], extras: ['none'], - role: 'info', editType: 'calc', description: [ 'Determines the drawing mode for this scatter trace.', @@ -259,7 +245,6 @@ module.exports = { hoveron: { valType: 'flaglist', flags: ['points', 'fills'], - role: 'info', editType: 'style', description: [ 'Do the hover effects highlight individual points (markers or', @@ -274,7 +259,6 @@ module.exports = { line: { color: { valType: 'color', - role: 'style', editType: 'style', anim: true, description: 'Sets the line color.' @@ -283,7 +267,6 @@ module.exports = { valType: 'number', min: 0, dflt: 2, - role: 'style', editType: 'style', anim: true, description: 'Sets the line width (in px).' @@ -292,7 +275,6 @@ module.exports = { valType: 'enumerated', values: ['linear', 'spline', 'hv', 'vh', 'hvh', 'vhv'], dflt: 'linear', - role: 'style', editType: 'plot', description: [ 'Determines the line shape.', @@ -305,7 +287,6 @@ module.exports = { min: 0, max: 1.3, dflt: 1, - role: 'style', editType: 'plot', description: [ 'Has an effect only if `shape` is set to *spline*', @@ -317,7 +298,6 @@ module.exports = { simplify: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: [ 'Simplifies lines by removing nearly-collinear points. When transitioning', @@ -331,7 +311,6 @@ module.exports = { connectgaps: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'Determines whether or not gaps', @@ -342,7 +321,6 @@ module.exports = { cliponaxis: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: [ 'Determines whether or not markers and text nodes', @@ -355,7 +333,6 @@ module.exports = { fill: { valType: 'enumerated', values: ['none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext'], - role: 'style', editType: 'calc', description: [ 'Sets the area to fill with a solid color.', @@ -382,7 +359,6 @@ module.exports = { }, fillcolor: { valType: 'color', - role: 'style', editType: 'style', anim: true, description: [ @@ -397,7 +373,6 @@ module.exports = { values: Drawing.symbolList, dflt: 'circle', arrayOk: true, - role: 'style', editType: 'style', description: [ 'Sets the marker symbol type.', @@ -412,7 +387,6 @@ module.exports = { min: 0, max: 1, arrayOk: true, - role: 'style', editType: 'style', anim: true, description: 'Sets the marker opacity.' @@ -422,7 +396,6 @@ module.exports = { min: 0, dflt: 6, arrayOk: true, - role: 'style', editType: 'calc', anim: true, description: 'Sets the marker size (in px).' @@ -431,7 +404,6 @@ module.exports = { valType: 'number', min: 0, dflt: 0, - role: 'style', editType: 'plot', description: [ 'Sets a maximum number of points to be drawn on the graph.', @@ -441,7 +413,6 @@ module.exports = { sizeref: { valType: 'number', dflt: 1, - role: 'style', editType: 'calc', description: [ 'Has an effect only if `marker.size` is set to a numerical array.', @@ -453,7 +424,6 @@ module.exports = { valType: 'number', min: 0, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Has an effect only if `marker.size` is set to a numerical array.', @@ -464,7 +434,6 @@ module.exports = { valType: 'enumerated', values: ['diameter', 'area'], dflt: 'diameter', - role: 'info', editType: 'calc', description: [ 'Has an effect only if `marker.size` is set to a numerical array.', @@ -478,7 +447,6 @@ module.exports = { valType: 'number', min: 0, arrayOk: true, - role: 'style', editType: 'style', anim: true, description: 'Sets the width (in px) of the lines bounding the marker points.' @@ -493,7 +461,6 @@ module.exports = { values: ['radial', 'horizontal', 'vertical', 'none'], arrayOk: true, dflt: 'none', - role: 'style', editType: 'calc', description: [ 'Sets the type of gradient used to fill the markers' @@ -502,7 +469,6 @@ module.exports = { color: { valType: 'color', arrayOk: true, - role: 'style', editType: 'calc', description: [ 'Sets the final color of the gradient fill:', @@ -522,20 +488,17 @@ module.exports = { valType: 'number', min: 0, max: 1, - role: 'style', editType: 'style', description: 'Sets the marker opacity of selected points.' }, color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the marker color of selected points.' }, size: { valType: 'number', min: 0, - role: 'style', editType: 'style', description: 'Sets the marker size of selected points.' }, @@ -544,7 +507,6 @@ module.exports = { textfont: { color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the text font color of selected points.' }, @@ -558,20 +520,17 @@ module.exports = { valType: 'number', min: 0, max: 1, - role: 'style', editType: 'style', description: 'Sets the marker opacity of unselected points, applied only when a selection exists.' }, color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the marker color of unselected points, applied only when a selection exists.' }, size: { valType: 'number', min: 0, - role: 'style', editType: 'style', description: 'Sets the marker size of unselected points, applied only when a selection exists.' }, @@ -580,7 +539,6 @@ module.exports = { textfont: { color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the text font color of unselected points, applied only when a selection exists.' }, @@ -598,7 +556,6 @@ module.exports = { ], dflt: 'middle center', arrayOk: true, - role: 'style', editType: 'calc', description: [ 'Sets the positions of the `text` elements', diff --git a/src/traces/scatter3d/attributes.js b/src/traces/scatter3d/attributes.js index f311a5fec81..a22adcb34a5 100644 --- a/src/traces/scatter3d/attributes.js +++ b/src/traces/scatter3d/attributes.js @@ -29,7 +29,6 @@ var lineAttrs = extendFlat({ valType: 'enumerated', values: Object.keys(DASHES), dflt: 'solid', - role: 'style', description: 'Sets the dash style of the lines.' } }, colorAttributes('line')); @@ -38,7 +37,6 @@ function makeProjectionAttr(axLetter) { return { show: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Sets whether or not projections are shown along the', @@ -47,7 +45,6 @@ function makeProjectionAttr(axLetter) { }, opacity: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, @@ -55,7 +52,6 @@ function makeProjectionAttr(axLetter) { }, scale: { valType: 'number', - role: 'style', min: 0, max: 10, dflt: 2 / 3, @@ -105,7 +101,6 @@ var attrs = module.exports = overrideAll({ {dflt: 'lines+markers'}), surfaceaxis: { valType: 'enumerated', - role: 'info', values: [-1, 0, 1, 2], dflt: -1, description: [ @@ -116,7 +111,6 @@ var attrs = module.exports = overrideAll({ }, surfacecolor: { valType: 'color', - role: 'style', description: 'Sets the surface fill color.' }, projection: { @@ -132,7 +126,6 @@ var attrs = module.exports = overrideAll({ symbol: { valType: 'enumerated', values: Object.keys(MARKER_SYMBOLS), - role: 'style', dflt: 'circle', arrayOk: true, description: 'Sets the marker symbol type.' diff --git a/src/traces/scattercarpet/attributes.js b/src/traces/scattercarpet/attributes.js index e885953e658..d79e8562406 100644 --- a/src/traces/scattercarpet/attributes.js +++ b/src/traces/scattercarpet/attributes.js @@ -23,7 +23,6 @@ var scatterMarkerLineAttrs = scatterMarkerAttrs.line; module.exports = { carpet: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'An identifier for this carpet, so that `scattercarpet` and', diff --git a/src/traces/scattergeo/attributes.js b/src/traces/scattergeo/attributes.js index 2da634046b5..78beeab6edf 100644 --- a/src/traces/scattergeo/attributes.js +++ b/src/traces/scattergeo/attributes.js @@ -43,7 +43,6 @@ module.exports = overrideAll({ locationmode: { valType: 'enumerated', values: ['ISO-3', 'USA-states', 'country names', 'geojson-id'], - role: 'info', dflt: 'ISO-3', description: [ 'Determines the set of locations used to match entries in `locations`', @@ -56,7 +55,6 @@ module.exports = overrideAll({ geojson: { valType: 'any', - role: 'info', editType: 'calc', description: [ 'Sets optional GeoJSON data associated with this trace.', @@ -72,7 +70,6 @@ module.exports = overrideAll({ }, featureidkey: { valType: 'string', - role: 'info', editType: 'calc', dflt: 'id', description: [ @@ -144,7 +141,6 @@ module.exports = overrideAll({ valType: 'enumerated', values: ['none', 'toself'], dflt: 'none', - role: 'style', description: [ 'Sets the area to fill with a solid color.', 'Use with `fillcolor` if not *none*.', diff --git a/src/traces/scattergl/attributes.js b/src/traces/scattergl/attributes.js index 08b1c815f97..a06be6c88d7 100644 --- a/src/traces/scattergl/attributes.js +++ b/src/traces/scattergl/attributes.js @@ -45,7 +45,6 @@ var attrs = module.exports = overrideAll({ valType: 'flaglist', flags: ['lines', 'markers', 'text'], extras: ['none'], - role: 'info', description: [ 'Determines the drawing mode for this scatter trace.' ].join(' ') @@ -57,7 +56,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: ['linear', 'hv', 'vh', 'hvh', 'vhv'], dflt: 'linear', - role: 'style', editType: 'plot', description: [ 'Determines the line shape.', @@ -68,7 +66,6 @@ var attrs = module.exports = overrideAll({ valType: 'enumerated', values: Object.keys(DASHES), dflt: 'solid', - role: 'style', description: 'Sets the style of the lines.' } }, diff --git a/src/traces/scattermapbox/attributes.js b/src/traces/scattermapbox/attributes.js index 3ed7856f4f3..786dc03fa6e 100644 --- a/src/traces/scattermapbox/attributes.js +++ b/src/traces/scattermapbox/attributes.js @@ -78,7 +78,6 @@ module.exports = overrideAll({ symbol: { valType: 'string', dflt: 'circle', - role: 'style', arrayOk: true, description: [ 'Sets the marker symbol.', @@ -90,7 +89,6 @@ module.exports = overrideAll({ angle: { valType: 'number', dflt: 'auto', - role: 'style', arrayOk: true, description: [ 'Sets the marker orientation from true North, in degrees clockwise.', @@ -101,7 +99,6 @@ module.exports = overrideAll({ allowoverlap: { valType: 'boolean', dflt: false, - role: 'style', description: [ 'Flag to draw all symbols, even if they overlap.' ].join(' ') @@ -124,7 +121,6 @@ module.exports = overrideAll({ below: { valType: 'string', - role: 'info', description: [ 'Determines if this scattermapbox trace\'s layers are to be inserted', 'before the layer with the specified ID.', diff --git a/src/traces/scatterpolar/attributes.js b/src/traces/scatterpolar/attributes.js index e8bac9261db..16a84943e5b 100644 --- a/src/traces/scatterpolar/attributes.js +++ b/src/traces/scatterpolar/attributes.js @@ -33,7 +33,6 @@ module.exports = { r0: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Alternate to `r`.', @@ -45,7 +44,6 @@ module.exports = { dr: { valType: 'number', dflt: 1, - role: 'info', editType: 'calc', description: 'Sets the r coordinate step.' }, @@ -53,7 +51,6 @@ module.exports = { theta0: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Alternate to `theta`.', @@ -64,7 +61,6 @@ module.exports = { }, dtheta: { valType: 'number', - role: 'info', editType: 'calc', description: [ 'Sets the theta coordinate step.', @@ -77,7 +73,6 @@ module.exports = { valType: 'enumerated', values: ['radians', 'degrees', 'gradians'], dflt: 'degrees', - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the unit of input *theta* values.', diff --git a/src/traces/scatterternary/attributes.js b/src/traces/scatterternary/attributes.js index ed48d53b1ed..f9abd0b41ef 100644 --- a/src/traces/scatterternary/attributes.js +++ b/src/traces/scatterternary/attributes.js @@ -57,7 +57,6 @@ module.exports = { }, sum: { valType: 'number', - role: 'info', dflt: 0, min: 0, editType: 'calc', diff --git a/src/traces/splom/attributes.js b/src/traces/splom/attributes.js index 34e817cbf41..7261401ae00 100644 --- a/src/traces/splom/attributes.js +++ b/src/traces/splom/attributes.js @@ -42,7 +42,6 @@ function makeAxesValObject(axLetter) { return { valType: 'info_array', freeLength: true, - role: 'info', editType: 'calc', items: { valType: 'subplotid', @@ -65,7 +64,6 @@ module.exports = { dimensions: templatedArray('dimension', { visible: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc', description: [ @@ -76,13 +74,11 @@ module.exports = { }, label: { valType: 'string', - role: 'info', editType: 'calc', description: 'Sets the label corresponding to this splom dimension.' }, values: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: 'Sets the dimension values to be plotted.' }, @@ -91,7 +87,6 @@ module.exports = { type: { valType: 'enumerated', values: ['linear', 'log', 'date', 'category'], - role: 'info', editType: 'calc+clearAxisTypes', description: [ 'Sets the axis type for this dimension\'s generated', @@ -105,7 +100,6 @@ module.exports = { matches: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'Determines whether or not the x & y axes generated by this', @@ -152,7 +146,6 @@ module.exports = { diagonal: { visible: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc', description: [ @@ -169,7 +162,6 @@ module.exports = { showupperhalf: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc', description: [ @@ -179,7 +171,6 @@ module.exports = { }, showlowerhalf: { valType: 'boolean', - role: 'info', dflt: true, editType: 'calc', description: [ diff --git a/src/traces/streamtube/attributes.js b/src/traces/streamtube/attributes.js index c3a490034d4..b54857a6195 100644 --- a/src/traces/streamtube/attributes.js +++ b/src/traces/streamtube/attributes.js @@ -18,19 +18,16 @@ var extendFlat = require('../../lib/extend').extendFlat; var attrs = { x: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: 'Sets the x coordinates of the vector field.' }, y: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: 'Sets the y coordinates of the vector field.' }, z: { valType: 'data_array', - role: 'info', editType: 'calc+clearAxisTypes', description: 'Sets the z coordinates of the vector field.' }, @@ -80,7 +77,6 @@ var attrs = { valType: 'integer', min: 0, dflt: 1000, - role: 'info', editType: 'calc', description: [ 'The maximum number of displayed segments in a streamtube.' @@ -108,7 +104,6 @@ var attrs = { sizeref: { valType: 'number', - role: 'info', editType: 'calc', min: 0, dflt: 1, @@ -121,7 +116,6 @@ var attrs = { text: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ @@ -133,7 +127,6 @@ var attrs = { }, hovertext: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: 'Same as `text`.' diff --git a/src/traces/sunburst/attributes.js b/src/traces/sunburst/attributes.js index 96036658272..3a83ffd61c2 100644 --- a/src/traces/sunburst/attributes.js +++ b/src/traces/sunburst/attributes.js @@ -52,7 +52,6 @@ module.exports = { values: ['remainder', 'total'], dflt: 'remainder', editType: 'calc', - role: 'info', description: [ 'Determines how the items in `values` are summed.', 'When set to *total*, items in `values` are taken to be value of all its descendants.', @@ -68,7 +67,6 @@ module.exports = { ], dflt: 'leaves', editType: 'calc', - role: 'info', description: [ 'Determines default for `values` when it is not provided,', 'by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0.' @@ -79,7 +77,6 @@ module.exports = { valType: 'any', editType: 'plot', anim: true, - role: 'info', description: [ 'Sets the level from which this trace hierarchy is rendered.', 'Set `level` to `\'\'` to start from the root node in the hierarchy.', @@ -90,7 +87,6 @@ module.exports = { maxdepth: { valType: 'integer', editType: 'plot', - role: 'info', dflt: -1, description: [ 'Sets the number of rendered sectors from any given `level`.', @@ -137,7 +133,6 @@ module.exports = { opacity: { valType: 'number', editType: 'style', - role: 'style', min: 0, max: 1, description: [ @@ -151,7 +146,6 @@ module.exports = { text: pieAttrs.text, textinfo: { valType: 'flaglist', - role: 'info', flags: [ 'label', 'text', @@ -205,7 +199,6 @@ module.exports = { }), rotation: { valType: 'angle', - role: 'style', dflt: 0, editType: 'plot', description: [ @@ -219,7 +212,6 @@ module.exports = { color: { valType: 'color', editType: 'calc', - role: 'style', dflt: 'rgba(0,0,0,0)', description: [ 'sets the color of the root node for a sunburst or a treemap trace.', diff --git a/src/traces/sunburst/layout_attributes.js b/src/traces/sunburst/layout_attributes.js index dd5396d4c8c..45be2dc064e 100644 --- a/src/traces/sunburst/layout_attributes.js +++ b/src/traces/sunburst/layout_attributes.js @@ -11,7 +11,6 @@ module.exports = { sunburstcolorway: { valType: 'colorlist', - role: 'style', editType: 'calc', description: [ 'Sets the default sunburst slice colors. Defaults to the main', @@ -23,7 +22,6 @@ module.exports = { extendsunburstcolors: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc', description: [ 'If `true`, the sunburst slice colors (whether given by `sunburstcolorway` or', diff --git a/src/traces/surface/attributes.js b/src/traces/surface/attributes.js index 95704630d08..1176982c7ce 100644 --- a/src/traces/surface/attributes.js +++ b/src/traces/surface/attributes.js @@ -19,7 +19,6 @@ var overrideAll = require('../../plot_api/edit_types').overrideAll; function makeContourProjAttr(axLetter) { return { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Determines whether or not these contour lines are projected', @@ -36,7 +35,6 @@ function makeContourAttr(axLetter) { return { show: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Determines whether or not contour lines about the', axLetter, @@ -46,7 +44,6 @@ function makeContourAttr(axLetter) { start: { valType: 'number', dflt: null, - role: 'style', editType: 'plot', // impliedEdits: {'^autocontour': false}, description: [ @@ -57,7 +54,6 @@ function makeContourAttr(axLetter) { end: { valType: 'number', dflt: null, - role: 'style', editType: 'plot', // impliedEdits: {'^autocontour': false}, description: [ @@ -69,7 +65,6 @@ function makeContourAttr(axLetter) { valType: 'number', dflt: null, min: 0, - role: 'style', editType: 'plot', // impliedEdits: {'^autocontour': false}, description: [ @@ -84,13 +79,11 @@ function makeContourAttr(axLetter) { }, color: { valType: 'color', - role: 'style', dflt: Color.defaultLine, description: 'Sets the color of the contour lines.' }, usecolormap: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'An alternate to *color*.', @@ -100,7 +93,6 @@ function makeContourAttr(axLetter) { }, width: { valType: 'number', - role: 'style', min: 1, max: 16, dflt: 2, @@ -108,7 +100,6 @@ function makeContourAttr(axLetter) { }, highlight: { valType: 'boolean', - role: 'info', dflt: true, description: [ 'Determines whether or not contour lines about the', axLetter, @@ -117,13 +108,11 @@ function makeContourAttr(axLetter) { }, highlightcolor: { valType: 'color', - role: 'style', dflt: Color.defaultLine, description: 'Sets the color of the highlighted contour lines.' }, highlightwidth: { valType: 'number', - role: 'style', min: 1, max: 16, dflt: 2, @@ -148,7 +137,6 @@ var attrs = module.exports = overrideAll(extendFlat({ text: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, description: [ @@ -159,7 +147,6 @@ var attrs = module.exports = overrideAll(extendFlat({ }, hovertext: { valType: 'string', - role: 'info', dflt: '', arrayOk: true, description: 'Same as `text`.' @@ -169,7 +156,6 @@ var attrs = module.exports = overrideAll(extendFlat({ connectgaps: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'Determines whether or not gaps', @@ -200,7 +186,6 @@ colorScaleAttrs('', { }, hidesurface: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Determines whether or not a surface is drawn.', @@ -213,7 +198,6 @@ colorScaleAttrs('', { lightposition: { x: { valType: 'number', - role: 'style', min: -1e5, max: 1e5, dflt: 10, @@ -221,7 +205,6 @@ colorScaleAttrs('', { }, y: { valType: 'number', - role: 'style', min: -1e5, max: 1e5, dflt: 1e4, @@ -229,7 +212,6 @@ colorScaleAttrs('', { }, z: { valType: 'number', - role: 'style', min: -1e5, max: 1e5, dflt: 0, @@ -240,7 +222,6 @@ colorScaleAttrs('', { lighting: { ambient: { valType: 'number', - role: 'style', min: 0.00, max: 1.0, dflt: 0.8, @@ -248,7 +229,6 @@ colorScaleAttrs('', { }, diffuse: { valType: 'number', - role: 'style', min: 0.00, max: 1.00, dflt: 0.8, @@ -256,7 +236,6 @@ colorScaleAttrs('', { }, specular: { valType: 'number', - role: 'style', min: 0.00, max: 2.00, dflt: 0.05, @@ -264,7 +243,6 @@ colorScaleAttrs('', { }, roughness: { valType: 'number', - role: 'style', min: 0.00, max: 1.00, dflt: 0.5, @@ -272,7 +250,6 @@ colorScaleAttrs('', { }, fresnel: { valType: 'number', - role: 'style', min: 0.00, max: 5.00, dflt: 0.2, @@ -285,7 +262,6 @@ colorScaleAttrs('', { opacity: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, @@ -300,7 +276,6 @@ colorScaleAttrs('', { opacityscale: { valType: 'any', - role: 'style', editType: 'calc', description: [ 'Sets the opacityscale.', diff --git a/src/traces/table/attributes.js b/src/traces/table/attributes.js index f5a88438f32..b2ece5740d8 100644 --- a/src/traces/table/attributes.js +++ b/src/traces/table/attributes.js @@ -23,7 +23,6 @@ var attrs = module.exports = overrideAll({ valType: 'number', arrayOk: true, dflt: null, - role: 'style', description: [ 'The width of columns expressed as a ratio. Columns fill the available width', 'in proportion of their specified column widths.' @@ -32,7 +31,6 @@ var attrs = module.exports = overrideAll({ columnorder: { valType: 'data_array', - role: 'info', description: [ 'Specifies the rendered order of the data columns; for example, a value `2` at position `0`', 'means that column index `0` in the data will be rendered as the', @@ -44,7 +42,6 @@ var attrs = module.exports = overrideAll({ values: { valType: 'data_array', - role: 'info', dflt: [], description: [ 'Header cell values. `values[m][n]` represents the value of the `n`th point in column `m`,', @@ -55,7 +52,6 @@ var attrs = module.exports = overrideAll({ format: { valType: 'data_array', - role: 'info', dflt: [], description: [ 'Sets the cell value formatting rule using d3 formatting mini-language', @@ -68,7 +64,6 @@ var attrs = module.exports = overrideAll({ valType: 'string', arrayOk: true, dflt: null, - role: 'style', description: 'Prefix for cell values.' }, @@ -76,14 +71,12 @@ var attrs = module.exports = overrideAll({ valType: 'string', arrayOk: true, dflt: null, - role: 'style', description: 'Suffix for cell values.' }, height: { valType: 'number', dflt: 28, - role: 'style', description: 'The height of cells.' }, @@ -94,13 +87,11 @@ var attrs = module.exports = overrideAll({ valType: 'number', arrayOk: true, dflt: 1, - role: 'style' }, color: { valType: 'color', arrayOk: true, dflt: 'grey', - role: 'style' } }, @@ -109,7 +100,6 @@ var attrs = module.exports = overrideAll({ valType: 'color', arrayOk: true, dflt: 'white', - role: 'style', description: [ 'Sets the cell fill color. It accepts either a specific color', ' or an array of colors or a 2D array of colors.' @@ -124,7 +114,6 @@ var attrs = module.exports = overrideAll({ values: { valType: 'data_array', - role: 'info', dflt: [], description: [ 'Cell values. `values[m][n]` represents the value of the `n`th point in column `m`,', @@ -135,7 +124,6 @@ var attrs = module.exports = overrideAll({ format: { valType: 'data_array', - role: 'info', dflt: [], description: [ 'Sets the cell value formatting rule using d3 formatting mini-language', @@ -148,7 +136,6 @@ var attrs = module.exports = overrideAll({ valType: 'string', arrayOk: true, dflt: null, - role: 'style', description: 'Prefix for cell values.' }, @@ -156,14 +143,12 @@ var attrs = module.exports = overrideAll({ valType: 'string', arrayOk: true, dflt: null, - role: 'style', description: 'Suffix for cell values.' }, height: { valType: 'number', dflt: 20, - role: 'style', description: 'The height of cells.' }, @@ -174,13 +159,11 @@ var attrs = module.exports = overrideAll({ valType: 'number', arrayOk: true, dflt: 1, - role: 'style' }, color: { valType: 'color', arrayOk: true, dflt: 'grey', - role: 'style' } }, @@ -188,7 +171,6 @@ var attrs = module.exports = overrideAll({ color: { valType: 'color', arrayOk: true, - role: 'style', dflt: 'white', description: [ 'Sets the cell fill color. It accepts either a specific color', diff --git a/src/traces/treemap/attributes.js b/src/traces/treemap/attributes.js index 08325b9cf81..064e2389b03 100644 --- a/src/traces/treemap/attributes.js +++ b/src/traces/treemap/attributes.js @@ -41,7 +41,6 @@ module.exports = { 'dice-slice' ], dflt: 'squarify', - role: 'info', editType: 'plot', description: [ 'Determines d3 treemap solver.', @@ -51,7 +50,6 @@ module.exports = { squarifyratio: { valType: 'number', - role: 'info', min: 1, dflt: 1, editType: 'plot', @@ -69,7 +67,6 @@ module.exports = { flip: { valType: 'flaglist', - role: 'info', flags: [ 'x', 'y' @@ -83,7 +80,6 @@ module.exports = { pad: { valType: 'number', - role: 'style', min: 0, dflt: 3, editType: 'plot', @@ -99,7 +95,6 @@ module.exports = { pad: { t: { valType: 'number', - role: 'style', min: 0, editType: 'plot', description: [ @@ -108,7 +103,6 @@ module.exports = { }, l: { valType: 'number', - role: 'style', min: 0, editType: 'plot', description: [ @@ -117,7 +111,6 @@ module.exports = { }, r: { valType: 'number', - role: 'style', min: 0, editType: 'plot', description: [ @@ -126,7 +119,6 @@ module.exports = { }, b: { valType: 'number', - role: 'style', min: 0, editType: 'plot', description: [ @@ -143,7 +135,6 @@ module.exports = { valType: 'enumerated', values: [true, false, 'reversed'], editType: 'style', - role: 'style', description: [ 'Determines if the sector colors are faded towards', 'the background from the leaves up to the headers.', @@ -170,7 +161,6 @@ module.exports = { visible: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: [ 'Determines if the path bar is drawn', @@ -186,7 +176,6 @@ module.exports = { 'bottom' ], dflt: 'top', - role: 'info', editType: 'plot', description: [ 'Determines on which side of the the treemap the', @@ -204,7 +193,6 @@ module.exports = { '\\' ], dflt: '>', - role: 'style', editType: 'plot', description: [ 'Determines which shape is used for edges between `barpath` labels.' @@ -214,7 +202,6 @@ module.exports = { thickness: { valType: 'number', min: 12, - role: 'info', editType: 'plot', description: [ 'Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used', @@ -262,7 +249,6 @@ module.exports = { 'bottom left', 'bottom center', 'bottom right' ], dflt: 'top left', - role: 'style', editType: 'plot', description: [ 'Sets the positions of the `text` elements.' diff --git a/src/traces/treemap/layout_attributes.js b/src/traces/treemap/layout_attributes.js index 41be2384a44..4a8f461358f 100644 --- a/src/traces/treemap/layout_attributes.js +++ b/src/traces/treemap/layout_attributes.js @@ -11,7 +11,6 @@ module.exports = { treemapcolorway: { valType: 'colorlist', - role: 'style', editType: 'calc', description: [ 'Sets the default treemap slice colors. Defaults to the main', @@ -23,7 +22,6 @@ module.exports = { extendtreemapcolors: { valType: 'boolean', dflt: true, - role: 'style', editType: 'calc', description: [ 'If `true`, the treemap slice colors (whether given by `treemapcolorway` or', diff --git a/src/traces/violin/attributes.js b/src/traces/violin/attributes.js index 603018f6054..4ef09166bcb 100644 --- a/src/traces/violin/attributes.js +++ b/src/traces/violin/attributes.js @@ -39,7 +39,6 @@ module.exports = { bandwidth: { valType: 'number', min: 0, - role: 'info', editType: 'calc', description: [ 'Sets the bandwidth used to compute the kernel density estimate.', @@ -49,7 +48,6 @@ module.exports = { scalegroup: { valType: 'string', - role: 'info', dflt: '', editType: 'calc', description: [ @@ -64,7 +62,6 @@ module.exports = { valType: 'enumerated', values: ['width', 'count'], dflt: 'width', - role: 'info', editType: 'calc', description: [ 'Sets the metric by which the width of each violin is determined.', @@ -78,7 +75,6 @@ module.exports = { valType: 'enumerated', values: ['soft', 'hard', 'manual'], dflt: 'soft', - role: 'info', editType: 'calc', description: [ 'Sets the method by which the span in data space where the density function will be computed.', @@ -94,7 +90,6 @@ module.exports = { {valType: 'any', editType: 'calc'}, {valType: 'any', editType: 'calc'} ], - role: 'info', editType: 'calc', description: [ 'Sets the span in data space for which the density function will be computed.', @@ -105,13 +100,11 @@ module.exports = { line: { color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the color of line bounding the violin(s).' }, width: { valType: 'number', - role: 'style', min: 0, dflt: 2, editType: 'style', @@ -169,7 +162,6 @@ module.exports = { visible: { valType: 'boolean', dflt: false, - role: 'info', editType: 'plot', description: [ 'Determines if an miniature box plot is drawn inside the violins. ' @@ -180,7 +172,6 @@ module.exports = { min: 0, max: 1, dflt: 0.25, - role: 'info', editType: 'plot', description: [ 'Sets the width of the inner box plots relative to', @@ -190,21 +181,18 @@ module.exports = { }, fillcolor: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the inner box plot fill color.' }, line: { color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the inner box plot bounding line color.' }, width: { valType: 'number', min: 0, - role: 'style', editType: 'style', description: 'Sets the inner box plot bounding line width.' }, @@ -217,7 +205,6 @@ module.exports = { visible: { valType: 'boolean', dflt: false, - role: 'info', editType: 'plot', description: [ 'Determines if a line corresponding to the sample\'s mean is shown', @@ -228,14 +215,12 @@ module.exports = { }, color: { valType: 'color', - role: 'style', editType: 'style', description: 'Sets the mean line color.' }, width: { valType: 'number', min: 0, - role: 'style', editType: 'style', description: 'Sets the mean line width.' }, @@ -246,7 +231,6 @@ module.exports = { valType: 'enumerated', values: ['both', 'positive', 'negative'], dflt: 'both', - role: 'info', editType: 'calc', description: [ 'Determines on which side of the position value the density function making up', @@ -267,7 +251,6 @@ module.exports = { flags: ['violins', 'points', 'kde'], dflt: 'violins+points+kde', extras: ['all'], - role: 'info', editType: 'style', description: [ 'Do the hover effects highlight individual violins', diff --git a/src/traces/volume/attributes.js b/src/traces/volume/attributes.js index 390bcf9f972..6091938bde3 100644 --- a/src/traces/volume/attributes.js +++ b/src/traces/volume/attributes.js @@ -27,7 +27,6 @@ var attrs = module.exports = overrideAll(extendFlat({ spaceframe: { show: { valType: 'boolean', - role: 'info', dflt: false, description: [ 'Displays/hides tetrahedron shapes between minimum and', @@ -37,7 +36,6 @@ var attrs = module.exports = overrideAll(extendFlat({ }, fill: { valType: 'number', - role: 'style', min: 0, max: 1, dflt: 1, diff --git a/src/traces/waterfall/attributes.js b/src/traces/waterfall/attributes.js index 1d8fc7973ea..0358a87ca63 100644 --- a/src/traces/waterfall/attributes.js +++ b/src/traces/waterfall/attributes.js @@ -48,7 +48,6 @@ module.exports = { measure: { valType: 'data_array', dflt: [], - role: 'info', editType: 'calc', description: [ 'An array containing types of values.', @@ -63,7 +62,6 @@ module.exports = { valType: 'number', dflt: null, arrayOk: false, - role: 'info', editType: 'calc', description: [ 'Sets where the bar base is drawn (in position axis units).' @@ -97,7 +95,6 @@ module.exports = { valType: 'flaglist', flags: ['label', 'text', 'initial', 'delta', 'final'], extras: ['none'], - role: 'info', editType: 'plot', arrayOk: false, description: [ @@ -142,7 +139,6 @@ module.exports = { valType: 'enumerated', values: ['spanning', 'between'], dflt: 'between', - role: 'info', editType: 'plot', description: [ 'Sets the shape of connector lines.' @@ -151,7 +147,6 @@ module.exports = { visible: { valType: 'boolean', dflt: true, - role: 'info', editType: 'plot', description: [ 'Determines if connector lines are drawn. ' diff --git a/src/traces/waterfall/layout_attributes.js b/src/traces/waterfall/layout_attributes.js index e2f2804ab51..bd9e83b4c90 100644 --- a/src/traces/waterfall/layout_attributes.js +++ b/src/traces/waterfall/layout_attributes.js @@ -13,7 +13,6 @@ module.exports = { valType: 'enumerated', values: ['group', 'overlay'], dflt: 'group', - role: 'info', editType: 'calc', description: [ 'Determines how bars at the same location coordinate', @@ -28,7 +27,6 @@ module.exports = { valType: 'number', min: 0, max: 1, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between bars of', @@ -40,7 +38,6 @@ module.exports = { min: 0, max: 1, dflt: 0, - role: 'style', editType: 'calc', description: [ 'Sets the gap (in plot fraction) between bars of', diff --git a/src/transforms/aggregate.js b/src/transforms/aggregate.js index aa50c1849fd..c49c22e84ef 100644 --- a/src/transforms/aggregate.js +++ b/src/transforms/aggregate.js @@ -22,7 +22,6 @@ var attrs = exports.attributes = { enabled: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: [ 'Determines whether this aggregate transform is enabled or disabled.' @@ -36,7 +35,6 @@ var attrs = exports.attributes = { noBlank: true, arrayOk: true, dflt: 'x', - role: 'info', editType: 'calc', description: [ 'Sets the grouping target to which the aggregation is applied.', @@ -55,7 +53,6 @@ var attrs = exports.attributes = { _isLinkedToArray: 'aggregation', target: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'A reference to the data array in the parent trace to aggregate.', @@ -70,7 +67,6 @@ var attrs = exports.attributes = { valType: 'enumerated', values: ['count', 'sum', 'avg', 'median', 'mode', 'rms', 'stddev', 'min', 'max', 'first', 'last', 'change', 'range'], dflt: 'first', - role: 'info', editType: 'calc', description: [ 'Sets the aggregation function.', @@ -95,7 +91,6 @@ var attrs = exports.attributes = { valType: 'enumerated', values: ['sample', 'population'], dflt: 'sample', - role: 'info', editType: 'calc', description: [ '*stddev* supports two formula variants: *sample* (normalize by N-1)', @@ -105,7 +100,6 @@ var attrs = exports.attributes = { enabled: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: [ 'Determines whether this aggregation function is enabled or disabled.' diff --git a/src/transforms/filter.js b/src/transforms/filter.js index 3d608a8dd21..b2d71070bc8 100644 --- a/src/transforms/filter.js +++ b/src/transforms/filter.js @@ -26,7 +26,6 @@ exports.attributes = { enabled: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: [ 'Determines whether this filter transform is enabled or disabled.' @@ -38,7 +37,6 @@ exports.attributes = { noBlank: true, arrayOk: true, dflt: 'x', - role: 'info', editType: 'calc', description: [ 'Sets the filter target by which the filter is applied.', @@ -59,7 +57,6 @@ exports.attributes = { .concat(INTERVAL_OPS) .concat(SET_OPS), dflt: '=', - role: 'info', editType: 'calc', description: [ 'Sets the filter operation.', @@ -90,7 +87,6 @@ exports.attributes = { value: { valType: 'any', dflt: 0, - role: 'info', editType: 'calc', description: [ 'Sets the value or values by which to filter.', @@ -116,7 +112,6 @@ exports.attributes = { preservegaps: { valType: 'boolean', dflt: false, - role: 'info', editType: 'calc', description: [ 'Determines whether or not gaps in data arrays produced by the filter operation', diff --git a/src/transforms/groupby.js b/src/transforms/groupby.js index 42e27e5db32..70d02e49508 100644 --- a/src/transforms/groupby.js +++ b/src/transforms/groupby.js @@ -21,7 +21,6 @@ exports.attributes = { enabled: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: [ 'Determines whether this group-by transform is enabled or disabled.' @@ -30,7 +29,6 @@ exports.attributes = { groups: { valType: 'data_array', dflt: [], - role: 'info', editType: 'calc', description: [ 'Sets the groups in which the trace data will be split.', @@ -42,7 +40,6 @@ exports.attributes = { }, nameformat: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'Pattern by which grouped traces are named. If only one trace is present,', @@ -57,7 +54,6 @@ exports.attributes = { _isLinkedToArray: 'style', target: { valType: 'string', - role: 'info', editType: 'calc', description: [ 'The group value which receives these styles.' @@ -65,7 +61,6 @@ exports.attributes = { }, value: { valType: 'any', - role: 'info', dflt: {}, editType: 'calc', description: [ diff --git a/src/transforms/sort.js b/src/transforms/sort.js index fed5888d19e..6492a0a6b97 100644 --- a/src/transforms/sort.js +++ b/src/transforms/sort.js @@ -22,7 +22,6 @@ exports.attributes = { enabled: { valType: 'boolean', dflt: true, - role: 'info', editType: 'calc', description: [ 'Determines whether this sort transform is enabled or disabled.' @@ -34,7 +33,6 @@ exports.attributes = { noBlank: true, arrayOk: true, dflt: 'x', - role: 'info', editType: 'calc', description: [ 'Sets the target by which the sort transform is applied.', @@ -53,7 +51,6 @@ exports.attributes = { valType: 'enumerated', values: ['ascending', 'descending'], dflt: 'ascending', - role: 'info', editType: 'calc', description: [ 'Sets the sort transform order.' From 65da615ef39fc84389015d2a088df692a54a8c2a Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 19 Jan 2021 19:49:43 -0500 Subject: [PATCH 2/4] more role removal --- src/components/colorbar/attributes.js | 1 - src/plot_api/plot_schema.js | 12 +++--------- src/traces/barpolar/attributes.js | 1 - src/traces/streamtube/attributes.js | 1 - 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/colorbar/attributes.js b/src/components/colorbar/attributes.js index ed075ecd961..1bf3c3e72f0 100644 --- a/src/components/colorbar/attributes.js +++ b/src/components/colorbar/attributes.js @@ -18,7 +18,6 @@ module.exports = overrideAll({ // TODO: only right is supported currently // orient: { // valType: 'enumerated', -// role: 'info', // values: ['left', 'right', 'top', 'bottom'], // dflt: 'right', // description: [ diff --git a/src/plot_api/plot_schema.js b/src/plot_api/plot_schema.js index 0e2f542ec26..54e2b5aab29 100644 --- a/src/plot_api/plot_schema.js +++ b/src/plot_api/plot_schema.js @@ -63,7 +63,7 @@ exports.get = function() { return { defs: { valObjects: valObjectMeta, - metaKeys: UNDERSCORE_ATTRS.concat(['description', 'role', 'editType', 'impliedEdits']), + metaKeys: UNDERSCORE_ATTRS.concat(['description', 'editType', 'impliedEdits']), editType: { traces: editTypes.traces, layout: editTypes.layout @@ -600,14 +600,14 @@ function getFramesAttributes() { } function formatAttributes(attrs) { - mergeValTypeAndRole(attrs); + mergeValType(attrs); formatArrayContainers(attrs); stringify(attrs); return attrs; } -function mergeValTypeAndRole(attrs) { +function mergeValType(attrs) { function makeSrcAttr(attrName) { return { valType: 'string', @@ -622,17 +622,12 @@ function mergeValTypeAndRole(attrs) { function callback(attr, attrName, attrs) { if(exports.isValObject(attr)) { if(attr.valType === 'data_array') { - // all 'data_array' attrs have role 'data' - attr.role = 'data'; // all 'data_array' attrs have a corresponding 'src' attr attrs[attrName + 'src'] = makeSrcAttr(attrName); } else if(attr.arrayOk === true) { // all 'arrayOk' attrs have a corresponding 'src' attr attrs[attrName + 'src'] = makeSrcAttr(attrName); } - } else if(isPlainObject(attr)) { - // all attrs container objects get role 'object' - attr.role = 'object'; } } @@ -651,7 +646,6 @@ function formatArrayContainers(attrs) { attrs[attrName] = { items: {} }; attrs[attrName].items[itemName] = attr; - attrs[attrName].role = 'object'; } exports.crawl(attrs, callback); diff --git a/src/traces/barpolar/attributes.js b/src/traces/barpolar/attributes.js index 986a048547d..bf331cf2bd3 100644 --- a/src/traces/barpolar/attributes.js +++ b/src/traces/barpolar/attributes.js @@ -24,7 +24,6 @@ module.exports = { // orientation: { // valType: 'enumerated', - // role: 'info', // values: ['radial', 'angular'], // editType: 'calc+clearAxisTypes', // description: 'Sets the orientation of the bars.' diff --git a/src/traces/streamtube/attributes.js b/src/traces/streamtube/attributes.js index b54857a6195..e031904a6b1 100644 --- a/src/traces/streamtube/attributes.js +++ b/src/traces/streamtube/attributes.js @@ -95,7 +95,6 @@ var attrs = { // valType: 'enumerated', // values: ['scaled', 'absolute', 'fixed'], // dflt: 'scaled', - // role: 'info', // editType: 'calc', // description: [ // 'Sets the mode by which the streamtubes are sized.' From b4c679853a257a2cc4d3d06c9d96a2a20e056ea4 Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 19 Jan 2021 18:57:50 -0500 Subject: [PATCH 3/4] no longer need to look for role in compress_attributes --- tasks/compress_attributes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/compress_attributes.js b/tasks/compress_attributes.js index e417312c410..0fe6f1158d7 100644 --- a/tasks/compress_attributes.js +++ b/tasks/compress_attributes.js @@ -27,8 +27,7 @@ var regexStr = [ makeJoinedArrayRegex('description'), makeArrayRegex('requiredOpts'), makeArrayRegex('otherOpts'), - makeStringRegex('hrName'), - makeStringRegex('role') + makeStringRegex('hrName') ].join('|'); var regex = new RegExp(regexStr, 'g'); From bd47920f31ac1a5b26b7a9eeac0fe3a58141959a Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 19 Jan 2021 19:25:13 -0500 Subject: [PATCH 4/4] adapt tests --- test/jasmine/bundle_tests/plotschema_test.js | 38 +++----------------- test/jasmine/tests/plot_api_test.js | 6 ++-- 2 files changed, 6 insertions(+), 38 deletions(-) diff --git a/test/jasmine/bundle_tests/plotschema_test.js b/test/jasmine/bundle_tests/plotschema_test.js index 4ac720049a0..3d749abe160 100644 --- a/test/jasmine/bundle_tests/plotschema_test.js +++ b/test/jasmine/bundle_tests/plotschema_test.js @@ -25,7 +25,6 @@ describe('plot schema', function() { var isPlainObject = Lib.isPlainObject; var VALTYPES = Object.keys(valObjects); - var ROLES = ['info', 'style', 'data']; var editType = plotSchema.defs.editType; function assertTraceSchema(callback) { @@ -73,26 +72,6 @@ describe('plot schema', function() { ); }); - it('all attributes should only have valid `role`', function() { - assertPlotSchema( - function(attr) { - if(isValObject(attr)) { - expect(ROLES.indexOf(attr.role) !== -1).toBe(true, attr); - } - } - ); - }); - - it('all nested objects should have the *object* `role`', function() { - assertPlotSchema( - function(attr, attrName) { - if(!isValObject(attr) && isPlainObject(attr) && attrName !== 'items') { - expect(attr.role === 'object').toBe(true); - } - } - ); - }); - it('all attributes should have the required options', function() { assertPlotSchema( function(attr) { @@ -115,7 +94,7 @@ describe('plot schema', function() { var opts = valObject.requiredOpts .concat(valObject.otherOpts) .concat([ - 'valType', 'description', 'role', + 'valType', 'description', 'editType', 'impliedEdits', 'anim', '_compareAsJSON', '_noTemplating' ]); @@ -185,13 +164,8 @@ describe('plot schema', function() { // N.B. the specs below must be satisfied for plotly.py expect(isPlainObject(itemsObj)).toBe(true); - expect(itemsObj.role).toBeUndefined(); expect(Object.keys(itemsObj).length).toEqual(1); expect(isPlainObject(itemObj)).toBe(true); - expect(itemObj.role).toBe('object'); - - var role = np.get().role; - expect(role).toEqual('object'); }); }); @@ -223,7 +197,7 @@ describe('plot schema', function() { ); }); - it('deprecated attributes should have a `valType` and `role`', function() { + it('deprecated attributes should have a `valType`', function() { var DEPRECATED = '_deprecated'; assertPlotSchema( @@ -234,8 +208,6 @@ describe('plot schema', function() { expect(VALTYPES.indexOf(dAttr.valType) !== -1) .toBe(true, attrString + ': ' + dAttrName); - expect(ROLES.indexOf(dAttr.role) !== -1) - .toBe(true, attrString + ': ' + dAttrName); }); } } @@ -317,15 +289,13 @@ describe('plot schema', function() { expect(plotSchema.defs.metaKeys) .toEqual([ '_isSubplotObj', '_isLinkedToArray', '_arrayAttrRegexps', - '_deprecated', 'description', 'role', 'editType', 'impliedEdits' + '_deprecated', 'description', 'editType', 'impliedEdits' ]); }); it('should list the correct frame attributes', function() { expect(plotSchema.frames).toBeDefined(); - expect(plotSchema.frames.role).toEqual('object'); expect(plotSchema.frames.items.frames_entry).toBeDefined(); - expect(plotSchema.frames.items.frames_entry.role).toEqual('object'); }); it('should list config attributes', function() { @@ -469,7 +439,7 @@ describe('getTraceValObject', function() { // it still returns the attribute itself - but maybe we should only do this // for valType: any? (or data_array/arrayOk with just an index) [ - 'valType', 'dflt', 'role', 'description', 'arrayOk', + 'valType', 'dflt', 'description', 'arrayOk', 'editType', 'min', 'max', 'values' ].forEach(function(prop) { expect(getTraceValObject({}, ['x', prop])) diff --git a/test/jasmine/tests/plot_api_test.js b/test/jasmine/tests/plot_api_test.js index 071d4dca760..78383e283f2 100644 --- a/test/jasmine/tests/plot_api_test.js +++ b/test/jasmine/tests/plot_api_test.js @@ -2877,8 +2877,7 @@ describe('plot_api edit_types', function() { editTypes.update(flags, { valType: 'boolean', - dflt: true, - role: 'style' + dflt: true }); expect(flags).toEqual({calc: false, style: true}); @@ -2898,8 +2897,7 @@ describe('plot_api edit_types', function() { editTypes.update(flags, { editType: 'calc+style', valType: 'number', - dflt: 1, - role: 'style' + dflt: 1 }); expect(flags).toEqual({calc: true, legend: true, style: true});