@nebula.js/sn-waterfall 1.2.0 → 1.3.0
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/api-specifications/properties.json +1 -1
- package/core/esm/index.js +400 -195
- package/core/esm/index.js.map +1 -1
- package/dist/sn-waterfall.js +406 -201
- package/dist/sn-waterfall.js.map +1 -1
- package/dist/sn-waterfall.systemjs.js +397 -192
- package/dist/sn-waterfall.systemjs.js.map +1 -1
- package/package.json +2 -2
- package/sn-waterfall-ext/dist/sn-waterfall.js +406 -201
- package/sn-waterfall-ext/sn-waterfall.qext +1 -1
package/dist/sn-waterfall.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-waterfall v1.
|
|
2
|
+
* @nebula.js/sn-waterfall v1.3.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -8944,17 +8944,17 @@
|
|
|
8944
8944
|
*
|
|
8945
8945
|
* @param {String} p Pattern (optional)
|
|
8946
8946
|
* @return {String} Returns the pattern
|
|
8947
|
-
*/format.pattern=function patternFn(p){if(p){pattern=p;d3format=locale.format(p);}return pattern;};return format;}const t0=new Date(),t1=new Date();function timeInterval(floori,offseti,count,field){function interval(date){return floori(date=arguments.length===0?new Date():new Date(+date)),date;}interval.floor=date=>{return floori(date=new Date(+date)),date;};interval.ceil=date=>{return floori(date=new Date(date-1)),offseti(date,1),floori(date),date;};interval.round=date=>{const d0=interval(date),d1=interval.ceil(date);return date-d0<d1-date?d0:d1;};interval.offset=(date,step)=>{return offseti(date=new Date(+date),step==null?1:Math.floor(step)),date;};interval.range=(start,stop,step)=>{const range=[];start=interval.ceil(start);step=step==null?1:Math.floor(step);if(!(start<stop)||!(step>0))return range;// also handles Invalid Date
|
|
8947
|
+
*/format.pattern=function patternFn(p){if(p){pattern=p;d3format=locale.format(p);}return pattern;};return format;}const t0$1=new Date(),t1$1=new Date();function timeInterval(floori,offseti,count,field){function interval(date){return floori(date=arguments.length===0?new Date():new Date(+date)),date;}interval.floor=date=>{return floori(date=new Date(+date)),date;};interval.ceil=date=>{return floori(date=new Date(date-1)),offseti(date,1),floori(date),date;};interval.round=date=>{const d0=interval(date),d1=interval.ceil(date);return date-d0<d1-date?d0:d1;};interval.offset=(date,step)=>{return offseti(date=new Date(+date),step==null?1:Math.floor(step)),date;};interval.range=(start,stop,step)=>{const range=[];start=interval.ceil(start);step=step==null?1:Math.floor(step);if(!(start<stop)||!(step>0))return range;// also handles Invalid Date
|
|
8948
8948
|
let previous;do range.push(previous=new Date(+start)),offseti(start,step),floori(start);while(previous<start&&start<stop);return range;};interval.filter=test=>{return timeInterval(date=>{if(date>=date)while(floori(date),!test(date))date.setTime(date-1);},(date,step)=>{if(date>=date){if(step<0)while(++step<=0){while(offseti(date,-1),!test(date)){}// eslint-disable-line no-empty
|
|
8949
8949
|
}else while(--step>=0){while(offseti(date,1),!test(date)){}// eslint-disable-line no-empty
|
|
8950
|
-
}}});};if(count){interval.count=(start,end)=>{t0.setTime(+start),t1.setTime(+end);floori(t0),floori(t1);return Math.floor(count(t0,t1));};interval.every=step=>{step=Math.floor(step);return !isFinite(step)||!(step>0)?null:!(step>1)?interval:interval.filter(field?d=>field(d)%step===0:d=>interval.count(0,d)%step===0);};}return interval;}const durationSecond=1000;const durationMinute=durationSecond*60;const durationHour=durationMinute*60;const durationDay=durationHour*24;const durationWeek=durationDay*7;const timeDay=timeInterval(date=>date.setHours(0,0,0,0),(date,step)=>date.setDate(date.getDate()+step),(start,end)=>(end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute)/durationDay,date=>date.getDate()-1);timeDay.range;const utcDay=timeInterval(date=>{date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCDate(date.getUTCDate()+step);},(start,end)=>{return (end-start)/durationDay;},date=>{return date.getUTCDate()-1;});utcDay.range;const unixDay=timeInterval(date=>{date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCDate(date.getUTCDate()+step);},(start,end)=>{return (end-start)/durationDay;},date=>{return Math.floor(date/durationDay);});unixDay.range;function timeWeekday(i){return timeInterval(date=>{date.setDate(date.getDate()-(date.getDay()+7-i)%7);date.setHours(0,0,0,0);},(date,step)=>{date.setDate(date.getDate()+step*7);},(start,end)=>{return (end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute)/durationWeek;});}const timeSunday=timeWeekday(0);const timeMonday=timeWeekday(1);const timeTuesday=timeWeekday(2);const timeWednesday=timeWeekday(3);const timeThursday=timeWeekday(4);const timeFriday=timeWeekday(5);const timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(i){return timeInterval(date=>{date.setUTCDate(date.getUTCDate()-(date.getUTCDay()+7-i)%7);date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCDate(date.getUTCDate()+step*7);},(start,end)=>{return (end-start)/durationWeek;});}const utcSunday=utcWeekday(0);const utcMonday=utcWeekday(1);const utcTuesday=utcWeekday(2);const utcWednesday=utcWeekday(3);const utcThursday=utcWeekday(4);const utcFriday=utcWeekday(5);const utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeYear=timeInterval(date=>{date.setMonth(0,1);date.setHours(0,0,0,0);},(date,step)=>{date.setFullYear(date.getFullYear()+step);},(start,end)=>{return end.getFullYear()-start.getFullYear();},date=>{return date.getFullYear();});// An optimized implementation for this simple case.
|
|
8950
|
+
}}});};if(count){interval.count=(start,end)=>{t0$1.setTime(+start),t1$1.setTime(+end);floori(t0$1),floori(t1$1);return Math.floor(count(t0$1,t1$1));};interval.every=step=>{step=Math.floor(step);return !isFinite(step)||!(step>0)?null:!(step>1)?interval:interval.filter(field?d=>field(d)%step===0:d=>interval.count(0,d)%step===0);};}return interval;}const durationSecond=1000;const durationMinute=durationSecond*60;const durationHour=durationMinute*60;const durationDay=durationHour*24;const durationWeek=durationDay*7;const timeDay=timeInterval(date=>date.setHours(0,0,0,0),(date,step)=>date.setDate(date.getDate()+step),(start,end)=>(end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute)/durationDay,date=>date.getDate()-1);timeDay.range;const utcDay=timeInterval(date=>{date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCDate(date.getUTCDate()+step);},(start,end)=>{return (end-start)/durationDay;},date=>{return date.getUTCDate()-1;});utcDay.range;const unixDay=timeInterval(date=>{date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCDate(date.getUTCDate()+step);},(start,end)=>{return (end-start)/durationDay;},date=>{return Math.floor(date/durationDay);});unixDay.range;function timeWeekday(i){return timeInterval(date=>{date.setDate(date.getDate()-(date.getDay()+7-i)%7);date.setHours(0,0,0,0);},(date,step)=>{date.setDate(date.getDate()+step*7);},(start,end)=>{return (end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute)/durationWeek;});}const timeSunday=timeWeekday(0);const timeMonday=timeWeekday(1);const timeTuesday=timeWeekday(2);const timeWednesday=timeWeekday(3);const timeThursday=timeWeekday(4);const timeFriday=timeWeekday(5);const timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(i){return timeInterval(date=>{date.setUTCDate(date.getUTCDate()-(date.getUTCDay()+7-i)%7);date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCDate(date.getUTCDate()+step*7);},(start,end)=>{return (end-start)/durationWeek;});}const utcSunday=utcWeekday(0);const utcMonday=utcWeekday(1);const utcTuesday=utcWeekday(2);const utcWednesday=utcWeekday(3);const utcThursday=utcWeekday(4);const utcFriday=utcWeekday(5);const utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeYear=timeInterval(date=>{date.setMonth(0,1);date.setHours(0,0,0,0);},(date,step)=>{date.setFullYear(date.getFullYear()+step);},(start,end)=>{return end.getFullYear()-start.getFullYear();},date=>{return date.getFullYear();});// An optimized implementation for this simple case.
|
|
8951
8951
|
timeYear.every=k=>{return !isFinite(k=Math.floor(k))||!(k>0)?null:timeInterval(date=>{date.setFullYear(Math.floor(date.getFullYear()/k)*k);date.setMonth(0,1);date.setHours(0,0,0,0);},(date,step)=>{date.setFullYear(date.getFullYear()+step*k);});};timeYear.range;const utcYear=timeInterval(date=>{date.setUTCMonth(0,1);date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCFullYear(date.getUTCFullYear()+step);},(start,end)=>{return end.getUTCFullYear()-start.getUTCFullYear();},date=>{return date.getUTCFullYear();});// An optimized implementation for this simple case.
|
|
8952
8952
|
utcYear.every=k=>{return !isFinite(k=Math.floor(k))||!(k>0)?null:timeInterval(date=>{date.setUTCFullYear(Math.floor(date.getUTCFullYear()/k)*k);date.setUTCMonth(0,1);date.setUTCHours(0,0,0,0);},(date,step)=>{date.setUTCFullYear(date.getUTCFullYear()+step*k);});};utcYear.range;function ascending$1(a,b){return a==null||b==null?NaN:a<b?-1:a>b?1:a>=b?0:NaN;}function descending$2(a,b){return a==null||b==null?NaN:b<a?-1:b>a?1:b>=a?0:NaN;}function bisector$1(f){let compare1,compare2,delta;// If an accessor is specified, promote it to a comparator. In this case we
|
|
8953
8953
|
// can test whether the search value is (self-) comparable. We can’t do this
|
|
8954
8954
|
// for a comparator (except for specific, known comparators) because we can’t
|
|
8955
8955
|
// tell if the comparator is symmetric, and an asymmetric comparator can’t be
|
|
8956
8956
|
// used to test whether a single value is comparable.
|
|
8957
|
-
if(f.length!==2){compare1=ascending$1;compare2=(d,x)=>ascending$1(f(d),x);delta=(d,x)=>f(d)-x;}else {compare1=f===ascending$1||f===descending$2?f:zero$1$1;compare2=f;delta=f;}function left(a,x,lo=0,hi=a.length){if(lo<hi){if(compare1(x,x)!==0)return hi;do{const mid=lo+hi>>>1;if(compare2(a[mid],x)<0)lo=mid+1;else hi=mid;}while(lo<hi);}return lo;}function right(a,x,lo=0,hi=a.length){if(lo<hi){if(compare1(x,x)!==0)return hi;do{const mid=lo+hi>>>1;if(compare2(a[mid],x)<=0)lo=mid+1;else hi=mid;}while(lo<hi);}return lo;}function center(a,x,lo=0,hi=a.length){const i=left(a,x,lo,hi-1);return i>lo&&delta(a[i-1],x)>-delta(a[i],x)?i-1:i;}return {left,center,right};}function zero$1$1(){return 0;}function number$2(x){return x===null?NaN:+x;}const ascendingBisect$1=bisector$1(ascending$1);const bisectRight$1=ascendingBisect$1.right;bisector$1(number$2).center;var bisect=bisectRight$1;class InternMap extends Map{constructor(entries,key=keyof){super();Object.defineProperties(this,{_intern:{value:new Map()},_key:{value:key}});if(entries!=null)for(const[key,value]of entries)this.set(key,value);}get(key){return super.get(intern_get(this,key));}has(key){return super.has(intern_get(this,key));}set(key,value){return super.set(intern_set(this,key),value);}delete(key){return super.delete(intern_delete(this,key));}}function intern_get({_intern,_key},value){const key=_key(value);return _intern.has(key)?_intern.get(key):value;}function intern_set({_intern,_key},value){const key=_key(value);if(_intern.has(key))return _intern.get(key);_intern.set(key,value);return value;}function intern_delete({_intern,_key},value){const key=_key(value);if(_intern.has(key)){value=_intern.get(key);_intern.delete(key);}return value;}function keyof(value){return value!==null&&typeof value==="object"?value.valueOf():value;}const e10$1=Math.sqrt(50),e5$1=Math.sqrt(10),e2$1=Math.sqrt(2);function tickSpec$1(start,stop,count){const step=(stop-start)/Math.max(0,count),power=Math.floor(Math.log10(step)),error=step/Math.pow(10,power),factor=error>=e10$1?10:error>=e5$1?5:error>=e2$1?2:1;let i1,i2,inc;if(power<0){inc=Math.pow(10,-power)/factor;i1=Math.round(start*inc);i2=Math.round(stop*inc);if(i1/inc<start)++i1;if(i2/inc>stop)--i2;inc=-inc;}else {inc=Math.pow(10,power)*factor;i1=Math.round(start/inc);i2=Math.round(stop/inc);if(i1*inc<start)++i1;if(i2*inc>stop)--i2;}if(i2<i1&&0.5<=count&&count<2)return tickSpec$1(start,stop,count*2);return [i1,i2,inc];}function ticks$1(start,stop,count){stop=+stop,start=+start,count=+count;if(!(count>0))return [];if(start===stop)return [start];const reverse=stop<start,[i1,i2,inc]=reverse?tickSpec$1(stop,start,count):tickSpec$1(start,stop,count);if(!(i2>=i1))return [];const n=i2-i1+1,ticks=new Array(n);if(reverse){if(inc<0)for(let i=0;i<n;++i)ticks[i]=(i2-i)/-inc;else for(let i=0;i<n;++i)ticks[i]=(i2-i)*inc;}else {if(inc<0)for(let i=0;i<n;++i)ticks[i]=(i1+i)/-inc;else for(let i=0;i<n;++i)ticks[i]=(i1+i)*inc;}return ticks;}function tickIncrement$1(start,stop,count){stop=+stop,start=+start,count=+count;return tickSpec$1(start,stop,count)[2];}function tickStep$1(start,stop,count){stop=+stop,start=+start,count=+count;const reverse=stop<start,inc=reverse?tickIncrement$1(stop,start,count):tickIncrement$1(start,stop,count);return (reverse?-1:1)*(inc<0?1/-inc:inc);}function range$1(start,stop,step){start=+start,stop=+stop,step=(n=arguments.length)<2?(stop=start,start=0,1):n<3?1:+step;var i=-1,n=Math.max(0,Math.ceil((stop-start)/step))|0,range=new Array(n);while(++i<n){range[i]=start+i*step;}return range;}function localDate(d){if(0<=d.y&&d.y<100){var date=new Date(-1,d.m,d.d,d.H,d.M,d.S,d.L);date.setFullYear(d.y);return date;}return new Date(d.y,d.m,d.d,d.H,d.M,d.S,d.L);}function utcDate(d){if(0<=d.y&&d.y<100){var date=new Date(Date.UTC(-1,d.m,d.d,d.H,d.M,d.S,d.L));date.setUTCFullYear(d.y);return date;}return new Date(Date.UTC(d.y,d.m,d.d,d.H,d.M,d.S,d.L));}function newDate(y,m,d){return {y:y,m:m,d:d,H:0,M:0,S:0,L:0};}function formatLocale$2(locale){var locale_dateTime=locale.dateTime,locale_date=locale.date,locale_time=locale.time,locale_periods=locale.periods,locale_weekdays=locale.days,locale_shortWeekdays=locale.shortDays,locale_months=locale.months,locale_shortMonths=locale.shortMonths;var periodRe=formatRe(locale_periods),periodLookup=formatLookup(locale_periods),weekdayRe=formatRe(locale_weekdays),weekdayLookup=formatLookup(locale_weekdays),shortWeekdayRe=formatRe(locale_shortWeekdays),shortWeekdayLookup=formatLookup(locale_shortWeekdays),monthRe=formatRe(locale_months),monthLookup=formatLookup(locale_months),shortMonthRe=formatRe(locale_shortMonths),shortMonthLookup=formatLookup(locale_shortMonths);var formats={"a":formatShortWeekday,"A":formatWeekday,"b":formatShortMonth,"B":formatMonth,"c":null,"d":formatDayOfMonth,"e":formatDayOfMonth,"f":formatMicroseconds,"g":formatYearISO,"G":formatFullYearISO,"H":formatHour24,"I":formatHour12,"j":formatDayOfYear,"L":formatMilliseconds,"m":formatMonthNumber,"M":formatMinutes,"p":formatPeriod,"q":formatQuarter,"Q":formatUnixTimestamp,"s":formatUnixTimestampSeconds,"S":formatSeconds,"u":formatWeekdayNumberMonday,"U":formatWeekNumberSunday,"V":formatWeekNumberISO,"w":formatWeekdayNumberSunday,"W":formatWeekNumberMonday,"x":null,"X":null,"y":formatYear,"Y":formatFullYear,"Z":formatZone,"%":formatLiteralPercent};var utcFormats={"a":formatUTCShortWeekday,"A":formatUTCWeekday,"b":formatUTCShortMonth,"B":formatUTCMonth,"c":null,"d":formatUTCDayOfMonth,"e":formatUTCDayOfMonth,"f":formatUTCMicroseconds,"g":formatUTCYearISO,"G":formatUTCFullYearISO,"H":formatUTCHour24,"I":formatUTCHour12,"j":formatUTCDayOfYear,"L":formatUTCMilliseconds,"m":formatUTCMonthNumber,"M":formatUTCMinutes,"p":formatUTCPeriod,"q":formatUTCQuarter,"Q":formatUnixTimestamp,"s":formatUnixTimestampSeconds,"S":formatUTCSeconds,"u":formatUTCWeekdayNumberMonday,"U":formatUTCWeekNumberSunday,"V":formatUTCWeekNumberISO,"w":formatUTCWeekdayNumberSunday,"W":formatUTCWeekNumberMonday,"x":null,"X":null,"y":formatUTCYear,"Y":formatUTCFullYear,"Z":formatUTCZone,"%":formatLiteralPercent};var parses={"a":parseShortWeekday,"A":parseWeekday,"b":parseShortMonth,"B":parseMonth,"c":parseLocaleDateTime,"d":parseDayOfMonth,"e":parseDayOfMonth,"f":parseMicroseconds,"g":parseYear,"G":parseFullYear,"H":parseHour24,"I":parseHour24,"j":parseDayOfYear,"L":parseMilliseconds,"m":parseMonthNumber,"M":parseMinutes,"p":parsePeriod,"q":parseQuarter,"Q":parseUnixTimestamp,"s":parseUnixTimestampSeconds,"S":parseSeconds,"u":parseWeekdayNumberMonday,"U":parseWeekNumberSunday,"V":parseWeekNumberISO,"w":parseWeekdayNumberSunday,"W":parseWeekNumberMonday,"x":parseLocaleDate,"X":parseLocaleTime,"y":parseYear,"Y":parseFullYear,"Z":parseZone,"%":parseLiteralPercent};// These recursive directive definitions must be deferred.
|
|
8957
|
+
if(f.length!==2){compare1=ascending$1;compare2=(d,x)=>ascending$1(f(d),x);delta=(d,x)=>f(d)-x;}else {compare1=f===ascending$1||f===descending$2?f:zero$1$1;compare2=f;delta=f;}function left(a,x,lo=0,hi=a.length){if(lo<hi){if(compare1(x,x)!==0)return hi;do{const mid=lo+hi>>>1;if(compare2(a[mid],x)<0)lo=mid+1;else hi=mid;}while(lo<hi);}return lo;}function right(a,x,lo=0,hi=a.length){if(lo<hi){if(compare1(x,x)!==0)return hi;do{const mid=lo+hi>>>1;if(compare2(a[mid],x)<=0)lo=mid+1;else hi=mid;}while(lo<hi);}return lo;}function center(a,x,lo=0,hi=a.length){const i=left(a,x,lo,hi-1);return i>lo&&delta(a[i-1],x)>-delta(a[i],x)?i-1:i;}return {left,center,right};}function zero$1$1(){return 0;}function number$2$1(x){return x===null?NaN:+x;}const ascendingBisect$1=bisector$1(ascending$1);const bisectRight$1=ascendingBisect$1.right;bisector$1(number$2$1).center;var bisect=bisectRight$1;class InternMap extends Map{constructor(entries,key=keyof){super();Object.defineProperties(this,{_intern:{value:new Map()},_key:{value:key}});if(entries!=null)for(const[key,value]of entries)this.set(key,value);}get(key){return super.get(intern_get(this,key));}has(key){return super.has(intern_get(this,key));}set(key,value){return super.set(intern_set(this,key),value);}delete(key){return super.delete(intern_delete(this,key));}}function intern_get({_intern,_key},value){const key=_key(value);return _intern.has(key)?_intern.get(key):value;}function intern_set({_intern,_key},value){const key=_key(value);if(_intern.has(key))return _intern.get(key);_intern.set(key,value);return value;}function intern_delete({_intern,_key},value){const key=_key(value);if(_intern.has(key)){value=_intern.get(key);_intern.delete(key);}return value;}function keyof(value){return value!==null&&typeof value==="object"?value.valueOf():value;}const e10$1=Math.sqrt(50),e5$1=Math.sqrt(10),e2$1=Math.sqrt(2);function tickSpec$1(start,stop,count){const step=(stop-start)/Math.max(0,count),power=Math.floor(Math.log10(step)),error=step/Math.pow(10,power),factor=error>=e10$1?10:error>=e5$1?5:error>=e2$1?2:1;let i1,i2,inc;if(power<0){inc=Math.pow(10,-power)/factor;i1=Math.round(start*inc);i2=Math.round(stop*inc);if(i1/inc<start)++i1;if(i2/inc>stop)--i2;inc=-inc;}else {inc=Math.pow(10,power)*factor;i1=Math.round(start/inc);i2=Math.round(stop/inc);if(i1*inc<start)++i1;if(i2*inc>stop)--i2;}if(i2<i1&&0.5<=count&&count<2)return tickSpec$1(start,stop,count*2);return [i1,i2,inc];}function ticks$1(start,stop,count){stop=+stop,start=+start,count=+count;if(!(count>0))return [];if(start===stop)return [start];const reverse=stop<start,[i1,i2,inc]=reverse?tickSpec$1(stop,start,count):tickSpec$1(start,stop,count);if(!(i2>=i1))return [];const n=i2-i1+1,ticks=new Array(n);if(reverse){if(inc<0)for(let i=0;i<n;++i)ticks[i]=(i2-i)/-inc;else for(let i=0;i<n;++i)ticks[i]=(i2-i)*inc;}else {if(inc<0)for(let i=0;i<n;++i)ticks[i]=(i1+i)/-inc;else for(let i=0;i<n;++i)ticks[i]=(i1+i)*inc;}return ticks;}function tickIncrement$1(start,stop,count){stop=+stop,start=+start,count=+count;return tickSpec$1(start,stop,count)[2];}function tickStep$1(start,stop,count){stop=+stop,start=+start,count=+count;const reverse=stop<start,inc=reverse?tickIncrement$1(stop,start,count):tickIncrement$1(start,stop,count);return (reverse?-1:1)*(inc<0?1/-inc:inc);}function range$1(start,stop,step){start=+start,stop=+stop,step=(n=arguments.length)<2?(stop=start,start=0,1):n<3?1:+step;var i=-1,n=Math.max(0,Math.ceil((stop-start)/step))|0,range=new Array(n);while(++i<n){range[i]=start+i*step;}return range;}function localDate(d){if(0<=d.y&&d.y<100){var date=new Date(-1,d.m,d.d,d.H,d.M,d.S,d.L);date.setFullYear(d.y);return date;}return new Date(d.y,d.m,d.d,d.H,d.M,d.S,d.L);}function utcDate(d){if(0<=d.y&&d.y<100){var date=new Date(Date.UTC(-1,d.m,d.d,d.H,d.M,d.S,d.L));date.setUTCFullYear(d.y);return date;}return new Date(Date.UTC(d.y,d.m,d.d,d.H,d.M,d.S,d.L));}function newDate(y,m,d){return {y:y,m:m,d:d,H:0,M:0,S:0,L:0};}function formatLocale$2(locale){var locale_dateTime=locale.dateTime,locale_date=locale.date,locale_time=locale.time,locale_periods=locale.periods,locale_weekdays=locale.days,locale_shortWeekdays=locale.shortDays,locale_months=locale.months,locale_shortMonths=locale.shortMonths;var periodRe=formatRe(locale_periods),periodLookup=formatLookup(locale_periods),weekdayRe=formatRe(locale_weekdays),weekdayLookup=formatLookup(locale_weekdays),shortWeekdayRe=formatRe(locale_shortWeekdays),shortWeekdayLookup=formatLookup(locale_shortWeekdays),monthRe=formatRe(locale_months),monthLookup=formatLookup(locale_months),shortMonthRe=formatRe(locale_shortMonths),shortMonthLookup=formatLookup(locale_shortMonths);var formats={"a":formatShortWeekday,"A":formatWeekday,"b":formatShortMonth,"B":formatMonth,"c":null,"d":formatDayOfMonth,"e":formatDayOfMonth,"f":formatMicroseconds,"g":formatYearISO,"G":formatFullYearISO,"H":formatHour24,"I":formatHour12,"j":formatDayOfYear,"L":formatMilliseconds,"m":formatMonthNumber,"M":formatMinutes,"p":formatPeriod,"q":formatQuarter,"Q":formatUnixTimestamp,"s":formatUnixTimestampSeconds,"S":formatSeconds,"u":formatWeekdayNumberMonday,"U":formatWeekNumberSunday,"V":formatWeekNumberISO,"w":formatWeekdayNumberSunday,"W":formatWeekNumberMonday,"x":null,"X":null,"y":formatYear,"Y":formatFullYear,"Z":formatZone,"%":formatLiteralPercent};var utcFormats={"a":formatUTCShortWeekday,"A":formatUTCWeekday,"b":formatUTCShortMonth,"B":formatUTCMonth,"c":null,"d":formatUTCDayOfMonth,"e":formatUTCDayOfMonth,"f":formatUTCMicroseconds,"g":formatUTCYearISO,"G":formatUTCFullYearISO,"H":formatUTCHour24,"I":formatUTCHour12,"j":formatUTCDayOfYear,"L":formatUTCMilliseconds,"m":formatUTCMonthNumber,"M":formatUTCMinutes,"p":formatUTCPeriod,"q":formatUTCQuarter,"Q":formatUnixTimestamp,"s":formatUnixTimestampSeconds,"S":formatUTCSeconds,"u":formatUTCWeekdayNumberMonday,"U":formatUTCWeekNumberSunday,"V":formatUTCWeekNumberISO,"w":formatUTCWeekdayNumberSunday,"W":formatUTCWeekNumberMonday,"x":null,"X":null,"y":formatUTCYear,"Y":formatUTCFullYear,"Z":formatUTCZone,"%":formatLiteralPercent};var parses={"a":parseShortWeekday,"A":parseWeekday,"b":parseShortMonth,"B":parseMonth,"c":parseLocaleDateTime,"d":parseDayOfMonth,"e":parseDayOfMonth,"f":parseMicroseconds,"g":parseYear,"G":parseFullYear,"H":parseHour24,"I":parseHour24,"j":parseDayOfYear,"L":parseMilliseconds,"m":parseMonthNumber,"M":parseMinutes,"p":parsePeriod,"q":parseQuarter,"Q":parseUnixTimestamp,"s":parseUnixTimestampSeconds,"S":parseSeconds,"u":parseWeekdayNumberMonday,"U":parseWeekNumberSunday,"V":parseWeekNumberISO,"w":parseWeekdayNumberSunday,"W":parseWeekNumberMonday,"x":parseLocaleDate,"X":parseLocaleTime,"y":parseYear,"Y":parseFullYear,"Z":parseZone,"%":parseLiteralPercent};// These recursive directive definitions must be deferred.
|
|
8958
8958
|
formats.x=newFormat(locale_date,formats);formats.X=newFormat(locale_time,formats);formats.c=newFormat(locale_dateTime,formats);utcFormats.x=newFormat(locale_date,utcFormats);utcFormats.X=newFormat(locale_time,utcFormats);utcFormats.c=newFormat(locale_dateTime,utcFormats);function newFormat(specifier,formats){return function(date){var string=[],i=-1,j=0,n=specifier.length,c,pad,format;if(!(date instanceof Date))date=new Date(+date);while(++i<n){if(specifier.charCodeAt(i)===37){string.push(specifier.slice(j,i));if((pad=pads[c=specifier.charAt(++i)])!=null)c=specifier.charAt(++i);else pad=c==="e"?" ":"0";if(format=formats[c])c=format(date,pad);string.push(c);j=i+1;}}string.push(specifier.slice(j,i));return string.join("");};}function newParse(specifier,Z){return function(string){var d=newDate(1900,undefined,1),i=parseSpecifier(d,specifier,string+="",0),week,day;if(i!=string.length)return null;// If a UNIX timestamp is specified, return it.
|
|
8959
8959
|
if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1000+("L"in d?d.L:0));// If this is utcParse, never use the local timezone.
|
|
8960
8960
|
if(Z&&!("Z"in d))d.Z=0;// The am-pm flag is 0 for AM, and 1 for PM.
|
|
@@ -9149,10 +9149,10 @@
|
|
|
9149
9149
|
if(bi<b.length){bs=b.slice(bi);if(s[i])s[i]+=bs;// coalesce with previous string
|
|
9150
9150
|
else s[++i]=bs;}// Special optimization for only a single match.
|
|
9151
9151
|
// Otherwise, interpolate each of the numbers and rejoin the string.
|
|
9152
|
-
return s.length<2?q[0]?one$1(q[0].x):zero$2(b):(b=q.length,function(t){for(var i=0,o;i<b;++i)s[(o=q[i]).i]=o.x(t);return s.join("");});}function interpolate$1(a,b){var t=typeof b,c;return b==null||t==="boolean"?constant$1(b):(t==="number"?number$1$1:t==="string"?(c=color$1(b))?(b=c,rgb$3):string$1:b instanceof color$1?rgb$3:b instanceof Date?date$1:isNumberArray$1(b)?numberArray$1:Array.isArray(b)?genericArray$1:typeof b.valueOf!=="function"&&typeof b.toString!=="function"||isNaN(b)?object$1:number$1$1)(a,b);}function interpolateRound
|
|
9152
|
+
return s.length<2?q[0]?one$1(q[0].x):zero$2(b):(b=q.length,function(t){for(var i=0,o;i<b;++i)s[(o=q[i]).i]=o.x(t);return s.join("");});}function interpolate$1(a,b){var t=typeof b,c;return b==null||t==="boolean"?constant$1(b):(t==="number"?number$1$1:t==="string"?(c=color$1(b))?(b=c,rgb$3):string$1:b instanceof color$1?rgb$3:b instanceof Date?date$1:isNumberArray$1(b)?numberArray$1:Array.isArray(b)?genericArray$1:typeof b.valueOf!=="function"&&typeof b.toString!=="function"||isNaN(b)?object$1:number$1$1)(a,b);}function interpolateRound(a,b){return a=+a,b=+b,function(t){return Math.round(a*(1-t)+b*t);};}function constants$2(x){return function(){return x;};}function number$3(x){return +x;}var unit$1=[0,1];function identity$3(x){return x;}function normalize$1$1(a,b){return (b-=a=+a)?function(x){return (x-a)/b;}:constants$2(isNaN(b)?NaN:0.5);}function clamper$1(a,b){var t;if(a>b)t=a,a=b,b=t;return function(x){return Math.max(a,Math.min(b,x));};}// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
|
|
9153
9153
|
// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
|
|
9154
9154
|
function bimap$1(domain,range,interpolate){var d0=domain[0],d1=domain[1],r0=range[0],r1=range[1];if(d1<d0)d0=normalize$1$1(d1,d0),r0=interpolate(r1,r0);else d0=normalize$1$1(d0,d1),r0=interpolate(r0,r1);return function(x){return r0(d0(x));};}function polymap$1(domain,range,interpolate){var j=Math.min(domain.length,range.length)-1,d=new Array(j),r=new Array(j),i=-1;// Reverse descending domains.
|
|
9155
|
-
if(domain[j]<domain[0]){domain=domain.slice().reverse();range=range.slice().reverse();}while(++i<j){d[i]=normalize$1$1(domain[i],domain[i+1]);r[i]=interpolate(range[i],range[i+1]);}return function(x){var i=bisect(domain,x,1,j)-1;return r[i](d[i](x));};}function copy
|
|
9155
|
+
if(domain[j]<domain[0]){domain=domain.slice().reverse();range=range.slice().reverse();}while(++i<j){d[i]=normalize$1$1(domain[i],domain[i+1]);r[i]=interpolate(range[i],range[i+1]);}return function(x){var i=bisect(domain,x,1,j)-1;return r[i](d[i](x));};}function copy(source,target){return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());}function transformer(){var domain=unit$1,range=unit$1,interpolate=interpolate$1,transform,untransform,unknown,clamp=identity$3,piecewise,output,input;function rescale(){var n=Math.min(domain.length,range.length);if(clamp!==identity$3)clamp=clamper$1(domain[0],domain[n-1]);piecewise=n>2?polymap$1:bimap$1;output=input=null;return scale;}function scale(x){return x==null||isNaN(x=+x)?unknown:(output||(output=piecewise(domain.map(transform),range,interpolate)))(transform(clamp(x)));}scale.invert=function(y){return clamp(untransform((input||(input=piecewise(range,domain.map(transform),number$1$1)))(y)));};scale.domain=function(_){return arguments.length?(domain=Array.from(_,number$3),rescale()):domain.slice();};scale.range=function(_){return arguments.length?(range=Array.from(_),rescale()):range.slice();};scale.rangeRound=function(_){return range=Array.from(_),interpolate=interpolateRound,rescale();};scale.clamp=function(_){return arguments.length?(clamp=_?true:identity$3,rescale()):clamp!==identity$3;};scale.interpolate=function(_){return arguments.length?(interpolate=_,rescale()):interpolate;};scale.unknown=function(_){return arguments.length?(unknown=_,scale):unknown;};return function(t,u){transform=t,untransform=u;return rescale();};}function continuous$1(){return transformer()(identity$3,identity$3);}function tickFormat$1(start,stop,count,specifier){var step=tickStep$1(start,stop,count),precision;specifier=formatSpecifier$1(specifier==null?",f":specifier);switch(specifier.type){case "s":{var value=Math.max(Math.abs(start),Math.abs(stop));if(specifier.precision==null&&!isNaN(precision=precisionPrefix$1(step,value)))specifier.precision=precision;return formatPrefix$1(specifier,value);}case "":case "e":case "g":case "p":case "r":{if(specifier.precision==null&&!isNaN(precision=precisionRound$1(step,Math.max(Math.abs(start),Math.abs(stop)))))specifier.precision=precision-(specifier.type==="e");break;}case "f":case "%":{if(specifier.precision==null&&!isNaN(precision=precisionFixed$1(step)))specifier.precision=precision-(specifier.type==="%")*2;break;}}return format$1(specifier);}function linearish$1(scale){var domain=scale.domain;scale.ticks=function(count){var d=domain();return ticks$1(d[0],d[d.length-1],count==null?10:count);};scale.tickFormat=function(count,specifier){var d=domain();return tickFormat$1(d[0],d[d.length-1],count==null?10:count,specifier);};scale.nice=function(count){if(count==null)count=10;var d=domain();var i0=0;var i1=d.length-1;var start=d[i0];var stop=d[i1];var prestep;var step;var maxIter=10;if(stop<start){step=start,start=stop,stop=step;step=i0,i0=i1,i1=step;}while(maxIter-->0){step=tickIncrement$1(start,stop,count);if(step===prestep){d[i0]=start;d[i1]=stop;return domain(d);}else if(step>0){start=Math.floor(start/step)*step;stop=Math.ceil(stop/step)*step;}else if(step<0){start=Math.ceil(start*step)/step;stop=Math.floor(stop*step)/step;}else {break;}prestep=step;}return scale;};return scale;}function linear$2(){var scale=continuous$1();scale.copy=function(){return copy(scale,linear$2());};initRange$1.apply(scale,arguments);return linearish$1(scale);}function threshold(){var domain=[0.5],range=[0,1],unknown,n=1;function scale(x){return x!=null&&x<=x?range[bisect(domain,x,0,n)]:unknown;}scale.domain=function(_){return arguments.length?(domain=Array.from(_),n=Math.min(domain.length,range.length-1),scale):domain.slice();};scale.range=function(_){return arguments.length?(range=Array.from(_),n=Math.min(domain.length,range.length-1),scale):range.slice();};scale.invertExtent=function(y){var i=range.indexOf(y);return [domain[i-1],domain[i]];};scale.unknown=function(_){return arguments.length?(unknown=_,scale):unknown;};scale.copy=function(){return threshold().domain(domain).range(range).unknown(unknown);};return initRange$1.apply(scale,arguments);}function applyFormat(formatter){return typeof formatter==='undefined'?t=>t:t=>formatter(t);}function clamp$1(val){return Math.max(0,Math.min(1,val));}function isObject(obj){return typeof obj==='object';}function minorTicksGenerator(count,start,end){const r=Math.abs(start-end);const interval=r/(count+1);const ticks=[];for(let i=1;i<=count;i++){const v=i*interval;ticks.push(start<end?start+v:start-v);}return ticks;}function appendMinorTicks(majorTicks,minorCount,scale){if(majorTicks.length===1){return majorTicks;}const ticks=majorTicks.concat([]);for(let i=0;i<majorTicks.length;i++){let start=majorTicks[i];let end=majorTicks[i+1];if(i===0&&start!==scale.start()){// Before and after first major tick
|
|
9156
9156
|
ticks.push(...minorTicksGenerator(minorCount,start,end));start-=end-start;end=majorTicks[i];ticks.push(...minorTicksGenerator(minorCount,start,end));}else if(i===majorTicks.length-1&&end!==scale.end()){// After last major tick
|
|
9157
9157
|
end=start+(start-majorTicks[i-1]);ticks.push(...minorTicksGenerator(minorCount,start,end));}else {ticks.push(...minorTicksGenerator(minorCount,start,end));}}return ticks.filter(t=>t>=scale.min()&&t<=scale.max());}/**
|
|
9158
9158
|
* Generate ticks based on a distance, for each 100th unit, one additional tick may be added
|
|
@@ -9797,7 +9797,7 @@
|
|
|
9797
9797
|
* @param {string} key - Value to remove as alias
|
|
9798
9798
|
* @example
|
|
9799
9799
|
* brush.removeKeyAlias('BadFieldName');
|
|
9800
|
-
*/fn.removeKeyAlias=key=>{delete aliases[key];};EventEmitter.mixin(fn);return fn;}registryFactory();function cubicIn(t){return t*t*t;}function cubicOut(t){return --t*t*t+1;}function cubicInOut(t){return ((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2;}/* eslint-disable no-cond-assign */const colorKeys=['stroke','fill','color','backgroundColor','thumbColor'];function constant$3(x){return ()=>x;}function isNumberArray$2(x){return ArrayBuffer.isView(x)&&!(x instanceof DataView);}function genericArray$2(a,b){const nb=b?b.length:0;const na=a?Math.min(nb,a.length):0;const x=new Array(na);const c=new Array(nb);let i;for(i=0;i<na;++i){x[i]=value(a[i],b[i]);}for(;i<nb;++i){c[i]=b[i];}return function interplolate(t){for(i=0;i<na;++i){c[i]=x[i](t);}return c;};}function value(a,b,k){const t=typeof b;let c;return b==null||t==='boolean'?constant$3(b):(t==='number'?number$1$1:t==='string'?(c=color$1(b))&&colorKeys.includes(k)?(b=c,rgb$3):string$1:b instanceof color$1?rgb$3:b instanceof Date?date$1:isNumberArray$2(b)?numberArray$1:Array.isArray(b)?genericArray$2:typeof b.valueOf!=='function'&&typeof b.toString!=='function'||isNaN(b)?object$2:number$1$1)(a,b);}function object$2(a,b){const i={};const c={};let k;if(a===null||typeof a!=='object'){a={};}if(b===null||typeof b!=='object'){b={};}for(k in b){if(k in a){i[k]=value(a[k],b[k],k);}else {c[k]=b[k];}}return function interplolate(t){for(k in i){c[k]=i[k](t);}return c;};}/* globals window */function nodeId(node,i){if(node.data){return node.data.value;}if(node.type==='text'){return node.text;}return i;}function findCommonPointsFromTwoLines(oldLine,currentLine){const oldPoints=oldLine.points.filter(point=>!point.dummy);const currentPoints=currentLine.points.filter(point=>!point.dummy);const currentPointsValues=currentPoints.map(point=>point.data.major.value);const commonPointsValues=oldPoints.filter(point=>currentPointsValues.includes(point.data.major.value)).map(point=>point.data.major.value);const oldCommonPoints=oldPoints.filter(point=>commonPointsValues.includes(point.data.major.value));const currentCommonPoints=currentPoints.filter(point=>commonPointsValues.includes(point.data.major.value));return {old:oldCommonPoints,current:currentCommonPoints};}function tween(_ref,_ref2,config,chartStorage){let old=_ref.old,current=_ref.current;let renderer=_ref2.renderer;let ticker;let toBeUpdated=[];let entered={nodes:[],ips:[]};let exited={nodes:[],ips:[]};let updated={nodes:[],ips:[]};let stages=[];let targetScene=null;const trackBy=config.trackBy||nodeId;const tweener={start(){let ids={};old.forEach((node,i)=>{let id=trackBy(node,i);ids[id]=node;});current.forEach((node,i)=>{let id=trackBy(node,i);if(ids[id]){if(node.type==='path'&&node.points&&node.points.length>0&&node.data.source.key!=='trend'){const common=findCommonPointsFromTwoLines(ids[id],node);updated.ips.push(object$2(extend$1$1({},ids[id],{points:common.old}),extend$1$1({},node,{points:common.current})));toBeUpdated.push(extend$1$1({},ids[id],{commonPoints:common.old}));}else {updated.ips.push(object$2(ids[id],node));toBeUpdated.push(ids[id]);}updated.nodes.push(node);ids[id]=false;}else {entered.nodes.push(node);entered.ips.push(object$2(extend$1$1({},node,{r:0.001,opacity:0}),node));}});Object.keys(ids).forEach(key=>{if(ids[key]){exited.nodes.push(ids[key]);exited.ips.push(object$2(ids[key],extend$1$1({},ids[key],{r:0.0001,opacity:0})));}});// Obsolete nodes exiting
|
|
9800
|
+
*/fn.removeKeyAlias=key=>{delete aliases[key];};EventEmitter.mixin(fn);return fn;}registryFactory();function cubicIn(t){return t*t*t;}function cubicOut(t){return --t*t*t+1;}function cubicInOut(t){return ((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2;}/* eslint-disable no-cond-assign */const colorKeys=['stroke','fill','color','backgroundColor','thumbColor'];function constant$3(x){return ()=>x;}function isNumberArray$2(x){return ArrayBuffer.isView(x)&&!(x instanceof DataView);}function genericArray$2(a,b){const nb=b?b.length:0;const na=a?Math.min(nb,a.length):0;const x=new Array(na);const c=new Array(nb);let i;for(i=0;i<na;++i){x[i]=value$1(a[i],b[i]);}for(;i<nb;++i){c[i]=b[i];}return function interplolate(t){for(i=0;i<na;++i){c[i]=x[i](t);}return c;};}function value$1(a,b,k){const t=typeof b;let c;return b==null||t==='boolean'?constant$3(b):(t==='number'?number$1$1:t==='string'?(c=color$1(b))&&colorKeys.includes(k)?(b=c,rgb$3):string$1:b instanceof color$1?rgb$3:b instanceof Date?date$1:isNumberArray$2(b)?numberArray$1:Array.isArray(b)?genericArray$2:typeof b.valueOf!=='function'&&typeof b.toString!=='function'||isNaN(b)?object$2:number$1$1)(a,b);}function object$2(a,b){const i={};const c={};let k;if(a===null||typeof a!=='object'){a={};}if(b===null||typeof b!=='object'){b={};}for(k in b){if(k in a){i[k]=value$1(a[k],b[k],k);}else {c[k]=b[k];}}return function interplolate(t){for(k in i){c[k]=i[k](t);}return c;};}/* globals window */function nodeId(node,i){if(node.data){return node.data.value;}if(node.type==='text'){return node.text;}return i;}function findCommonPointsFromTwoLines(oldLine,currentLine){const oldPoints=oldLine.points.filter(point=>!point.dummy);const currentPoints=currentLine.points.filter(point=>!point.dummy);const currentPointsValues=currentPoints.map(point=>point.data.major.value);const commonPointsValues=oldPoints.filter(point=>currentPointsValues.includes(point.data.major.value)).map(point=>point.data.major.value);const oldCommonPoints=oldPoints.filter(point=>commonPointsValues.includes(point.data.major.value));const currentCommonPoints=currentPoints.filter(point=>commonPointsValues.includes(point.data.major.value));return {old:oldCommonPoints,current:currentCommonPoints};}function tween(_ref,_ref2,config,chartStorage){let old=_ref.old,current=_ref.current;let renderer=_ref2.renderer;let ticker;let toBeUpdated=[];let entered={nodes:[],ips:[]};let exited={nodes:[],ips:[]};let updated={nodes:[],ips:[]};let stages=[];let targetScene=null;const trackBy=config.trackBy||nodeId;const tweener={start(){let ids={};old.forEach((node,i)=>{let id=trackBy(node,i);ids[id]=node;});current.forEach((node,i)=>{let id=trackBy(node,i);if(ids[id]){if(node.type==='path'&&node.points&&node.points.length>0&&node.data.source.key!=='trend'){const common=findCommonPointsFromTwoLines(ids[id],node);updated.ips.push(object$2(extend$1$1({},ids[id],{points:common.old}),extend$1$1({},node,{points:common.current})));toBeUpdated.push(extend$1$1({},ids[id],{commonPoints:common.old}));}else {updated.ips.push(object$2(ids[id],node));toBeUpdated.push(ids[id]);}updated.nodes.push(node);ids[id]=false;}else {entered.nodes.push(node);entered.ips.push(object$2(extend$1$1({},node,{r:0.001,opacity:0}),node));}});Object.keys(ids).forEach(key=>{if(ids[key]){exited.nodes.push(ids[key]);exited.ips.push(object$2(ids[key],extend$1$1({},ids[key],{r:0.0001,opacity:0})));}});// Obsolete nodes exiting
|
|
9801
9801
|
stages.push({name:'exiting',easing:cubicIn,duration:200,tweens:exited.ips,nodes:[...toBeUpdated]});// Existing nodes updating
|
|
9802
9802
|
stages.push({name:'updating',easing:cubicInOut,duration:400,tweens:updated.ips,nodes:[]});// New nodes entering
|
|
9803
9803
|
stages.push({name:'entering',easing:cubicOut,duration:200,tweens:entered.ips,nodes:[...updated.nodes]});if(config.isMainComponent){var _config$isMainCompone;const filterFn=(_config$isMainCompone=config.isMainComponent)===null||_config$isMainCompone===void 0?void 0:_config$isMainCompone.filterFn;const nUpdatingNodes=filterFn?toBeUpdated.filter(filterFn).length:toBeUpdated.length;const _chartStorage$getValu=chartStorage.getValue('animations.updatingStageMeta'),isInit=_chartStorage$getValu.isInit,shouldBeRemoved=_chartStorage$getValu.shouldBeRemoved;if(isInit===false){chartStorage.setValue('animations.updatingStageMeta.shouldBeRemoved',nUpdatingNodes===0);chartStorage.setValue('animations.updatingStageMeta.isInit',true);}else {chartStorage.setValue('animations.updatingStageMeta.shouldBeRemoved',shouldBeRemoved&&nUpdatingNodes===0);}}// console.log(stages);
|
|
@@ -12789,7 +12789,7 @@
|
|
|
12789
12789
|
* @param {Point} cp1 - First control point
|
|
12790
12790
|
* @param {Point} cp2 - Second control point
|
|
12791
12791
|
* @param {Point} e - End point
|
|
12792
|
-
*/function flatness(s,cp1,cp2,e){const ux=Math.abs(s.x+cp2.x-(cp1.x+cp1.x));const uy=Math.abs(s.y+cp2.y-(cp1.y+cp1.y));const vx=Math.abs(cp1.x+e.x-(cp2.x+cp2.x));const vy=Math.abs(cp1.y+e.y-(cp2.y+cp2.y));return ux+uy+vx+vy;}function mid(p0,p1){return {x:(p0.x+p1.x)*0.5,y:(p0.y+p1.y)*0.5};}function interpolate
|
|
12792
|
+
*/function flatness(s,cp1,cp2,e){const ux=Math.abs(s.x+cp2.x-(cp1.x+cp1.x));const uy=Math.abs(s.y+cp2.y-(cp1.y+cp1.y));const vx=Math.abs(cp1.x+e.x-(cp2.x+cp2.x));const vy=Math.abs(cp1.y+e.y-(cp2.y+cp2.y));return ux+uy+vx+vy;}function mid(p0,p1){return {x:(p0.x+p1.x)*0.5,y:(p0.y+p1.y)*0.5};}function interpolate(t,s,cp1,cp2,e){const td=1-t;const t0=td**3*s;const t1=3*td**2*t*cp1;const t2=3*td*t**2*cp2;const t3=t**3*e;return t0+t1+t2+t3;}/**
|
|
12793
12793
|
* Recursive subdivision of a curve using de Casteljau algorithm.
|
|
12794
12794
|
* Splits the curve into multiple line segments where each segments is choosen based on a level of flatness.
|
|
12795
12795
|
*
|
|
@@ -12802,7 +12802,7 @@
|
|
|
12802
12802
|
* @param {array} points - Initial set of points
|
|
12803
12803
|
* @returns {point[]} Array of points
|
|
12804
12804
|
*/function toPoints$1(s,cp1,cp2,e){let points=arguments.length>4&&arguments[4]!==undefined?arguments[4]:[];let maxNbrOfSplits=arguments.length>5&&arguments[5]!==undefined?arguments[5]:8;if(maxNbrOfSplits<1||flatness(s,cp1,cp2,e)<=10){if(points[points.length-1]!==s){points.push(s);}points.push(e);return points;}const t=0.5;const m0=mid(s,cp1);const m1=mid(cp1,cp2);const m2=mid(cp2,e);const b={// Split curve at point
|
|
12805
|
-
x:interpolate
|
|
12805
|
+
x:interpolate(t,s.x,cp1.x,cp2.x,e.x),y:interpolate(t,s.y,cp1.y,cp2.y,e.y)};const q0=mid(m0,m1);// New cp2 for left curve
|
|
12806
12806
|
const q1=mid(m1,m2);// New cp1 for right curve
|
|
12807
12807
|
toPoints$1(s,m0,q0,b,points,maxNbrOfSplits-1);// left curve
|
|
12808
12808
|
toPoints$1(b,q1,m2,e,points,maxNbrOfSplits-1);// Right curve
|
|
@@ -13691,7 +13691,7 @@
|
|
|
13691
13691
|
* @param {function} [sceneFn] - Scene factory
|
|
13692
13692
|
* @returns {Renderer} A svg renderer instance
|
|
13693
13693
|
*/function renderer$1(){let treeFn=arguments.length>0&&arguments[0]!==undefined?arguments[0]:tree;let ns=arguments.length>1&&arguments[1]!==undefined?arguments[1]:svgNs;let sceneFn=arguments.length>2&&arguments[2]!==undefined?arguments[2]:scene;const tree$1=treeFn();let el;let group;let hasChangedRect=false;let rect=createRendererBox();let scene$1;const settings={transform:undefined,disableScreenReader:false};const svg=create();const defs={type:'defs',children:[]};const patterns=patternizer(defs.children);const gradients=gradienter(defs.children);svg.element=()=>el;svg.root=()=>group;svg.settings=rendererSettings=>{if(rendererSettings){Object.keys(settings).forEach(key=>{if(rendererSettings[key]!==undefined){settings[key]=rendererSettings[key];}});}return settings;};svg.appendTo=element=>{if(!el){el=element.ownerDocument.createElementNS(ns,'svg');el.style.position='absolute';el.style['-webkit-font-smoothing']='antialiased';el.style['-moz-osx-font-smoothing']='antialiased';el.style.pointerEvents='none';el.setAttribute('xmlns',ns);group=element.ownerDocument.createElementNS(ns,'g');group.style.pointerEvents='auto';el.appendChild(group);}element.appendChild(el);return el;};svg.getScene=nodes=>{const scaleX=rect.scaleRatio.x;const scaleY=rect.scaleRatio.y;const sceneContainer={type:'container',children:Array.isArray(nodes)?[...nodes,defs]:nodes,transform:rect.edgeBleed.bool?"translate(".concat(rect.edgeBleed.left*scaleX,", ").concat(rect.edgeBleed.top*scaleY,")"):''};if(scaleX!==1||scaleY!==1){sceneContainer.transform+="scale(".concat(scaleX,", ").concat(scaleY,")");}return sceneFn({items:[sceneContainer],on:{create:[state=>{state.node.fillReference=undefined;state.node.strokeReference=undefined;},gradients.onCreate,patterns.onCreate,onLineBreak(svg.measureText),injectTextBoundsFn(svg)]}});};svg.render=nodes=>{if(!el){return false;}const transformation=typeof settings.transform==='function'&&settings.transform();if(transformation){const horizontalScaling=transformation.horizontalScaling,horizontalSkewing=transformation.horizontalSkewing,verticalSkewing=transformation.verticalSkewing,verticalScaling=transformation.verticalScaling,horizontalMoving=transformation.horizontalMoving,verticalMoving=transformation.verticalMoving;group.style.transform="matrix(".concat(horizontalScaling,", ").concat(horizontalSkewing,", ").concat(verticalSkewing,", ").concat(verticalScaling,", ").concat(horizontalMoving,", ").concat(verticalMoving,")");return true;}group.style.transform='';const disableScreenReader=settings.disableScreenReader;if(disableScreenReader){el.setAttribute('aria-hidden',true);}if(hasChangedRect){el.style.left="".concat(rect.computedPhysical.x,"px");el.style.top="".concat(rect.computedPhysical.y,"px");el.setAttribute('width',rect.computedPhysical.width);el.setAttribute('height',rect.computedPhysical.height);}gradients.clear();patterns.clear();defs.children.length=0;const newScene=svg.getScene(nodes);const hasChangedScene=scene$1?!newScene.equals(scene$1):true;const doRender=hasChangedRect||hasChangedScene;if(doRender){svg.clear();tree$1.render(newScene.children,group);}hasChangedRect=false;scene$1=newScene;return doRender;};svg.itemsAt=input=>scene$1?scene$1.getItemsFrom(input):[];svg.findShapes=selector=>scene$1?scene$1.findShapes(selector):[];svg.clear=()=>{if(!group){return svg;}scene$1=null;const g=group.cloneNode(false);el.replaceChild(g,group);group=g;return svg;};svg.destroy=()=>{// parentElement is not supported in IE11 for SVGElement.
|
|
13694
|
-
if(el&&el.parentNode){el.parentNode.removeChild(el);}el=null;group=null;};svg.size=opts=>{if(opts){const newRect=createRendererBox(opts);if(JSON.stringify(rect)!==JSON.stringify(newRect)){hasChangedRect=true;rect=newRect;}}return rect;};return svg;}function rendererComponent$1(picasso){picasso.renderer('svg',renderer$1);}var n,l,u,t,r,o,f,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n;}function v(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===f[o]&&(f[o]=l.defaultProps[o]);return p$1(l,f,t,r,null);}function p$1(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=l.vnode&&l.vnode(f),f;}function _(n){return n.children;}function k(n,l){this.props=n,this.context=l;}function b(n,l){if(null==l)return n.__?b(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?b(n):null;}function g(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break;}return g(n);}}function m(n){(!n.__d&&(n.__d=true)&&t.push(n)&&!w.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)(w);}function w(){var n,l,u,i,r,o,e,c;for(t.sort(f);n=t.shift();)n.__d&&(l=t.length,i=void 0,r=void 0,e=(o=(u=n).__v).__e,(c=u.__P)&&(i=[],(r=h({},o)).__v=o.__v+1,L(c,o,r,u.__n,void 0!==c.ownerSVGElement,null!=o.__h?[e]:null,i,null==e?b(o):e,o.__h),M(i,o),o.__e!=e&&g(o)),t.length>l&&t.sort(f));w.__r=0;}function x(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,g,m,w=i&&i.__k||s,x=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d||"function"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p$1(null,d,null,null,d):Array.isArray(d)?p$1(_,{children:d},null,null,null):d.__b>0?p$1(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=w[h])||y&&d.key==y.key&&d.type===y.type)w[h]=void 0;else for(v=0;v<x;v++){if((y=w[v])&&d.key==y.key&&d.type===y.type){w[v]=void 0;break;}y=null;}L(n,d,y=y||c,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(m||(m=[]),y.ref&&m.push(y.ref,null,d),m.push(v,d.__c||k,d)),null!=k?(null==g&&(g=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=A(d,e,n):e=C(n,d,y,w,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=b(y));}for(u.__e=g,h=x;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=$(i).nextSibling),S(w[h],w[h]));if(m)for(h=0;h<m.length;h++)O(m[h],m[++h],m[++h]);}function A(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?A(i,l,u):C(u,i,i,t,i.__e,l));return l;}function C(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling;}function $(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=$(u)))return i;return null;}function H(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||T(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||T(n,r,l[r],u[r],i);}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a.test(l)?u:u+"px";}function T(n,l,u,i,t){var r;n:if("style"===l){if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||I(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||I(n.style,l,u[l]);}}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?z:j,r):n.removeEventListener(l,r?z:j,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n;}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function j(n){return this.l[n.type+false](l.event?l.event(n):n);}function z(n){return this.l[n.type+true](l.event?l.event(n):n);}function L(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,b,g,m,w,A,P,C,$,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l.__b)&&s(u);try{n:if("function"==typeof I){if(g=u.props,m=(s=I.contextType)&&t[s.__c],w=s?m?m.props.value:s.__:t,i.__c?b=(a=u.__c=i.__c).__=a.__E:("prototype"in I&&I.prototype.render?u.__c=a=new I(g,w):(u.__c=a=new k(g,w),a.constructor=I,a.render=q$1),m&&m.sub(a),a.props=g,a.state||(a.state={}),a.context=w,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,I.getDerivedStateFromProps(g,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==I.getDerivedStateFromProps&&g!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,w)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=g,a.state=a.__s,a.__d=!1),a.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<a._sb.length;A++)a.__h.push(a._sb[A]);a._sb=[],a.__h.length&&f.push(a);break n;}null!=a.componentWillUpdate&&a.componentWillUpdate(g,a.__s,w),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d);});}if(a.context=w,a.props=g,a.__P=n,P=l.__r,C=0,"prototype"in I&&I.prototype.render){for(a.state=a.__s,a.__d=!1,P&&P(u),s=a.render(a.props,a.state,a.context),$=0;$<a._sb.length;$++)a.__h.push(a._sb[$]);a._sb=[];}else do{a.__d=!1,P&&P(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++C<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),H=null!=s&&s.type===_&&null==s.key?s.props.children:s,x(n,Array.isArray(H)?H:[H],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),b&&(a.__E=a.__=null),a.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=N(i.__e,u,i,t,r,o,f,c);(s=l.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l.__e(n,u,i);}}function M(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function N(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=true),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break;}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=false;}if(null===d)y===p||e&&l.data===p||(l.data=p);else {if(o=o&&n.call(l.childNodes),a=(y=i.props||c).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(H(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,x(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&b(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&T(l,"value",_,y.value,false),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&T(l,"checked",_,y.checked,false));}return l;}function O(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l.__e(n,i);}}function S(n,u,i){var t,r;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||O(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&S(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v(n.__e),n.__=n.__e=n.__d=void 0;}function q$1(n,l,u){return this.constructor(n,u);}function B(u,i,t){var r,o,f;l.__&&l.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],L(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c,c,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),M(f,u);}n=s.slice,l={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t;}catch(l){n=l;}throw n;}},u=0,k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),m(this));},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),m(this));},k.prototype.render=_,t=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b;},w.__r=0;function renderer(){let opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};const _opts$createElement=opts.createElement,createElement=_opts$createElement===void 0?document.createElement.bind(document):_opts$createElement;let el;let rect=createRendererBox();let dNode;const settings={transform:undefined,disableScreenReader:false};const dom=create();dom.element=()=>el;dom.root=()=>el;dom.settings=rendererSettings=>{if(rendererSettings){Object.keys(settings).forEach(key=>{if(rendererSettings[key]!==undefined){settings[key]=rendererSettings[key];}});}return settings;};dom.appendTo=element=>{if(!el){el=createElement('div');el.style.position='absolute';el.style['-webkit-font-smoothing']='antialiased';el.style['-moz-osx-font-smoothing']='antialiased';el.style.pointerEvents='none';}element.appendChild(el);return el;};dom.render=nodes=>{if(!el){return false;}const transformation=typeof settings.transform==='function'&&settings.transform();if(transformation){const horizontalScaling=transformation.horizontalScaling,horizontalSkewing=transformation.horizontalSkewing,verticalSkewing=transformation.verticalSkewing,verticalScaling=transformation.verticalScaling,horizontalMoving=transformation.horizontalMoving,verticalMoving=transformation.verticalMoving;el.style.transform="matrix(".concat(horizontalScaling,", ").concat(horizontalSkewing,", ").concat(verticalSkewing,", ").concat(verticalScaling,", ").concat(horizontalMoving,", ").concat(verticalMoving,")");return true;}el.style.transform='';const disableScreenReader=settings.disableScreenReader;if(disableScreenReader){el.setAttribute('aria-hidden',true);}el.style.left="".concat(rect.computedPhysical.x,"px");el.style.top="".concat(rect.computedPhysical.y,"px");el.style.width="".concat(rect.computedPhysical.width,"px");el.style.height="".concat(rect.computedPhysical.height,"px");let vNode;if(Array.isArray(nodes)){vNode=y("div",null,nodes);}else {vNode=nodes;}dNode=B(vNode,el,dNode);return true;};dom.renderArgs=[y];// Arguments to render functions using the DOM renderer
|
|
13694
|
+
if(el&&el.parentNode){el.parentNode.removeChild(el);}el=null;group=null;};svg.size=opts=>{if(opts){const newRect=createRendererBox(opts);if(JSON.stringify(rect)!==JSON.stringify(newRect)){hasChangedRect=true;rect=newRect;}}return rect;};return svg;}function rendererComponent$1(picasso){picasso.renderer('svg',renderer$1);}var n,l,u,t,r,o,f,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n;}function v(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===f[o]&&(f[o]=l.defaultProps[o]);return p$1(l,f,t,r,null);}function p$1(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=l.vnode&&l.vnode(f),f;}function _(n){return n.children;}function k(n,l){this.props=n,this.context=l;}function b(n,l){if(null==l)return n.__?b(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?b(n):null;}function g(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break;}return g(n);}}function m(n){(!n.__d&&(n.__d=true)&&t.push(n)&&!w.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)(w);}function w(){var n,l,u,i,r,o,e,c;for(t.sort(f);n=t.shift();)n.__d&&(l=t.length,i=void 0,r=void 0,e=(o=(u=n).__v).__e,(c=u.__P)&&(i=[],(r=h({},o)).__v=o.__v+1,L(c,o,r,u.__n,void 0!==c.ownerSVGElement,null!=o.__h?[e]:null,i,null==e?b(o):e,o.__h),M(i,o),o.__e!=e&&g(o)),t.length>l&&t.sort(f));w.__r=0;}function x(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,g,m,w=i&&i.__k||s,x=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d||"function"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p$1(null,d,null,null,d):Array.isArray(d)?p$1(_,{children:d},null,null,null):d.__b>0?p$1(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=w[h])||y&&d.key==y.key&&d.type===y.type)w[h]=void 0;else for(v=0;v<x;v++){if((y=w[v])&&d.key==y.key&&d.type===y.type){w[v]=void 0;break;}y=null;}L(n,d,y=y||c,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(m||(m=[]),y.ref&&m.push(y.ref,null,d),m.push(v,d.__c||k,d)),null!=k?(null==g&&(g=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=A$1(d,e,n):e=C$1(n,d,y,w,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=b(y));}for(u.__e=g,h=x;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=$(i).nextSibling),S(w[h],w[h]));if(m)for(h=0;h<m.length;h++)O(m[h],m[++h],m[++h]);}function A$1(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?A$1(i,l,u):C$1(u,i,i,t,i.__e,l));return l;}function C$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling;}function $(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=$(u)))return i;return null;}function H(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||T(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||T(n,r,l[r],u[r],i);}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a.test(l)?u:u+"px";}function T(n,l,u,i,t){var r;n:if("style"===l){if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||I(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||I(n.style,l,u[l]);}}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?z:j,r):n.removeEventListener(l,r?z:j,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n;}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function j(n){return this.l[n.type+false](l.event?l.event(n):n);}function z(n){return this.l[n.type+true](l.event?l.event(n):n);}function L(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,b,g,m,w,A,P,C,$,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l.__b)&&s(u);try{n:if("function"==typeof I){if(g=u.props,m=(s=I.contextType)&&t[s.__c],w=s?m?m.props.value:s.__:t,i.__c?b=(a=u.__c=i.__c).__=a.__E:("prototype"in I&&I.prototype.render?u.__c=a=new I(g,w):(u.__c=a=new k(g,w),a.constructor=I,a.render=q$1),m&&m.sub(a),a.props=g,a.state||(a.state={}),a.context=w,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,I.getDerivedStateFromProps(g,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==I.getDerivedStateFromProps&&g!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,w)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=g,a.state=a.__s,a.__d=!1),a.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<a._sb.length;A++)a.__h.push(a._sb[A]);a._sb=[],a.__h.length&&f.push(a);break n;}null!=a.componentWillUpdate&&a.componentWillUpdate(g,a.__s,w),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d);});}if(a.context=w,a.props=g,a.__P=n,P=l.__r,C=0,"prototype"in I&&I.prototype.render){for(a.state=a.__s,a.__d=!1,P&&P(u),s=a.render(a.props,a.state,a.context),$=0;$<a._sb.length;$++)a.__h.push(a._sb[$]);a._sb=[];}else do{a.__d=!1,P&&P(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++C<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),H=null!=s&&s.type===_&&null==s.key?s.props.children:s,x(n,Array.isArray(H)?H:[H],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),b&&(a.__E=a.__=null),a.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=N(i.__e,u,i,t,r,o,f,c);(s=l.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l.__e(n,u,i);}}function M(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function N(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=true),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break;}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=false;}if(null===d)y===p||e&&l.data===p||(l.data=p);else {if(o=o&&n.call(l.childNodes),a=(y=i.props||c).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(H(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,x(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&b(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&T(l,"value",_,y.value,false),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&T(l,"checked",_,y.checked,false));}return l;}function O(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l.__e(n,i);}}function S(n,u,i){var t,r;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||O(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&S(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v(n.__e),n.__=n.__e=n.__d=void 0;}function q$1(n,l,u){return this.constructor(n,u);}function B$1(u,i,t){var r,o,f;l.__&&l.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],L(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c,c,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),M(f,u);}n=s.slice,l={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t;}catch(l){n=l;}throw n;}},u=0,k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),m(this));},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),m(this));},k.prototype.render=_,t=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b;},w.__r=0;function renderer(){let opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};const _opts$createElement=opts.createElement,createElement=_opts$createElement===void 0?document.createElement.bind(document):_opts$createElement;let el;let rect=createRendererBox();let dNode;const settings={transform:undefined,disableScreenReader:false};const dom=create();dom.element=()=>el;dom.root=()=>el;dom.settings=rendererSettings=>{if(rendererSettings){Object.keys(settings).forEach(key=>{if(rendererSettings[key]!==undefined){settings[key]=rendererSettings[key];}});}return settings;};dom.appendTo=element=>{if(!el){el=createElement('div');el.style.position='absolute';el.style['-webkit-font-smoothing']='antialiased';el.style['-moz-osx-font-smoothing']='antialiased';el.style.pointerEvents='none';}element.appendChild(el);return el;};dom.render=nodes=>{if(!el){return false;}const transformation=typeof settings.transform==='function'&&settings.transform();if(transformation){const horizontalScaling=transformation.horizontalScaling,horizontalSkewing=transformation.horizontalSkewing,verticalSkewing=transformation.verticalSkewing,verticalScaling=transformation.verticalScaling,horizontalMoving=transformation.horizontalMoving,verticalMoving=transformation.verticalMoving;el.style.transform="matrix(".concat(horizontalScaling,", ").concat(horizontalSkewing,", ").concat(verticalSkewing,", ").concat(verticalScaling,", ").concat(horizontalMoving,", ").concat(verticalMoving,")");return true;}el.style.transform='';const disableScreenReader=settings.disableScreenReader;if(disableScreenReader){el.setAttribute('aria-hidden',true);}el.style.left="".concat(rect.computedPhysical.x,"px");el.style.top="".concat(rect.computedPhysical.y,"px");el.style.width="".concat(rect.computedPhysical.width,"px");el.style.height="".concat(rect.computedPhysical.height,"px");let vNode;if(Array.isArray(nodes)){vNode=y("div",null,nodes);}else {vNode=nodes;}dNode=B$1(vNode,el,dNode);return true;};dom.renderArgs=[y];// Arguments to render functions using the DOM renderer
|
|
13695
13695
|
dom.clear=()=>{if(el){let first=el.firstChild;while(first){el.removeChild(first);first=el.firstChild;}dNode=null;}return dom;};dom.destroy=()=>{if(el&&el.parentElement){el.parentElement.removeChild(el);}el=null;dNode=null;};dom.size=inner=>{if(inner){rect=createRendererBox(inner);}return rect;};return dom;}function rendererComponent(picasso){picasso.renderer('dom',renderer);}var renderers=[rendererComponent$1,rendererComponent$2,rendererComponent];var scales=[];const LOG_LEVEL={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4};const loggerFn=function(){let _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref$level=_ref.level,level=_ref$level===void 0?LOG_LEVEL.OFF:_ref$level,_ref$pipe=_ref.pipe,pipe=_ref$pipe===void 0?console:_ref$pipe;let currentlevel=level;const LOG_FN={[LOG_LEVEL.OFF]:()=>{},[LOG_LEVEL.ERROR]:function(){return pipe.error(...arguments);},[LOG_LEVEL.WARN]:function(){return pipe.warn(...arguments);},[LOG_LEVEL.INFO]:function(){return pipe.info(...arguments);},[LOG_LEVEL.DEBUG]:function(){return pipe.log(...arguments);}};const log=function(lev){if(!lev||currentlevel<lev){return;}for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}(LOG_FN[lev]||LOG_FN[LOG_LEVEL.DEBUG])(...args);};/**
|
|
13696
13696
|
* @typedef {object} logger
|
|
13697
13697
|
* @private
|
|
@@ -19556,7 +19556,7 @@
|
|
|
19556
19556
|
* @default
|
|
19557
19557
|
*/
|
|
19558
19558
|
// oxlint-disable-next-line no-undef
|
|
19559
|
-
version: "1.
|
|
19559
|
+
version: "1.3.0",
|
|
19560
19560
|
/**
|
|
19561
19561
|
* Extends `HyperCubeDef`, see Engine API: `HyperCubeDef`.
|
|
19562
19562
|
* @extends {HyperCubeDef}
|
|
@@ -28176,7 +28176,7 @@
|
|
|
28176
28176
|
const hsl$1 = /^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i;
|
|
28177
28177
|
const hsla$1 = /^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i;
|
|
28178
28178
|
const floor = Math.floor;
|
|
28179
|
-
const round = Math.round;
|
|
28179
|
+
const round$1 = Math.round;
|
|
28180
28180
|
|
|
28181
28181
|
/**
|
|
28182
28182
|
* @class
|
|
@@ -28284,9 +28284,9 @@
|
|
|
28284
28284
|
r = rgb_[0] + m;
|
|
28285
28285
|
g = rgb_[1] + m;
|
|
28286
28286
|
b = rgb_[2] + m;
|
|
28287
|
-
r = round(255 * r);
|
|
28288
|
-
g = round(255 * g);
|
|
28289
|
-
b = round(255 * b);
|
|
28287
|
+
r = round$1(255 * r);
|
|
28288
|
+
g = round$1(255 * g);
|
|
28289
|
+
b = round$1(255 * b);
|
|
28290
28290
|
a = 1.0;
|
|
28291
28291
|
} else if (matches = /^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(colorString)) {
|
|
28292
28292
|
// hsla(1,2,3,0.4)
|
|
@@ -28331,9 +28331,9 @@
|
|
|
28331
28331
|
r = rgb_[0] + m;
|
|
28332
28332
|
g = rgb_[1] + m;
|
|
28333
28333
|
b = rgb_[2] + m;
|
|
28334
|
-
r = round(255 * r);
|
|
28335
|
-
g = round(255 * g);
|
|
28336
|
-
b = round(255 * b);
|
|
28334
|
+
r = round$1(255 * r);
|
|
28335
|
+
g = round$1(255 * g);
|
|
28336
|
+
b = round$1(255 * b);
|
|
28337
28337
|
} else if (matches = /^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(colorString)) {
|
|
28338
28338
|
// hsv(1, 2, 3) {
|
|
28339
28339
|
h = parseFloat(matches[1]);
|
|
@@ -28376,9 +28376,9 @@
|
|
|
28376
28376
|
r = rgb_[0] + m;
|
|
28377
28377
|
g = rgb_[1] + m;
|
|
28378
28378
|
b = rgb_[2] + m;
|
|
28379
|
-
r = round(255 * r);
|
|
28380
|
-
g = round(255 * g);
|
|
28381
|
-
b = round(255 * b);
|
|
28379
|
+
r = round$1(255 * r);
|
|
28380
|
+
g = round$1(255 * g);
|
|
28381
|
+
b = round$1(255 * b);
|
|
28382
28382
|
a = 1.0;
|
|
28383
28383
|
} else if (colorStruct[colorString.toLowerCase()]) {
|
|
28384
28384
|
lcs = colorString.toLowerCase();
|
|
@@ -30548,14 +30548,13 @@
|
|
|
30548
30548
|
getGeneratedMeasurePath
|
|
30549
30549
|
};
|
|
30550
30550
|
|
|
30551
|
+
// https://d3js.org/d3-array/ v3.2.5 Copyright 2010-2026 Mike Bostock
|
|
30551
30552
|
function ascending(a, b) {
|
|
30552
30553
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
30553
30554
|
}
|
|
30554
|
-
|
|
30555
30555
|
function descending(a, b) {
|
|
30556
30556
|
return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
30557
30557
|
}
|
|
30558
|
-
|
|
30559
30558
|
function bisector(f) {
|
|
30560
30559
|
let compare1, compare2, delta;
|
|
30561
30560
|
|
|
@@ -30606,15 +30605,12 @@
|
|
|
30606
30605
|
function zero$1() {
|
|
30607
30606
|
return 0;
|
|
30608
30607
|
}
|
|
30609
|
-
|
|
30610
|
-
function number$1(x) {
|
|
30608
|
+
function number$2(x) {
|
|
30611
30609
|
return x === null ? NaN : +x;
|
|
30612
30610
|
}
|
|
30613
|
-
|
|
30614
30611
|
const ascendingBisect = bisector(ascending);
|
|
30615
30612
|
const bisectRight = ascendingBisect.right;
|
|
30616
|
-
bisector(number$
|
|
30617
|
-
|
|
30613
|
+
bisector(number$2).center;
|
|
30618
30614
|
const e10 = Math.sqrt(50),
|
|
30619
30615
|
e5 = Math.sqrt(10),
|
|
30620
30616
|
e2 = Math.sqrt(2);
|
|
@@ -30668,21 +30664,8 @@
|
|
|
30668
30664
|
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
30669
30665
|
}
|
|
30670
30666
|
|
|
30671
|
-
|
|
30672
|
-
|
|
30673
|
-
case 0:
|
|
30674
|
-
break;
|
|
30675
|
-
case 1:
|
|
30676
|
-
this.range(domain);
|
|
30677
|
-
break;
|
|
30678
|
-
default:
|
|
30679
|
-
this.range(range).domain(domain);
|
|
30680
|
-
break;
|
|
30681
|
-
}
|
|
30682
|
-
return this;
|
|
30683
|
-
}
|
|
30684
|
-
|
|
30685
|
-
function define$1 (constructor, factory, prototype) {
|
|
30667
|
+
// https://d3js.org/d3-color/ v3.1.1 Copyright 2010-2026 Mike Bostock
|
|
30668
|
+
function define$1(constructor, factory, prototype) {
|
|
30686
30669
|
constructor.prototype = factory.prototype = prototype;
|
|
30687
30670
|
prototype.constructor = constructor;
|
|
30688
30671
|
}
|
|
@@ -30691,7 +30674,6 @@
|
|
|
30691
30674
|
for (var key in definition) prototype[key] = definition[key];
|
|
30692
30675
|
return prototype;
|
|
30693
30676
|
}
|
|
30694
|
-
|
|
30695
30677
|
function Color() {}
|
|
30696
30678
|
var darker = 0.7;
|
|
30697
30679
|
var brighter = 1 / darker;
|
|
@@ -31042,9 +31024,156 @@
|
|
|
31042
31024
|
function hsl2rgb(h, m1, m2) {
|
|
31043
31025
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
31044
31026
|
}
|
|
31027
|
+
const radians = Math.PI / 180;
|
|
31028
|
+
const degrees = 180 / Math.PI;
|
|
31029
|
+
|
|
31030
|
+
// https://observablehq.com/@mbostock/lab-and-rgb
|
|
31031
|
+
const K = 18,
|
|
31032
|
+
Xn = 0.96422,
|
|
31033
|
+
Yn = 1,
|
|
31034
|
+
Zn = 0.82521,
|
|
31035
|
+
t0 = 4 / 29,
|
|
31036
|
+
t1 = 6 / 29,
|
|
31037
|
+
t2 = 3 * t1 * t1,
|
|
31038
|
+
t3 = t1 * t1 * t1;
|
|
31039
|
+
function labConvert(o) {
|
|
31040
|
+
if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
|
|
31041
|
+
if (o instanceof Hcl) return hcl2lab(o);
|
|
31042
|
+
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
31043
|
+
var r = rgb2lrgb(o.r),
|
|
31044
|
+
g = rgb2lrgb(o.g),
|
|
31045
|
+
b = rgb2lrgb(o.b),
|
|
31046
|
+
y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn),
|
|
31047
|
+
x,
|
|
31048
|
+
z;
|
|
31049
|
+
if (r === g && g === b) x = z = y;else {
|
|
31050
|
+
x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
|
|
31051
|
+
z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
|
|
31052
|
+
}
|
|
31053
|
+
return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
|
|
31054
|
+
}
|
|
31055
|
+
function lab(l, a, b, opacity) {
|
|
31056
|
+
return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
|
|
31057
|
+
}
|
|
31058
|
+
function Lab(l, a, b, opacity) {
|
|
31059
|
+
this.l = +l;
|
|
31060
|
+
this.a = +a;
|
|
31061
|
+
this.b = +b;
|
|
31062
|
+
this.opacity = +opacity;
|
|
31063
|
+
}
|
|
31064
|
+
define$1(Lab, lab, extend(Color, {
|
|
31065
|
+
brighter(k) {
|
|
31066
|
+
return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
31067
|
+
},
|
|
31068
|
+
darker(k) {
|
|
31069
|
+
return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
31070
|
+
},
|
|
31071
|
+
rgb() {
|
|
31072
|
+
var y = (this.l + 16) / 116,
|
|
31073
|
+
x = isNaN(this.a) ? y : y + this.a / 500,
|
|
31074
|
+
z = isNaN(this.b) ? y : y - this.b / 200;
|
|
31075
|
+
x = Xn * lab2xyz(x);
|
|
31076
|
+
y = Yn * lab2xyz(y);
|
|
31077
|
+
z = Zn * lab2xyz(z);
|
|
31078
|
+
return new Rgb(lrgb2rgb(3.1338561 * x - 1.6168667 * y - 0.4906146 * z), lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), lrgb2rgb(0.0719453 * x - 0.2289914 * y + 1.4052427 * z), this.opacity);
|
|
31079
|
+
}
|
|
31080
|
+
}));
|
|
31081
|
+
function xyz2lab(t) {
|
|
31082
|
+
return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;
|
|
31083
|
+
}
|
|
31084
|
+
function lab2xyz(t) {
|
|
31085
|
+
return t > t1 ? t * t * t : t2 * (t - t0);
|
|
31086
|
+
}
|
|
31087
|
+
function lrgb2rgb(x) {
|
|
31088
|
+
return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
|
|
31089
|
+
}
|
|
31090
|
+
function rgb2lrgb(x) {
|
|
31091
|
+
return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
|
|
31092
|
+
}
|
|
31093
|
+
function hclConvert(o) {
|
|
31094
|
+
if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
|
|
31095
|
+
if (!(o instanceof Lab)) o = labConvert(o);
|
|
31096
|
+
if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
|
|
31097
|
+
var h = Math.atan2(o.b, o.a) * degrees;
|
|
31098
|
+
return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
|
|
31099
|
+
}
|
|
31100
|
+
function hcl(h, c, l, opacity) {
|
|
31101
|
+
return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
|
|
31102
|
+
}
|
|
31103
|
+
function Hcl(h, c, l, opacity) {
|
|
31104
|
+
this.h = +h;
|
|
31105
|
+
this.c = +c;
|
|
31106
|
+
this.l = +l;
|
|
31107
|
+
this.opacity = +opacity;
|
|
31108
|
+
}
|
|
31109
|
+
function hcl2lab(o) {
|
|
31110
|
+
if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
|
|
31111
|
+
var h = o.h * radians;
|
|
31112
|
+
return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
|
|
31113
|
+
}
|
|
31114
|
+
define$1(Hcl, hcl, extend(Color, {
|
|
31115
|
+
brighter(k) {
|
|
31116
|
+
return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
|
|
31117
|
+
},
|
|
31118
|
+
darker(k) {
|
|
31119
|
+
return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
|
|
31120
|
+
},
|
|
31121
|
+
rgb() {
|
|
31122
|
+
return hcl2lab(this).rgb();
|
|
31123
|
+
}
|
|
31124
|
+
}));
|
|
31125
|
+
var A = -0.14861,
|
|
31126
|
+
B = 1.78277,
|
|
31127
|
+
C = -0.29227,
|
|
31128
|
+
D = -0.90649,
|
|
31129
|
+
E = 1.97294,
|
|
31130
|
+
ED = E * D,
|
|
31131
|
+
EB = E * B,
|
|
31132
|
+
BC_DA = B * C - D * A;
|
|
31133
|
+
function cubehelixConvert(o) {
|
|
31134
|
+
if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
|
|
31135
|
+
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
31136
|
+
var r = o.r / 255,
|
|
31137
|
+
g = o.g / 255,
|
|
31138
|
+
b = o.b / 255,
|
|
31139
|
+
l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
|
|
31140
|
+
bl = b - l,
|
|
31141
|
+
k = (E * (g - l) - C * bl) / D,
|
|
31142
|
+
s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)),
|
|
31143
|
+
// NaN if l=0 or l=1
|
|
31144
|
+
h = s ? Math.atan2(k, bl) * degrees - 120 : NaN;
|
|
31145
|
+
return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
|
|
31146
|
+
}
|
|
31147
|
+
function cubehelix$1(h, s, l, opacity) {
|
|
31148
|
+
return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
|
|
31149
|
+
}
|
|
31150
|
+
function Cubehelix(h, s, l, opacity) {
|
|
31151
|
+
this.h = +h;
|
|
31152
|
+
this.s = +s;
|
|
31153
|
+
this.l = +l;
|
|
31154
|
+
this.opacity = +opacity;
|
|
31155
|
+
}
|
|
31156
|
+
define$1(Cubehelix, cubehelix$1, extend(Color, {
|
|
31157
|
+
brighter(k) {
|
|
31158
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
31159
|
+
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
31160
|
+
},
|
|
31161
|
+
darker(k) {
|
|
31162
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
31163
|
+
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
31164
|
+
},
|
|
31165
|
+
rgb() {
|
|
31166
|
+
var h = isNaN(this.h) ? 0 : (this.h + 120) * radians,
|
|
31167
|
+
l = +this.l,
|
|
31168
|
+
a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
|
|
31169
|
+
cosh = Math.cos(h),
|
|
31170
|
+
sinh = Math.sin(h);
|
|
31171
|
+
return new Rgb(255 * (l + a * (A * cosh + B * sinh)), 255 * (l + a * (C * cosh + D * sinh)), 255 * (l + a * (E * cosh)), this.opacity);
|
|
31172
|
+
}
|
|
31173
|
+
}));
|
|
31045
31174
|
|
|
31175
|
+
// https://d3js.org/d3-interpolate/ v3.0.2 Copyright 2010-2026 Mike Bostock
|
|
31046
31176
|
var constant = x => () => x;
|
|
31047
|
-
|
|
31048
31177
|
function linear$1(a, d) {
|
|
31049
31178
|
return function (t) {
|
|
31050
31179
|
return a + t * d;
|
|
@@ -31055,6 +31184,10 @@
|
|
|
31055
31184
|
return Math.pow(a + t * b, y);
|
|
31056
31185
|
};
|
|
31057
31186
|
}
|
|
31187
|
+
function hue$1(a, b) {
|
|
31188
|
+
var d = b - a;
|
|
31189
|
+
return d ? linear$1(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
|
|
31190
|
+
}
|
|
31058
31191
|
function gamma(y) {
|
|
31059
31192
|
return (y = +y) === 1 ? nogamma : function (a, b) {
|
|
31060
31193
|
return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);
|
|
@@ -31064,8 +31197,7 @@
|
|
|
31064
31197
|
var d = b - a;
|
|
31065
31198
|
return d ? linear$1(a, d) : constant(isNaN(a) ? b : a);
|
|
31066
31199
|
}
|
|
31067
|
-
|
|
31068
|
-
var rgb = (function rgbGamma(y) {
|
|
31200
|
+
var rgb = function rgbGamma(y) {
|
|
31069
31201
|
var color = gamma(y);
|
|
31070
31202
|
function rgb(start, end) {
|
|
31071
31203
|
var r = color((start = rgb$1(start)).r, (end = rgb$1(end)).r),
|
|
@@ -31082,9 +31214,8 @@
|
|
|
31082
31214
|
}
|
|
31083
31215
|
rgb.gamma = rgbGamma;
|
|
31084
31216
|
return rgb;
|
|
31085
|
-
}
|
|
31086
|
-
|
|
31087
|
-
function numberArray (a, b) {
|
|
31217
|
+
}(1);
|
|
31218
|
+
function numberArray(a, b) {
|
|
31088
31219
|
if (!b) b = [];
|
|
31089
31220
|
var n = a ? Math.min(b.length, a.length) : 0,
|
|
31090
31221
|
c = b.slice(),
|
|
@@ -31097,35 +31228,31 @@
|
|
|
31097
31228
|
function isNumberArray(x) {
|
|
31098
31229
|
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
31099
31230
|
}
|
|
31100
|
-
|
|
31101
31231
|
function genericArray(a, b) {
|
|
31102
31232
|
var nb = b ? b.length : 0,
|
|
31103
31233
|
na = a ? Math.min(nb, a.length) : 0,
|
|
31104
31234
|
x = new Array(na),
|
|
31105
31235
|
c = new Array(nb),
|
|
31106
31236
|
i;
|
|
31107
|
-
for (i = 0; i < na; ++i) x[i] =
|
|
31237
|
+
for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);
|
|
31108
31238
|
for (; i < nb; ++i) c[i] = b[i];
|
|
31109
31239
|
return function (t) {
|
|
31110
31240
|
for (i = 0; i < na; ++i) c[i] = x[i](t);
|
|
31111
31241
|
return c;
|
|
31112
31242
|
};
|
|
31113
31243
|
}
|
|
31114
|
-
|
|
31115
|
-
function date (a, b) {
|
|
31244
|
+
function date(a, b) {
|
|
31116
31245
|
var d = new Date();
|
|
31117
31246
|
return a = +a, b = +b, function (t) {
|
|
31118
31247
|
return d.setTime(a * (1 - t) + b * t), d;
|
|
31119
31248
|
};
|
|
31120
31249
|
}
|
|
31121
|
-
|
|
31122
|
-
function interpolateNumber (a, b) {
|
|
31250
|
+
function number(a, b) {
|
|
31123
31251
|
return a = +a, b = +b, function (t) {
|
|
31124
31252
|
return a * (1 - t) + b * t;
|
|
31125
31253
|
};
|
|
31126
31254
|
}
|
|
31127
|
-
|
|
31128
|
-
function object (a, b) {
|
|
31255
|
+
function object(a, b) {
|
|
31129
31256
|
var i = {},
|
|
31130
31257
|
c = {},
|
|
31131
31258
|
k;
|
|
@@ -31133,7 +31260,7 @@
|
|
|
31133
31260
|
if (b === null || typeof b !== "object") b = {};
|
|
31134
31261
|
for (k in b) {
|
|
31135
31262
|
if (k in a) {
|
|
31136
|
-
i[k] =
|
|
31263
|
+
i[k] = value(a[k], b[k]);
|
|
31137
31264
|
} else {
|
|
31138
31265
|
c[k] = b[k];
|
|
31139
31266
|
}
|
|
@@ -31143,7 +31270,6 @@
|
|
|
31143
31270
|
return c;
|
|
31144
31271
|
};
|
|
31145
31272
|
}
|
|
31146
|
-
|
|
31147
31273
|
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
|
|
31148
31274
|
reB = new RegExp(reA.source, "g");
|
|
31149
31275
|
function zero(b) {
|
|
@@ -31156,7 +31282,7 @@
|
|
|
31156
31282
|
return b(t) + "";
|
|
31157
31283
|
};
|
|
31158
31284
|
}
|
|
31159
|
-
function string
|
|
31285
|
+
function string(a, b) {
|
|
31160
31286
|
var bi = reA.lastIndex = reB.lastIndex = 0,
|
|
31161
31287
|
// scan index for next number in b
|
|
31162
31288
|
am,
|
|
@@ -31191,7 +31317,7 @@
|
|
|
31191
31317
|
s[++i] = null;
|
|
31192
31318
|
q.push({
|
|
31193
31319
|
i: i,
|
|
31194
|
-
x:
|
|
31320
|
+
x: number(am, bm)
|
|
31195
31321
|
});
|
|
31196
31322
|
}
|
|
31197
31323
|
bi = reB.lastIndex;
|
|
@@ -31211,133 +31337,101 @@
|
|
|
31211
31337
|
return s.join("");
|
|
31212
31338
|
});
|
|
31213
31339
|
}
|
|
31214
|
-
|
|
31215
|
-
function interpolate (a, b) {
|
|
31340
|
+
function value(a, b) {
|
|
31216
31341
|
var t = typeof b,
|
|
31217
31342
|
c;
|
|
31218
|
-
return b == null || t === "boolean" ? constant(b) : (t === "number" ?
|
|
31343
|
+
return b == null || t === "boolean" ? constant(b) : (t === "number" ? number : t === "string" ? (c = color(b)) ? (b = c, rgb) : string : b instanceof color ? rgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : number)(a, b);
|
|
31219
31344
|
}
|
|
31220
|
-
|
|
31221
|
-
function interpolateRound (a, b) {
|
|
31345
|
+
function round(a, b) {
|
|
31222
31346
|
return a = +a, b = +b, function (t) {
|
|
31223
31347
|
return Math.round(a * (1 - t) + b * t);
|
|
31224
31348
|
};
|
|
31225
31349
|
}
|
|
31350
|
+
var epsilon2 = 1e-12;
|
|
31351
|
+
function cosh(x) {
|
|
31352
|
+
return ((x = Math.exp(x)) + 1 / x) / 2;
|
|
31353
|
+
}
|
|
31354
|
+
function sinh(x) {
|
|
31355
|
+
return ((x = Math.exp(x)) - 1 / x) / 2;
|
|
31356
|
+
}
|
|
31357
|
+
function tanh(x) {
|
|
31358
|
+
return ((x = Math.exp(2 * x)) - 1) / (x + 1);
|
|
31359
|
+
}
|
|
31360
|
+
(function zoomRho(rho, rho2, rho4) {
|
|
31361
|
+
// p0 = [ux0, uy0, w0]
|
|
31362
|
+
// p1 = [ux1, uy1, w1]
|
|
31363
|
+
function zoom(p0, p1) {
|
|
31364
|
+
var ux0 = p0[0],
|
|
31365
|
+
uy0 = p0[1],
|
|
31366
|
+
w0 = p0[2],
|
|
31367
|
+
ux1 = p1[0],
|
|
31368
|
+
uy1 = p1[1],
|
|
31369
|
+
w1 = p1[2],
|
|
31370
|
+
dx = ux1 - ux0,
|
|
31371
|
+
dy = uy1 - uy0,
|
|
31372
|
+
d2 = dx * dx + dy * dy,
|
|
31373
|
+
i,
|
|
31374
|
+
S;
|
|
31226
31375
|
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
|
|
31230
|
-
|
|
31231
|
-
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
return +x;
|
|
31235
|
-
}
|
|
31236
|
-
|
|
31237
|
-
var unit = [0, 1];
|
|
31238
|
-
function identity$1(x) {
|
|
31239
|
-
return x;
|
|
31240
|
-
}
|
|
31241
|
-
function normalize(a, b) {
|
|
31242
|
-
return (b -= a = +a) ? function (x) {
|
|
31243
|
-
return (x - a) / b;
|
|
31244
|
-
} : constants(isNaN(b) ? NaN : 0.5);
|
|
31245
|
-
}
|
|
31246
|
-
function clamper(a, b) {
|
|
31247
|
-
var t;
|
|
31248
|
-
if (a > b) t = a, a = b, b = t;
|
|
31249
|
-
return function (x) {
|
|
31250
|
-
return Math.max(a, Math.min(b, x));
|
|
31251
|
-
};
|
|
31252
|
-
}
|
|
31253
|
-
|
|
31254
|
-
// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
|
|
31255
|
-
// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
|
|
31256
|
-
function bimap(domain, range, interpolate) {
|
|
31257
|
-
var d0 = domain[0],
|
|
31258
|
-
d1 = domain[1],
|
|
31259
|
-
r0 = range[0],
|
|
31260
|
-
r1 = range[1];
|
|
31261
|
-
if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
|
|
31262
|
-
return function (x) {
|
|
31263
|
-
return r0(d0(x));
|
|
31264
|
-
};
|
|
31265
|
-
}
|
|
31266
|
-
function polymap(domain, range, interpolate) {
|
|
31267
|
-
var j = Math.min(domain.length, range.length) - 1,
|
|
31268
|
-
d = new Array(j),
|
|
31269
|
-
r = new Array(j),
|
|
31270
|
-
i = -1;
|
|
31376
|
+
// Special case for u0 ≅ u1.
|
|
31377
|
+
if (d2 < epsilon2) {
|
|
31378
|
+
S = Math.log(w1 / w0) / rho;
|
|
31379
|
+
i = function (t) {
|
|
31380
|
+
return [ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(rho * t * S)];
|
|
31381
|
+
};
|
|
31382
|
+
}
|
|
31271
31383
|
|
|
31272
|
-
|
|
31273
|
-
|
|
31274
|
-
|
|
31275
|
-
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
-
|
|
31282
|
-
|
|
31283
|
-
|
|
31284
|
-
|
|
31285
|
-
|
|
31286
|
-
|
|
31287
|
-
|
|
31288
|
-
|
|
31289
|
-
function transformer() {
|
|
31290
|
-
var domain = unit,
|
|
31291
|
-
range = unit,
|
|
31292
|
-
interpolate$1 = interpolate,
|
|
31293
|
-
transform,
|
|
31294
|
-
untransform,
|
|
31295
|
-
unknown,
|
|
31296
|
-
clamp = identity$1,
|
|
31297
|
-
piecewise,
|
|
31298
|
-
output,
|
|
31299
|
-
input;
|
|
31300
|
-
function rescale() {
|
|
31301
|
-
var n = Math.min(domain.length, range.length);
|
|
31302
|
-
if (clamp !== identity$1) clamp = clamper(domain[0], domain[n - 1]);
|
|
31303
|
-
piecewise = n > 2 ? polymap : bimap;
|
|
31304
|
-
output = input = null;
|
|
31305
|
-
return scale;
|
|
31306
|
-
}
|
|
31307
|
-
function scale(x) {
|
|
31308
|
-
return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate$1)))(transform(clamp(x)));
|
|
31384
|
+
// General case.
|
|
31385
|
+
else {
|
|
31386
|
+
var d1 = Math.sqrt(d2),
|
|
31387
|
+
b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
|
|
31388
|
+
b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
|
|
31389
|
+
r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
|
|
31390
|
+
r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
|
|
31391
|
+
S = (r1 - r0) / rho;
|
|
31392
|
+
i = function (t) {
|
|
31393
|
+
var s = t * S,
|
|
31394
|
+
coshr0 = cosh(r0),
|
|
31395
|
+
u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
|
|
31396
|
+
return [ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / cosh(rho * s + r0)];
|
|
31397
|
+
};
|
|
31398
|
+
}
|
|
31399
|
+
i.duration = Math.abs(S) * 1000 * rho / Math.SQRT2;
|
|
31400
|
+
return i;
|
|
31309
31401
|
}
|
|
31310
|
-
|
|
31311
|
-
|
|
31312
|
-
|
|
31313
|
-
|
|
31314
|
-
return
|
|
31315
|
-
};
|
|
31316
|
-
scale.range = function (_) {
|
|
31317
|
-
return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
|
|
31318
|
-
};
|
|
31319
|
-
scale.rangeRound = function (_) {
|
|
31320
|
-
return range = Array.from(_), interpolate$1 = interpolateRound, rescale();
|
|
31321
|
-
};
|
|
31322
|
-
scale.clamp = function (_) {
|
|
31323
|
-
return arguments.length ? (clamp = _ ? true : identity$1, rescale()) : clamp !== identity$1;
|
|
31324
|
-
};
|
|
31325
|
-
scale.interpolate = function (_) {
|
|
31326
|
-
return arguments.length ? (interpolate$1 = _, rescale()) : interpolate$1;
|
|
31327
|
-
};
|
|
31328
|
-
scale.unknown = function (_) {
|
|
31329
|
-
return arguments.length ? (unknown = _, scale) : unknown;
|
|
31330
|
-
};
|
|
31331
|
-
return function (t, u) {
|
|
31332
|
-
transform = t, untransform = u;
|
|
31333
|
-
return rescale();
|
|
31402
|
+
zoom.rho = function (_) {
|
|
31403
|
+
var _1 = Math.max(1e-3, +_),
|
|
31404
|
+
_2 = _1 * _1,
|
|
31405
|
+
_4 = _2 * _2;
|
|
31406
|
+
return zoomRho(_1, _2, _4);
|
|
31334
31407
|
};
|
|
31408
|
+
return zoom;
|
|
31409
|
+
})(Math.SQRT2, 2, 4);
|
|
31410
|
+
function cubehelix(hue) {
|
|
31411
|
+
return function cubehelixGamma(y) {
|
|
31412
|
+
y = +y;
|
|
31413
|
+
function cubehelix(start, end) {
|
|
31414
|
+
var h = hue((start = cubehelix$1(start)).h, (end = cubehelix$1(end)).h),
|
|
31415
|
+
s = nogamma(start.s, end.s),
|
|
31416
|
+
l = nogamma(start.l, end.l),
|
|
31417
|
+
opacity = nogamma(start.opacity, end.opacity);
|
|
31418
|
+
return function (t) {
|
|
31419
|
+
start.h = h(t);
|
|
31420
|
+
start.s = s(t);
|
|
31421
|
+
start.l = l(Math.pow(t, y));
|
|
31422
|
+
start.opacity = opacity(t);
|
|
31423
|
+
return start + "";
|
|
31424
|
+
};
|
|
31425
|
+
}
|
|
31426
|
+
cubehelix.gamma = cubehelixGamma;
|
|
31427
|
+
return cubehelix;
|
|
31428
|
+
}(1);
|
|
31335
31429
|
}
|
|
31336
|
-
|
|
31337
|
-
|
|
31338
|
-
}
|
|
31430
|
+
cubehelix(hue$1);
|
|
31431
|
+
cubehelix(nogamma);
|
|
31339
31432
|
|
|
31340
|
-
|
|
31433
|
+
// https://d3js.org/d3-format/ v3.1.3 Copyright 2010-2026 Mike Bostock
|
|
31434
|
+
function formatDecimal(x) {
|
|
31341
31435
|
return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
|
|
31342
31436
|
}
|
|
31343
31437
|
|
|
@@ -31353,12 +31447,10 @@
|
|
|
31353
31447
|
// (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
|
|
31354
31448
|
return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
|
|
31355
31449
|
}
|
|
31356
|
-
|
|
31357
|
-
function exponent (x) {
|
|
31450
|
+
function exponent(x) {
|
|
31358
31451
|
return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
|
|
31359
31452
|
}
|
|
31360
|
-
|
|
31361
|
-
function formatGroup (grouping, thousands) {
|
|
31453
|
+
function formatGroup(grouping, thousands) {
|
|
31362
31454
|
return function (value, width) {
|
|
31363
31455
|
var i = value.length,
|
|
31364
31456
|
t = [],
|
|
@@ -31374,8 +31466,7 @@
|
|
|
31374
31466
|
return t.reverse().join(thousands);
|
|
31375
31467
|
};
|
|
31376
31468
|
}
|
|
31377
|
-
|
|
31378
|
-
function formatNumerals (numerals) {
|
|
31469
|
+
function formatNumerals(numerals) {
|
|
31379
31470
|
return function (value) {
|
|
31380
31471
|
return value.replace(/[0-9]/g, function (i) {
|
|
31381
31472
|
return numerals[+i];
|
|
@@ -31420,7 +31511,7 @@
|
|
|
31420
31511
|
};
|
|
31421
31512
|
|
|
31422
31513
|
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
|
|
31423
|
-
function formatTrim
|
|
31514
|
+
function formatTrim(s) {
|
|
31424
31515
|
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
31425
31516
|
switch (s[i]) {
|
|
31426
31517
|
case ".":
|
|
@@ -31438,9 +31529,8 @@
|
|
|
31438
31529
|
}
|
|
31439
31530
|
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
31440
31531
|
}
|
|
31441
|
-
|
|
31442
31532
|
var prefixExponent;
|
|
31443
|
-
function formatPrefixAuto
|
|
31533
|
+
function formatPrefixAuto(x, p) {
|
|
31444
31534
|
var d = formatDecimalParts(x, p);
|
|
31445
31535
|
if (!d) return prefixExponent = undefined, x.toPrecision(p);
|
|
31446
31536
|
var coefficient = d[0],
|
|
@@ -31449,15 +31539,13 @@
|
|
|
31449
31539
|
n = coefficient.length;
|
|
31450
31540
|
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
|
|
31451
31541
|
}
|
|
31452
|
-
|
|
31453
|
-
function formatRounded (x, p) {
|
|
31542
|
+
function formatRounded(x, p) {
|
|
31454
31543
|
var d = formatDecimalParts(x, p);
|
|
31455
31544
|
if (!d) return x + "";
|
|
31456
31545
|
var coefficient = d[0],
|
|
31457
31546
|
exponent = d[1];
|
|
31458
31547
|
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
31459
31548
|
}
|
|
31460
|
-
|
|
31461
31549
|
var formatTypes = {
|
|
31462
31550
|
"%": (x, p) => (x * 100).toFixed(p),
|
|
31463
31551
|
"b": x => Math.round(x).toString(2),
|
|
@@ -31473,14 +31561,12 @@
|
|
|
31473
31561
|
"X": x => Math.round(x).toString(16).toUpperCase(),
|
|
31474
31562
|
"x": x => Math.round(x).toString(16)
|
|
31475
31563
|
};
|
|
31476
|
-
|
|
31477
|
-
function identity (x) {
|
|
31564
|
+
function identity(x) {
|
|
31478
31565
|
return x;
|
|
31479
31566
|
}
|
|
31480
|
-
|
|
31481
31567
|
var map = Array.prototype.map,
|
|
31482
31568
|
prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
31483
|
-
function formatLocale
|
|
31569
|
+
function formatLocale(locale) {
|
|
31484
31570
|
var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
|
|
31485
31571
|
currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
|
|
31486
31572
|
currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
|
|
@@ -31616,7 +31702,6 @@
|
|
|
31616
31702
|
formatPrefix: formatPrefix
|
|
31617
31703
|
};
|
|
31618
31704
|
}
|
|
31619
|
-
|
|
31620
31705
|
var locale;
|
|
31621
31706
|
var format;
|
|
31622
31707
|
var formatPrefix;
|
|
@@ -31631,20 +31716,141 @@
|
|
|
31631
31716
|
formatPrefix = locale.formatPrefix;
|
|
31632
31717
|
return locale;
|
|
31633
31718
|
}
|
|
31634
|
-
|
|
31635
|
-
function precisionFixed (step) {
|
|
31719
|
+
function precisionFixed(step) {
|
|
31636
31720
|
return Math.max(0, -exponent(Math.abs(step)));
|
|
31637
31721
|
}
|
|
31638
|
-
|
|
31639
|
-
function precisionPrefix (step, value) {
|
|
31722
|
+
function precisionPrefix(step, value) {
|
|
31640
31723
|
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
|
|
31641
31724
|
}
|
|
31642
|
-
|
|
31643
|
-
function precisionRound (step, max) {
|
|
31725
|
+
function precisionRound(step, max) {
|
|
31644
31726
|
step = Math.abs(step), max = Math.abs(max) - step;
|
|
31645
31727
|
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
|
31646
31728
|
}
|
|
31647
31729
|
|
|
31730
|
+
// https://d3js.org/d3-scale/ v4.0.3 Copyright 2010-2026 Mike Bostock
|
|
31731
|
+
function initRange(domain, range) {
|
|
31732
|
+
switch (arguments.length) {
|
|
31733
|
+
case 0:
|
|
31734
|
+
break;
|
|
31735
|
+
case 1:
|
|
31736
|
+
this.range(domain);
|
|
31737
|
+
break;
|
|
31738
|
+
default:
|
|
31739
|
+
this.range(range).domain(domain);
|
|
31740
|
+
break;
|
|
31741
|
+
}
|
|
31742
|
+
return this;
|
|
31743
|
+
}
|
|
31744
|
+
function constants(x) {
|
|
31745
|
+
return function () {
|
|
31746
|
+
return x;
|
|
31747
|
+
};
|
|
31748
|
+
}
|
|
31749
|
+
function number$1(x) {
|
|
31750
|
+
return +x;
|
|
31751
|
+
}
|
|
31752
|
+
var unit = [0, 1];
|
|
31753
|
+
function identity$1(x) {
|
|
31754
|
+
return x;
|
|
31755
|
+
}
|
|
31756
|
+
function normalize(a, b) {
|
|
31757
|
+
return (b -= a = +a) ? function (x) {
|
|
31758
|
+
return (x - a) / b;
|
|
31759
|
+
} : constants(isNaN(b) ? NaN : 0.5);
|
|
31760
|
+
}
|
|
31761
|
+
function clamper(a, b) {
|
|
31762
|
+
var t;
|
|
31763
|
+
if (a > b) t = a, a = b, b = t;
|
|
31764
|
+
return function (x) {
|
|
31765
|
+
return Math.max(a, Math.min(b, x));
|
|
31766
|
+
};
|
|
31767
|
+
}
|
|
31768
|
+
|
|
31769
|
+
// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
|
|
31770
|
+
// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
|
|
31771
|
+
function bimap(domain, range, interpolate) {
|
|
31772
|
+
var d0 = domain[0],
|
|
31773
|
+
d1 = domain[1],
|
|
31774
|
+
r0 = range[0],
|
|
31775
|
+
r1 = range[1];
|
|
31776
|
+
if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
|
|
31777
|
+
return function (x) {
|
|
31778
|
+
return r0(d0(x));
|
|
31779
|
+
};
|
|
31780
|
+
}
|
|
31781
|
+
function polymap(domain, range, interpolate) {
|
|
31782
|
+
var j = Math.min(domain.length, range.length) - 1,
|
|
31783
|
+
d = new Array(j),
|
|
31784
|
+
r = new Array(j),
|
|
31785
|
+
i = -1;
|
|
31786
|
+
|
|
31787
|
+
// Reverse descending domains.
|
|
31788
|
+
if (domain[j] < domain[0]) {
|
|
31789
|
+
domain = domain.slice().reverse();
|
|
31790
|
+
range = range.slice().reverse();
|
|
31791
|
+
}
|
|
31792
|
+
while (++i < j) {
|
|
31793
|
+
d[i] = normalize(domain[i], domain[i + 1]);
|
|
31794
|
+
r[i] = interpolate(range[i], range[i + 1]);
|
|
31795
|
+
}
|
|
31796
|
+
return function (x) {
|
|
31797
|
+
var i = bisectRight(domain, x, 1, j) - 1;
|
|
31798
|
+
return r[i](d[i](x));
|
|
31799
|
+
};
|
|
31800
|
+
}
|
|
31801
|
+
function copy$1(source, target) {
|
|
31802
|
+
return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
|
|
31803
|
+
}
|
|
31804
|
+
function transformer$2() {
|
|
31805
|
+
var domain = unit,
|
|
31806
|
+
range = unit,
|
|
31807
|
+
interpolate$1 = value,
|
|
31808
|
+
transform,
|
|
31809
|
+
untransform,
|
|
31810
|
+
unknown,
|
|
31811
|
+
clamp = identity$1,
|
|
31812
|
+
piecewise,
|
|
31813
|
+
output,
|
|
31814
|
+
input;
|
|
31815
|
+
function rescale() {
|
|
31816
|
+
var n = Math.min(domain.length, range.length);
|
|
31817
|
+
if (clamp !== identity$1) clamp = clamper(domain[0], domain[n - 1]);
|
|
31818
|
+
piecewise = n > 2 ? polymap : bimap;
|
|
31819
|
+
output = input = null;
|
|
31820
|
+
return scale;
|
|
31821
|
+
}
|
|
31822
|
+
function scale(x) {
|
|
31823
|
+
return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate$1)))(transform(clamp(x)));
|
|
31824
|
+
}
|
|
31825
|
+
scale.invert = function (y) {
|
|
31826
|
+
return clamp(untransform((input || (input = piecewise(range, domain.map(transform), number)))(y)));
|
|
31827
|
+
};
|
|
31828
|
+
scale.domain = function (_) {
|
|
31829
|
+
return arguments.length ? (domain = Array.from(_, number$1), rescale()) : domain.slice();
|
|
31830
|
+
};
|
|
31831
|
+
scale.range = function (_) {
|
|
31832
|
+
return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
|
|
31833
|
+
};
|
|
31834
|
+
scale.rangeRound = function (_) {
|
|
31835
|
+
return range = Array.from(_), interpolate$1 = round, rescale();
|
|
31836
|
+
};
|
|
31837
|
+
scale.clamp = function (_) {
|
|
31838
|
+
return arguments.length ? (clamp = _ ? true : identity$1, rescale()) : clamp !== identity$1;
|
|
31839
|
+
};
|
|
31840
|
+
scale.interpolate = function (_) {
|
|
31841
|
+
return arguments.length ? (interpolate$1 = _, rescale()) : interpolate$1;
|
|
31842
|
+
};
|
|
31843
|
+
scale.unknown = function (_) {
|
|
31844
|
+
return arguments.length ? (unknown = _, scale) : unknown;
|
|
31845
|
+
};
|
|
31846
|
+
return function (t, u) {
|
|
31847
|
+
transform = t, untransform = u;
|
|
31848
|
+
return rescale();
|
|
31849
|
+
};
|
|
31850
|
+
}
|
|
31851
|
+
function continuous() {
|
|
31852
|
+
return transformer$2()(identity$1, identity$1);
|
|
31853
|
+
}
|
|
31648
31854
|
function tickFormat(start, stop, count, specifier) {
|
|
31649
31855
|
var step = tickStep(start, stop, count),
|
|
31650
31856
|
precision;
|
|
@@ -31674,7 +31880,6 @@
|
|
|
31674
31880
|
}
|
|
31675
31881
|
return format(specifier);
|
|
31676
31882
|
}
|
|
31677
|
-
|
|
31678
31883
|
function linearish(scale) {
|
|
31679
31884
|
var domain = scale.domain;
|
|
31680
31885
|
scale.ticks = function (count) {
|
|
@@ -31723,7 +31928,7 @@
|
|
|
31723
31928
|
function linear() {
|
|
31724
31929
|
var scale = continuous();
|
|
31725
31930
|
scale.copy = function () {
|
|
31726
|
-
return copy(scale, linear());
|
|
31931
|
+
return copy$1(scale, linear());
|
|
31727
31932
|
};
|
|
31728
31933
|
initRange.apply(scale, arguments);
|
|
31729
31934
|
return linearish(scale);
|