Skip to content

Commit

Permalink
2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Dec 3, 2021
1 parent 859fc7a commit 10d3930
Show file tree
Hide file tree
Showing 25 changed files with 878 additions and 204 deletions.
52 changes: 26 additions & 26 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 8.3 MB | 3.5 MB | 1 MB | 8.6 MB |

#### CDN links
> https://cdn.plot.ly/plotly-2.6.4.js
> https://cdn.plot.ly/plotly-2.7.0.js
> https://cdn.plot.ly/plotly-2.6.4.min.js
> https://cdn.plot.ly/plotly-2.7.0.min.js

#### npm packages
Expand Down Expand Up @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 973.2 kB | 316.7 kB |
| 2.7 MB | 973.5 kB | 316.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-2.6.4.js
> https://cdn.plot.ly/plotly-basic-2.7.0.js
> https://cdn.plot.ly/plotly-basic-2.6.4.min.js
> https://cdn.plot.ly/plotly-basic-2.7.0.min.js

#### npm packages
Expand All @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.2 MB | 388.3 kB |
| 3.3 MB | 1.2 MB | 388.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-2.6.4.js
> https://cdn.plot.ly/plotly-cartesian-2.7.0.js
> https://cdn.plot.ly/plotly-cartesian-2.6.4.min.js
> https://cdn.plot.ly/plotly-cartesian-2.7.0.min.js

#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3 MB | 1.1 MB | 359.5 kB |
| 3 MB | 1.1 MB | 359.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-2.6.4.js
> https://cdn.plot.ly/plotly-geo-2.7.0.js
> https://cdn.plot.ly/plotly-geo-2.6.4.min.js
> https://cdn.plot.ly/plotly-geo-2.7.0.min.js

#### npm packages
Expand All @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.8 MB | 1.5 MB | 479.7 kB |
| 3.8 MB | 1.5 MB | 479.8 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-2.6.4.js
> https://cdn.plot.ly/plotly-gl3d-2.7.0.js
> https://cdn.plot.ly/plotly-gl3d-2.6.4.min.js
> https://cdn.plot.ly/plotly-gl3d-2.7.0.min.js

#### npm packages
Expand All @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.3 MB | 1.8 MB | 570.1 kB |
| 4.3 MB | 1.8 MB | 570.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-2.6.4.js
> https://cdn.plot.ly/plotly-gl2d-2.7.0.js
> https://cdn.plot.ly/plotly-gl2d-2.6.4.min.js
> https://cdn.plot.ly/plotly-gl2d-2.7.0.min.js

#### npm packages
Expand All @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.3 MB | 1.7 MB | 513.8 kB |
| 4.3 MB | 1.7 MB | 513.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-2.6.4.js
> https://cdn.plot.ly/plotly-mapbox-2.7.0.js
> https://cdn.plot.ly/plotly-mapbox-2.6.4.min.js
> https://cdn.plot.ly/plotly-mapbox-2.7.0.min.js

#### npm packages
Expand All @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.9 MB | 1.1 MB | 349.3 kB |
| 2.9 MB | 1.1 MB | 349.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-2.6.4.js
> https://cdn.plot.ly/plotly-finance-2.7.0.js
> https://cdn.plot.ly/plotly-finance-2.6.4.min.js
> https://cdn.plot.ly/plotly-finance-2.7.0.min.js

#### npm packages
Expand All @@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 7.7 MB | 3.2 MB | 956 kB |
| 7.7 MB | 3.2 MB | 956.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-2.6.4.js
> https://cdn.plot.ly/plotly-strict-2.7.0.js
> https://cdn.plot.ly/plotly-strict-2.6.4.min.js
> https://cdn.plot.ly/plotly-strict-2.7.0.min.js

