@d3plus/core 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/charts/drawSteps/drawColorScale.js +7 -2
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +2 -2
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +2 -2
- package/umd/d3plus-core.js +3 -3
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +2 -2
package/umd/d3plus-core.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.
|
|
2
|
+
@d3plus/core v3.0.12
|
|
3
3
|
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
|
|
4
4
|
Copyright (c) 2025 D3plus - https://d3plus.org
|
|
5
5
|
@license MIT
|
|
@@ -2550,7 +2550,7 @@ if(this._playTimer)clearInterval(this._playTimer),this._playTimer=!1,this._playB
|
|
|
2550
2550
|
@function _drawColorScale
|
|
2551
2551
|
@desc Renders the color scale if this._colorScale is not falsey.
|
|
2552
2552
|
@private
|
|
2553
|
-
*/function ut(){var t=this._data;let i=this._colorScalePosition.bind(this)(this.config());[!1,"top","bottom","left","right"].includes(i)||(i="bottom");var e=["top","bottom"].includes(i),s=this._colorScale&&i,h=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0},n=this._width-(this._margin.left+this._margin.right+h.left+h.right),a=e?Dt.min([this._colorScaleMaxSize,n]):this._width-(this._margin.left+this._margin.right),r=this._height-(this._margin.bottom+this._margin.top+h.bottom+h.top),o=e?this._height-(this._margin.bottom+this._margin.top):Dt.min([this._colorScaleMaxSize,r]),n={opacity:i?1:0,transform:`translate(${e?this._margin.left+h.left+(n-a)/2:this._margin.left}, ${e?this._margin.top:this._margin.top+h.top+(r-o)/2})`},h=Pt.elem("g.d3plus-viz-colorScale",{condition:s&&!this._colorScaleConfig.select,enter:n,parent:this._select,duration:this._duration,update:n}).node();this._colorScale&&(r=t.filter((t,i)=>{t=this._colorScale(t,i);return null!=t}),this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[i]||"bottom").duration(this._duration).data(r).height(o).locale(this._locale).orient(i).select(h).value(this._colorScale).width(a).config(this._colorScaleConfig).render(),s)&&(n=this._colorScaleClass.outerBounds(),!this._colorScaleConfig.select)&&n.height&&(this._margin[i]+=e?n.height+2*this._legendClass.padding():n.width+2*this._legendClass.padding())}let pt=["fill","opacity","texture"];
|
|
2553
|
+
*/function ut(){var t=Array.from(Dt.rollup(this._data,t=>Lt.merge(t,this._aggs),(t,i)=>`${this._time?this._time(t,i):"all"}-`+this._ids(t,i).join("_")).values());let i=this._colorScalePosition.bind(this)(this.config());[!1,"top","bottom","left","right"].includes(i)||(i="bottom");var e=["top","bottom"].includes(i),s=this._colorScale&&i,h=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0},n=this._width-(this._margin.left+this._margin.right+h.left+h.right),a=e?Dt.min([this._colorScaleMaxSize,n]):this._width-(this._margin.left+this._margin.right),r=this._height-(this._margin.bottom+this._margin.top+h.bottom+h.top),o=e?this._height-(this._margin.bottom+this._margin.top):Dt.min([this._colorScaleMaxSize,r]),n={opacity:i?1:0,transform:`translate(${e?this._margin.left+h.left+(n-a)/2:this._margin.left}, ${e?this._margin.top:this._margin.top+h.top+(r-o)/2})`},h=Pt.elem("g.d3plus-viz-colorScale",{condition:s&&!this._colorScaleConfig.select,enter:n,parent:this._select,duration:this._duration,update:n}).node();this._colorScale&&(r=t.filter((t,i)=>{t=this._colorScale(t,i);return null!=t}),this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[i]||"bottom").duration(this._duration).data(r).height(o).locale(this._locale).orient(i).select(h).value(this._colorScale).width(a).config(this._colorScaleConfig).render(),s)&&(n=this._colorScaleClass.outerBounds(),!this._colorScaleConfig.select)&&n.height&&(this._margin[i]+=e?n.height+2*this._legendClass.padding():n.width+2*this._legendClass.padding())}let pt=["fill","opacity","texture"];
|
|
2554
2554
|
/**
|
|
2555
2555
|
@function legendLabel
|
|
2556
2556
|
@desc Default label function for the legend.
|