Skip to content

Switch template edit type to plot #7281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 1008.4 kB | 349.2 kB |
| 2.6 MB | 1008.5 kB | 349.2 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.0.js
Expand All @@ -114,7 +114,7 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.3 MB | 446.4 kB |
| 3.3 MB | 1.3 MB | 446.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.0.js
Expand Down Expand Up @@ -160,7 +160,7 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.1 MB | 1.5 MB | 513.6 kB |
| 4.1 MB | 1.5 MB | 513.7 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.0.js
Expand All @@ -183,7 +183,7 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.3 MB | 468.9 kB |
| 3.4 MB | 1.3 MB | 469 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.0.js
Expand Down Expand Up @@ -229,7 +229,7 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1.1 MB | 382.8 kB |
| 2.8 MB | 1.1 MB | 382.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.0.js
Expand Down
2 changes: 1 addition & 1 deletion dist/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11074,7 +11074,7 @@
},
"template": {
"description": "Default attributes to be applied to the plot. Templates can be created from existing plots using `Plotly.makeTemplate`, or created manually. They should be objects with format: `{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}` `layoutTemplate` and `traceTemplate` are objects matching the attribute structure of `layout` and a data trace. Trace templates are applied cyclically to traces of each type. Container arrays (eg `annotations`) have special handling: An object ending in `defaults` (eg `annotationdefaults`) is applied to each array item. But if an item has a `templateitemname` key we look in the template array for an item with matching `name` and apply that instead. If no matching `name` is found we mark the item invisible. Any named template item not referenced is appended to the end of the array, so you can use this for a watermark annotation or a logo image, for example. To omit one of these items on the plot, make an item with matching `templateitemname` and `visible: false`.",
"editType": "calc",
"editType": "plot",
"valType": "any"
},
"ternary": {
Expand Down
21 changes: 15 additions & 6 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13710,7 +13710,7 @@ var Plotly = (() => {
},
template: {
valType: "any",
editType: "calc"
editType: "plot"
},
newshape: drawNewShapeAttrs.newshape,
activeshape: drawNewShapeAttrs.activeshape,
Expand All @@ -13734,10 +13734,10 @@ var Plotly = (() => {
}
});

// stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
// stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
var maplibre_gl_exports = {};
var init_maplibre_gl2 = __esm({
"stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
"stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
init_maplibre_gl();
}
});
Expand Down Expand Up @@ -54107,8 +54107,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54121,18 +54127,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
12 changes: 6 additions & 6 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
Expand Up @@ -13710,7 +13710,7 @@ var Plotly = (() => {
},
template: {
valType: "any",
editType: "calc"
editType: "plot"
},
newshape: drawNewShapeAttrs.newshape,
activeshape: drawNewShapeAttrs.activeshape,
Expand All @@ -13734,10 +13734,10 @@ var Plotly = (() => {
}
});

// stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
// stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
var maplibre_gl_exports = {};
var init_maplibre_gl2 = __esm({
"stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
"stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
init_maplibre_gl();
}
});
Expand Down Expand Up @@ -54107,8 +54107,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54121,18 +54127,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
28 changes: 14 additions & 14 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions dist/plotly-finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -13714,7 +13714,7 @@ var Plotly = (() => {
},
template: {
valType: "any",
editType: "calc"
editType: "plot"
},
newshape: drawNewShapeAttrs.newshape,
activeshape: drawNewShapeAttrs.activeshape,
Expand All @@ -13738,10 +13738,10 @@ var Plotly = (() => {
}
});

// stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
// stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
var maplibre_gl_exports = {};
var init_maplibre_gl2 = __esm({
"stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
"stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
init_maplibre_gl();
}
});
Expand Down Expand Up @@ -54111,8 +54111,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54125,18 +54131,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
10 changes: 5 additions & 5 deletions dist/plotly-finance.min.js

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions dist/plotly-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13710,7 +13710,7 @@ var Plotly = (() => {
},
template: {
valType: "any",
editType: "calc"
editType: "plot"
},
newshape: drawNewShapeAttrs.newshape,
activeshape: drawNewShapeAttrs.activeshape,
Expand All @@ -13734,10 +13734,10 @@ var Plotly = (() => {
}
});

// stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
// stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
var maplibre_gl_exports = {};
var init_maplibre_gl2 = __esm({
"stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
"stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
init_maplibre_gl();
}
});
Expand Down Expand Up @@ -54107,8 +54107,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54121,18 +54127,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
10 changes: 5 additions & 5 deletions dist/plotly-geo.min.js

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions dist/plotly-gl2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -13710,7 +13710,7 @@ var Plotly = (() => {
},
template: {
valType: "any",
editType: "calc"
editType: "plot"
},
newshape: drawNewShapeAttrs.newshape,
activeshape: drawNewShapeAttrs.activeshape,
Expand All @@ -13734,10 +13734,10 @@ var Plotly = (() => {
}
});

// stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
// stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
var maplibre_gl_exports = {};
var init_maplibre_gl2 = __esm({
"stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
"stylePlugin:/Users/marthacryan/gitrepos/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
init_maplibre_gl();
}
});
Expand Down Expand Up @@ -54107,8 +54107,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54121,18 +54127,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
56 changes: 28 additions & 28 deletions dist/plotly-gl2d.min.js

Large diffs are not rendered by default.

Loading