#### npm packages
Expand Down
117 changes: 117 additions & 0 deletions dist/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27922,6 +27922,24 @@
"editType": "calc",
"valType": "string"
},
"cliponaxis": {
"description": "Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
"dflt": true,
"editType": "plot",
"valType": "boolean"
},
"constraintext": {
"description": "Constrain the size of text inside or outside a bar to be no larger than the bar itself.",
"dflt": "both",
"editType": "calc",
"valType": "enumerated",
"values": [
"inside",
"outside",
"both",
"none"
]
},
"cumulative": {
"currentbin": {
"description": "Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it.",
Expand Down Expand Up @@ -28338,6 +28356,38 @@
"editType": "none",
"valType": "string"
},
"insidetextanchor": {
"description": "Determines if texts are kept at center or start/end points in `textposition` *inside* mode.",
"dflt": "end",
"editType": "plot",
"valType": "enumerated",
"values": [
"end",
"middle",
"start"
]
},
"insidetextfont": {
"color": {
"editType": "style",
"valType": "color"
},
"description": "Sets the font used for `text` lying inside the bar.",
"editType": "plot",
"family": {
"description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
"editType": "plot",
"noBlank": true,
"strict": true,
"valType": "string"
},
"role": "object",
"size": {
"editType": "plot",
"min": 1,
"valType": "number"
}
},
"legendgroup": {
"description": "Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items.",
"dflt": "",
Expand Down Expand Up @@ -29182,6 +29232,27 @@
"h"
]
},
"outsidetextfont": {
"color": {
"editType": "style",
"valType": "color"
},
"description": "Sets the font used for `text` lying outside the bar.",
"editType": "plot",
"family": {
"description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
"editType": "plot",
"noBlank": true,
"strict": true,
"valType": "string"
},
"role": "object",
"size": {
"editType": "plot",
"min": 1,
"valType": "number"
}
},
"selected": {
"editType": "style",
"marker": {
Expand Down Expand Up @@ -29248,11 +29319,57 @@
"editType": "calc",
"valType": "string"
},
"textangle": {
"description": "Sets the angle of the tick labels with respect to the bar. For example, a `tickangle` of -90 draws the tick labels vertically. With *auto* the texts may automatically be rotated to fit with the maximum size in bars.",
"dflt": "auto",
"editType": "plot",
"valType": "angle"
},
"textfont": {
"color": {
"editType": "style",
"valType": "color"
},
"description": "Sets the text font.",
"editType": "plot",
"family": {
"description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
"editType": "plot",
"noBlank": true,
"strict": true,
"valType": "string"
},
"role": "object",
"size": {
"editType": "plot",
"min": 1,
"valType": "number"
}
},
"textposition": {
"arrayOk": false,
"description": "Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears.",
"dflt": "auto",
"editType": "calc",
"valType": "enumerated",
"values": [
"inside",
"outside",
"auto",
"none"
]
},
"textsrc": {
"description": "Sets the source reference on Chart Studio Cloud for `text`.",
"editType": "none",
"valType": "string"
},
"texttemplate": {
"description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label` and `value`.",
"dflt": "",
"editType": "plot",
"valType": "string"
},
"transforms": {
"items": {
"transform": {
Expand Down
51 changes: 40 additions & 11 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v2.6.4
* plotly.js (basic) v2.7.0
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -51157,7 +51157,8 @@ function findUIPattern(key, patternSpecs) {
var spec = patternSpecs[i];
var match = key.match(spec.pattern);
if(match) {
return {head: match[1], attr: spec.attr};
var head = match[1] || '';
return {head: head, tail: key.substr(head.length + 1), attr: spec.attr};
}
}
}
Expand Down Expand Up @@ -51209,26 +51210,54 @@ function valsMatch(v1, v2) {

function applyUIRevisions(data, layout, oldFullData, oldFullLayout) {
var layoutPreGUI = oldFullLayout._preGUI;
var key, revAttr, oldRev, newRev, match, preGUIVal, newNP, newVal;
var key, revAttr, oldRev, newRev, match, preGUIVal, newNP, newVal, head, tail;
var bothInheritAutorange = [];
var newAutorangeIn = {};
var newRangeAccepted = {};
for(key in layoutPreGUI) {
match = findUIPattern(key, layoutUIControlPatterns);
if(match) {
revAttr = match.attr || (match.head + '.uirevision');
head = match.head;
tail = match.tail;
revAttr = match.attr || (head + '.uirevision');
oldRev = nestedProperty(oldFullLayout, revAttr).get();
newRev = oldRev && getNewRev(revAttr, layout);

if(newRev && (newRev === oldRev)) {
preGUIVal = layoutPreGUI[key];
if(preGUIVal === null) preGUIVal = undefined;
newNP = nestedProperty(layout, key);
newVal = newNP.get();

if(valsMatch(newVal, preGUIVal)) {
if(newVal === undefined && key.substr(key.length - 9) === 'autorange') {
bothInheritAutorange.push(key.substr(0, key.length - 10));
if(newVal === undefined && tail === 'autorange') {
bothInheritAutorange.push(head);
}
newNP.set(undefinedToNull(nestedProperty(oldFullLayout, key).get()));
continue;
} else if(tail === 'autorange' || tail.substr(0, 6) === 'range[') {
// Special case for (auto)range since we push it back into the layout
// so all null should be treated equivalently to autorange: true with any range
var pre0 = layoutPreGUI[head + '.range[0]'];
var pre1 = layoutPreGUI[head + '.range[1]'];
var preAuto = layoutPreGUI[head + '.autorange'];
if(preAuto || (preAuto === null && pre0 === null && pre1 === null)) {
// Only read the input layout once and stash the result,
// so we get it before we start modifying it
if(!(head in newAutorangeIn)) {
var newContainer = nestedProperty(layout, head).get();
newAutorangeIn[head] = newContainer && (
newContainer.autorange ||
(newContainer.autorange !== false && (
!newContainer.range || newContainer.range.length !== 2)
)
);
}
if(newAutorangeIn[head]) {
newNP.set(undefinedToNull(nestedProperty(oldFullLayout, key).get()));
continue;
}
}
}
}
} else {
Expand All @@ -51239,12 +51268,12 @@ function applyUIRevisions(data, layout, oldFullData, oldFullLayout) {
// so remove it from _preGUI for next time.
delete layoutPreGUI[key];

if(key.substr(key.length - 8, 6) === 'range[') {
newRangeAccepted[key.substr(0, key.length - 9)] = 1;
if(match && match.tail.substr(0, 6) === 'range[') {
newRangeAccepted[match.head] = 1;
}
}

// Special logic for `autorange`, since it interacts with `range`:
// More special logic for `autorange`, since it interacts with `range`:
// If the new figure's matching `range` was kept, and `autorange`
// wasn't supplied explicitly in either the original or the new figure,
// we shouldn't alter that - but we may just have done that, so fix it.
Expand Down Expand Up @@ -75590,7 +75619,7 @@ function appendBarText(gd, plotinfo, bar, cd, i, x0, x1, y0, y1, opts, makeOnCom
}

transform.fontSize = font.size;
recordMinTextSize(trace.type, transform, fullLayout);
recordMinTextSize(trace.type === 'histogram' ? 'bar' : trace.type, transform, fullLayout);
calcBar.transform = transform;

transition(textSelection, fullLayout, opts, makeOnCompleteCallback)
Expand Down Expand Up @@ -82291,7 +82320,7 @@ function getSortFunc(opts, d2c) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '2.6.4';
exports.version = '2.7.0';

},{}]},{},[8])(8)
});
Loading

0 comments on commit 10d3930

Please sign in to comment.