From 0259448227f971b2be697eff6811c1933b4c7eea Mon Sep 17 00:00:00 2001 From: adamgayoso Date: Mon, 20 Mar 2023 18:16:49 -0700 Subject: [PATCH] bump --- pyproject.toml | 2 +- .../static/thirdparty/plotly/plotly.min.js | 155 ++++++++---------- 2 files changed, 66 insertions(+), 91 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a59cc55..d57854e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = ["hatchling"] [project] name = "visionpy-sc" -version = "0.1.0" +version = "0.2.0" description = "Signature Analysis and Visualization for Single-Cell RNA-seq" readme = "README.md" requires-python = ">=3.8" diff --git a/src/visionpy/static/thirdparty/plotly/plotly.min.js b/src/visionpy/static/thirdparty/plotly/plotly.min.js index 3b0f540..a5b2852 100644 --- a/src/visionpy/static/thirdparty/plotly/plotly.min.js +++ b/src/visionpy/static/thirdparty/plotly/plotly.min.js @@ -1088,14 +1088,12 @@ } function Y(r) { return ( - r - .call(c.font, H) - .attr({ - "text-anchor": - { left: "start", right: "end" }[ - e.align - ] || "middle", - }), + r.call(c.font, H).attr({ + "text-anchor": + { left: "start", right: "end" }[ + e.align + ] || "middle", + }), h.convertToTspans(r, t, W), r ); @@ -28575,12 +28573,10 @@ (O += "-math"), P.selectAll("svg." + O).remove(), P.selectAll("g." + O + "-group").remove(), - t - .style("display", null) - .attr({ - "data-unformatted": S, - "data-math": "N", - }), + t.style("display", null).attr({ + "data-unformatted": S, + "data-math": "N", + }), E ? ((r && r._promises) || []).push( new Promise(function (e) { @@ -28934,12 +28930,10 @@ o.svg, "tspan", ); - n - .select(e) - .attr({ - class: "line", - dy: u * s + "em", - }), + n.select(e).attr({ + class: "line", + dy: u * s + "em", + }), t.appendChild(e), (r = e); var i = l; @@ -48354,17 +48348,15 @@ ) { var i = e._plots[r[n]]._scene2d, a = i.toImage("png"); - e._glimages - .append("svg:image") - .attr({ - xmlns: o.svg, - "xlink:href": a, - x: 0, - y: 0, - width: "100%", - height: "100%", - preserveAspectRatio: "none", - }), + e._glimages.append("svg:image").attr({ + xmlns: o.svg, + "xlink:href": a, + x: 0, + y: 0, + width: "100%", + height: "100%", + preserveAspectRatio: "none", + }), i.destroy(); } }), @@ -49134,17 +49126,15 @@ o = a.domain, s = a._scene, u = s.toImage("png"); - e._glimages - .append("svg:image") - .attr({ - xmlns: l.svg, - "xlink:href": u, - x: n.l + n.w * o.x[0], - y: n.t + n.h * (1 - o.y[1]), - width: n.w * (o.x[1] - o.x[0]), - height: n.h * (o.y[1] - o.y[0]), - preserveAspectRatio: "none", - }), + e._glimages.append("svg:image").attr({ + xmlns: l.svg, + "xlink:href": u, + x: n.l + n.w * o.x[0], + y: n.t + n.h * (1 - o.y[1]), + width: n.w * (o.x[1] - o.x[0]), + height: n.h * (o.y[1] - o.y[0]), + preserveAspectRatio: "none", + }), s.destroy(); } }), @@ -51536,17 +51526,15 @@ var s = e[r[i]], h = s.domain, p = s._subplot.toImage("png"); - e._glimages - .append("svg:image") - .attr({ - xmlns: l.svg, - "xlink:href": p, - x: n.l + n.w * h.x[0], - y: n.t + n.h * (1 - h.y[1]), - width: n.w * (h.x[1] - h.x[0]), - height: n.h * (h.y[1] - h.y[0]), - preserveAspectRatio: "none", - }); + e._glimages.append("svg:image").attr({ + xmlns: l.svg, + "xlink:href": p, + x: n.l + n.w * h.x[0], + y: n.t + n.h * (1 - h.y[1]), + width: n.w * (h.x[1] - h.x[0]), + height: n.h * (h.y[1] - h.y[0]), + preserveAspectRatio: "none", + }); var v = u.select(s._subplot.div); if ( null !== @@ -52939,13 +52927,11 @@ .append("div") .attr("id", "hiddenform") .style("display", "none"), - i = r - .append("form") - .attr({ - action: e + "/external", - method: "post", - target: "_blank", - }); + i = r.append("form").attr({ + action: e + "/external", + method: "post", + target: "_blank", + }); return ( (i .append("input") @@ -64654,14 +64640,10 @@ ? i.identity : [], ); - d - .enter() - .append("path") - .attr("class", "mean") - .style({ - fill: "none", - "vector-effect": "non-scaling-stroke", - }), + d.enter().append("path").attr("class", "mean").style({ + fill: "none", + "vector-effect": "non-scaling-stroke", + }), d.exit().remove(), d.each(function (t) { var e = u.c2l(t.pos + f, !0), @@ -74178,13 +74160,10 @@ (t._hmlumcount || 0) + ft * Dt.getLuminance()); var zt = P.selectAll("image").data(e); - zt - .enter() - .append("svg:image") - .attr({ - xmlns: d.svg, - preserveAspectRatio: "none", - }), + zt.enter().append("svg:image").attr({ + xmlns: d.svg, + preserveAspectRatio: "none", + }), zt.attr({ height: K, width: J, @@ -77210,12 +77189,10 @@ r.selectAll("image").data([]).exit().remove(); else { var L = r.selectAll("image").data([e]); - L.enter() - .append("svg:image") - .attr({ - xmlns: o.svg, - preserveAspectRatio: "none", - }), + L.enter().append("svg:image").attr({ + xmlns: o.svg, + preserveAspectRatio: "none", + }), L.exit().remove(); var C = !1 === u.zsmooth ? s.pixelatedStyle : ""; @@ -85005,15 +84982,13 @@ A = s.rangefont, M = i.extendDeepNoArrays({}, u, { color: l.map( - n.scale - .linear() - .domain( - T({ - values: l, - range: [f.min, f.max], - _length: s._length, - }), - ), + n.scale.linear().domain( + T({ + values: l, + range: [f.min, f.max], + _length: s._length, + }), + ), ), blockLineCount: m.blockLineCount, canvasOverdrag: m.overdrag * m.canvasPixelRatio,