@graphysdk/viz-engine 1.9.0-beta.1792519366749 → 1.9.0-beta.1792575115573
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var vl=Object.create,jn=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,yl=Object.getOwnPropertyNames,Sl=Object.getPrototypeOf,bl=Object.prototype.hasOwnProperty,xl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=yl(t),i=0,o=a.length,s;i<o;i++)s=a[i],!bl.call(e,s)&&s!==r&&jn(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=gl(t,s))||n.enumerable});return e},Al=(e,t,r)=>(r=e!=null?vl(Sl(e)):{},xl(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e));const c=require("./annotations-BOULoRYs.cjs"),d=require("./compiler-BhasYsyH.cjs"),b=require("./spec-builder-MtPcdHuX.cjs");let T=require("lodash-es"),yt=require("humanize-duration");yt=Al(yt,1);let M=require("d3-shape"),Il=require("d3-delaunay");typeof window<"u"&&(window.__GRAPHY_SDK__??={},window.__GRAPHY_SDK__.vizEngine="1.9.0-beta.1792519366749");function W(e,t){return e.geom===t}var ot="…",Zn=(e,t,r)=>{if(t<=0||e.length===0)return"";if(r(e)<=t)return e;if(r(ot)>t)return"";let n=0,a=e.length-1,i=0;for(;n<=a;){const o=n+a>>>1;r(e.slice(0,o)+ot)<=t?(i=o,n=o+1):a=o-1}return e.slice(0,i)+ot};var E={timeZone:"UTC"},L=e=>t=>{if(!c.isStrictTemporalDataValue(t))return"–";try{return e(t)}catch{return"n/a"}},K=e=>t=>c.isStrictNumericDataValue(t)?e(t):"–",kt=e=>t=>c.isStrictCategoricalDataValue(t)?t:"–",be=new Map,xe=new Map,Jn=256,de=(e,t)=>{const r=Qn(e,t),n=be.get(r);if(n!==void 0)return n;be.size>=Jn&&be.clear();const a=new Intl.NumberFormat(e,t);return be.set(r,a),a},R=(e,t)=>{const r=Qn(e,t),n=xe.get(r);if(n!==void 0)return n;xe.size>=Jn&&xe.clear();const a=new Intl.DateTimeFormat(e,t);return xe.set(r,a),a},Qn=(e,t)=>`${e}\0${JSON.stringify(t)}`,Tl=yt.default.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),ze={signDisplay:"negative"},ea=({valueFormat:e,locale:t,numberFormat:r,intlOptions:n})=>K(a=>{const i=typeof r.decimals=="number"?r.decimals:2,o=Ft(a,i),{base:s,suffix:l}=Nt(a,r.abbreviation);return`${de(t,{...o,...ze,...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n}).format(s)}${l}`}),ta=({locale:e,numberFormat:t,intlOptions:r})=>K(n=>{const{base:a,suffix:i}=Nt(n,t.abbreviation);return`${de(e,{...Ft(a,t.decimals),...ze,...r}).format(a)}${i}`}),Vt=e=>K(t=>{const r=Tl(Math.abs(t));return t<0?`-${r}`:r}),ra=({locale:e,intlOptions:t})=>{const r=de(e,{maximumFractionDigits:0,...ze,...t});return K(n=>r.format(n))},na=({locale:e,numberFormat:t,intlOptions:r})=>K(n=>de(e,{...Ft(n,t.decimals),...ze,...r,style:"percent"}).format(n)),Nt=(e,t="none")=>{switch(t){case"none":return{base:e,suffix:""};case"auto":{const r=Ll(e);return Nt(e,r)}default:return{base:e/c.SUFFIX_MULTIPLIERS[t],suffix:t}}},Ft=(e,t)=>{if(typeof t=="number")return{minimumFractionDigits:t,maximumFractionDigits:t};const r=Math.ceil(Math.log10(Math.abs(e))),n=r>=3?0:r===2?1:2;return{minimumFractionDigits:t==="auto"?0:n,maximumFractionDigits:n}},Ll=e=>{const t=Math.abs(e);return t>=c.SUFFIX_MULTIPLIERS.b?"b":t>=c.SUFFIX_MULTIPLIERS.m?"m":t>=c.SUFFIX_MULTIPLIERS.k?"k":"none"},El=1440*60*1e3,Rl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return L(n=>r.format(n))},wl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",timeStyle:"medium",...E,...t});return L(n=>Cl(r.formatToParts(n)))},aa=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t});return L(n=>r.format(n))},ia=({locale:e,intlOptions:t})=>{const r=R(e,{month:"long",...E,...t});return L(n=>r.format(n))},Bt=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",year:"numeric",...E,...t});return L(n=>r.format(n))},Gt=e=>L(t=>`Q${Math.floor(t.getUTCMonth()/3)+1} ${t.getUTCFullYear()}`),oa=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t,year:void 0});return L(n=>r.formatRange(n,ca(n,6)))},sa=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return L(n=>r.formatRange(n,ca(n,6)))},Ht=({locale:e,intlOptions:t})=>{const r=R(e,{year:"numeric",...E,...t});return L(n=>r.format(n))},la=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return L(n=>r.format(n))},ca=(e,t)=>new Date(e.getTime()+t*El),Cl=e=>{const t=e.findIndex(n=>n.type==="hour")-1,r=e[t];return e.map((n,a)=>a===t&&r?.type==="literal"&&r.value===", "?" • ":n.value).join("")},Dr=1e3,Ml=({valueFormat:e,locale:t,tickValues:r,intlOptions:n})=>K(a=>{const i={...$t(a,r),notation:"compact",...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n};return zt(a,t,i)}),Pl=({locale:e,tickValues:t,intlOptions:r})=>K(n=>{const a={...$t(n,t),notation:"compact",...r};return zt(n,e,a)}),Dl=({locale:e,tickValues:t,intlOptions:r})=>K(n=>{const a={...$t(n,t),notation:"compact",...r,style:"percent"};return zt(n,e,a)}),zt=(e,t,r)=>de(t,r).formatToParts(e).map(n=>n.type==="compact"?n.value.toLowerCase():n.value).join(""),ua=e=>Math.abs(e)>Dr?ua(e/Dr):Number.isInteger(e),Ol=e=>{if(e.length<2)return!1;const[t,r]=e;return typeof t!="number"||typeof r!="number"?!1:Math.abs(r-t)<1},$t=(e,t)=>ua(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:Ol(t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:Math.max(1,_l(t))},_l=e=>{const t=e.filter(u=>typeof u=="number"&&Number.isFinite(u)),r=t[0],n=t[1];if(r===void 0||n===void 0)return 0;const a=Math.abs(n-r);if(a===0)return 0;let i=0;for(const u of t)i=Math.max(i,Math.abs(u));if(i===0)return 0;const o=Math.floor(Math.log10(i)/3),s=a/10**(Math.max(0,o)*3);if(s>=1)return 0;const l=Math.ceil(-Math.log10(s)-1e-9);return Math.min(4,Math.max(0,l))},kl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return L(n=>r.format(n))},Vl=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",...E,...t});return L(n=>r.format(n))},Nl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return L(n=>r.format(n))},Fl=({locale:e,intlOptions:t,tickValues:r})=>{const n=R(e,{...Gl(r),...E,...t});return L(a=>n.format(a))},Bl=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return L(n=>r.format(n))},Gl=e=>{const t=e.filter(r=>r instanceof Date&&!Number.isNaN(r.getTime()));return t.length===0?{day:"numeric",month:"short"}:Hl(t).size>1?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{timeStyle:"short"}},Hl=e=>{const t=new Set;for(const r of e)t.add(`${r.getUTCFullYear()}-${r.getUTCMonth()}-${r.getUTCDate()}`);return t},Kt=e=>{const{valueFormat:t}=e;switch(t.type){case"currency":return Ml(e);case"date":return kl(e);case"datetime":return Fl(e);case"day_month":case"weekly_date_range":case"weekly_date_range_with_year":return Nl(e);case"decimal":case"integer":return Pl(e);case"duration":return Vt(e);case"month":return Vl(e);case"month_year":return Bt(e);case"percentage":return Dl(e);case"quarter":return Gt(e);case"text":return kt(e);case"time":return Bl(e);case"year":return Ht(e);case"lookup":return Kt({...e,valueFormat:t.fallback});default:throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}},zl=.9,$l=1/3,Kl=1/4,Yl=e=>e.formattedAxis.position==="top"||e.formattedAxis.position==="bottom"?Ul(e):Wl(e),Ul=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=da(e.ticks,n),s=ql(e.ticks,r.width),l=s*zl;if(i<=l)return{...e,labelRotation:0,labelMaxWidthPx:null};if(s>=50){const m=bt(l);return{...e,ticks:St(e.ticks,a,m,n),labelRotation:0,labelMaxWidthPx:m}}if(o+8>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const u=bt(r.height*$l);return{...e,ticks:St(e.ticks,a,u,n),labelRotation:-90,labelMaxWidthPx:u}},Wl=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=da(e.ticks,n);if(o>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const s=bt(r.width*Kl);return i<=s?{...e,labelRotation:0,labelMaxWidthPx:null}:{...e,ticks:St(e.ticks,a,s,n),labelRotation:0,labelMaxWidthPx:s}},ql=(e,t)=>{const r=e[0],n=e[1];return r===void 0||n===void 0?t:Math.abs(n.position-r.position)*t},da=(e,t)=>{const r=[];let n=0,a=0;for(const i of e){const{width:o,height:s}=t(i.formattedLabel);r.push(o),o>n&&(n=o),s>a&&(a=s)}return{widths:r,maxWidth:n,maxHeight:a}},St=(e,t,r,n)=>{const a=i=>n(i).width;return e.map((i,o)=>(t[o]??0)<=r?i:{...i,formattedLabel:Zn(i.formattedLabel,r,a)})},bt=e=>Math.max(0,Math.floor(e)),Xl=(e,t,r,n,a)=>{if(e===0)return!0;const i=r==="top"||r==="bottom",o=i?60:40;let s=n-(e-1)*o;for(let l=0;l<e;l+=1){const{width:u,height:m}=a(t(l));if(s-=i?u:m,s<0)return!1}return!0},jl=(e,t,r,n,a)=>{if(e.length<2)return!0;const i=r==="top"||r==="bottom",o=l=>{const{width:u,height:m}=a(t(l));return(i?u:m)/2};let s=o(0);for(let l=1;l<e.length;l+=1){const u=e[l-1],m=e[l];if(u===void 0||m===void 0)continue;const h=o(l);if((m.position-u.position)*n<s+h+8)return!1;s=h}return!0},Zl={ticks:[],labelAt:()=>""},Jl=({axis:e,availableSpacePx:t,measureLabel:r,resolveFormatter:n})=>{const{tickCandidates:a,position:i}=e;if(a.length===0)return[];const o=new Map,s=f=>{const v=o.get(f);if(v)return v;const g=a[f],x=g?ec(g.ticks,n(g)):Zl;return o.set(f,x),x},l=f=>{const{ticks:v,labelAt:g}=s(f);return a[f]?.source==="generated"?Xl(v.length,g,i,t,r):jl(v,g,i,t,r)};let u=0,m=a.length-1,h=-1;for(;u<=m;){const f=u+m>>>1;l(f)?(h=f,u=f+1):m=f-1}const p=Ql(h,s);return tc(s(p))},Ql=(e,t)=>{const r=e>=0?e:0;for(let n=r;n>=0;n-=1){const{ticks:a,labelAt:i}=t(n);if(rc(a,i))return n}return 0},ec=(e,t)=>{const r=new Array(e.length);return{ticks:e,labelAt:n=>{const a=r[n];if(a!==void 0)return a;const i=t(e[n]?.value??null);return r[n]=i,i}}},tc=({ticks:e,labelAt:t})=>e.map((r,n)=>({...r,formattedLabel:t(n)})),rc=(e,t)=>{const r=new Set;for(let n=0;n<e.length;n+=1){const a=t(n);if(r.has(a))return!1;r.add(a)}return!0};function Yt(e,t){return e.axes.find(r=>r.scaleAestheticKey===t)??null}function Ut(e,t){return e.categorySpan?.layerIds.includes(t)?e.categorySpan.valueFormat:e.valueFormat}function nc(e,t){return e.legends.drawn.find(r=>r.aesthetics.includes(t))??null}var ac=e=>{const t=I({...e,valueFormat:e.valueFormat.fallback}),r={};for(const[a,i]of Object.entries(e.valueFormat.cases))r[a]=I({...e,valueFormat:i});const n=e.valueFormat.byVariable;return(a,i)=>{if(i===void 0||i[n]===void 0)return t(a);const o=c.getStableKey(i[n]),s=r[o];return s!==void 0?s(a,i):t(a)}},I=e=>{switch(e.valueFormat.type){case"currency":return ea(e);case"date":return Rl(e);case"datetime":return wl(e);case"day_month":return aa(e);case"decimal":return ta(e);case"duration":return Vt(e);case"integer":return ra(e);case"month":return ia(e);case"month_year":return Bt(e);case"percentage":return na(e);case"quarter":return Gt(e);case"text":return kt(e);case"weekly_date_range":return oa(e);case"weekly_date_range_with_year":return sa(e);case"year":return Ht(e);case"time":return la(e);case"lookup":return ac({...e,valueFormat:e.valueFormat});default:{const t=e.valueFormat;throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}}};function Wt({layer:e,numberFormat:t,locale:r}){return I({valueFormat:d.getLayerYValueFormat(e),locale:r,numberFormat:t})}var ic=(e,t)=>{const r=c.readVariableName(t.x);return r!==null&&r!==c.CONSTANT_VARIABLES.x?{read:d.createXValueReader(e,t),variable:r}:{read:d.getGroup,variable:c.GROUP_VARIABLES.group}},ma=({layer:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:l})=>{const u=Wt({layer:e,numberFormat:n,locale:s}),m=t.type==="cartesian"&&t.mainAxis==="y";return{layer:e,coordSystem:t,panelRect:a,measureDataLabel:i,styleReaders:o.geom(e),formatLabel:uc({layer:e,numberFormat:n,axes:r,locale:s,absoluteFormatter:u,percentageValueStrategy:l,flipped:m}),formatAbsolute:u,formatCategory:oc({layer:e,numberFormat:n,locale:s})}},oc=({layer:e,numberFormat:t,locale:r})=>{const{read:n,variable:a}=ic(e.data,e.mapping),i=I({valueFormat:e.data.hasVariable(a)?e.data.getValueFormat(a):{type:"text"},locale:r,numberFormat:t});return o=>{const s=n(o);return s===null?null:i(s,o)}},sc=(e,t,r)=>{switch(t){case"stack":return lc(e);case"fill":return cc(e,r);case"absoluteGrandTotal":return()=>e.summary.absoluteGrandTotal??null;case"none":return()=>null}},lc=e=>{const t=c.readVariableName(e.mapping.x);let r=null,n=!1;return a=>{const i=e.summary.stackTotals;if(i===void 0||i.length===0||t===null)return null;if(!n){r=new Map;for(const l of i)r.set(l.xKey,l);n=!0}const o=a[t];if(o==null)return null;const s=r?.get(d.getObservationXKey(a,t));return s===void 0?null:s.total}},cc=(e,t)=>{const r=t?c.getXMin:c.getYMin,n=t?c.getXMax:c.getYMax,a=d.createSegmentYReader(e);return i=>{const o=r(i),s=n(i);if(!c.isStrictNumericDataValue(o)||!c.isStrictNumericDataValue(s))return null;const l=Math.abs(s-o);if(l===0)return null;const u=a(i);return c.isStrictNumericDataValue(u)?u/l:null}},uc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a,percentageValueStrategy:i,flipped:o})=>{const s=d.createRawValueReader(e.data,e.dataLabels.labelSource),l=sc(e,i,o),u=dc({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a}),m=I({valueFormat:{type:"percentage"},locale:n,numberFormat:t}),h=e.dataLabels.format==="percentage"&&ha(e);return p=>{const f=s(p);if(f===null)return"";if(!h||!c.isStrictNumericDataValue(f))return u(f,p);const v=l(p);return v===null||v===0?u(f,p):m(f/v)}},dc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a})=>{const i=e.dataLabels.labelSource,o=c.readVariableName(i);if(o!==null){if(ha(e))return a;const s=mc(e,r,t,n,o);if(s!==null)return s}return I({valueFormat:hc(e.data,i),locale:n,numberFormat:t})},ha=e=>{const t=c.readVariableName(e.dataLabels.labelSource);return t===null?!1:t===c.readVariableName(d.resolveSegmentYSource(e.position,e.mapping))},mc=(e,t,r,n,a)=>{const i=c.readVariableName(e.mapping.x);if(i===null||i!==a)return null;const o=t.find(s=>s.scaleAestheticKey==="x");return o===void 0?null:I({valueFormat:Ut(o,e.id),locale:n,numberFormat:r})},hc=(e,t)=>{const r=c.readConstantValue(t);if(r!==void 0)return c.isNumericDataValue(r)?{type:"decimal"}:c.isTemporalDataValue(r)?{type:"date"}:{type:"text"};const n=c.readVariableName(t);return n===null||!e.hasVariable(n)?{type:"text"}:e.getValueFormat(n)},pc={cartesian:["cartesian","flip"],polar:["polar"]},fc=null;function pa(e=[]){const t=vc(e),r=(n,a)=>{if(!t.has(n))return null;const i=t.get(n);return i.getDataLabelPlacements===void 0||!pc[a].some(o=>i.dataLabelCoordTypes.includes(o))?null:{place:i.getDataLabelPlacements.bind(i),getPercentageValueStrategy:o=>i.resolvePercentageValueStrategy?.(o,a)??"none"}};return{resolve:r,hasCapability:(n,a)=>r(n,a)!==null,hasPercentageFormat:(n,a)=>(r(n.geom,a)?.getPercentageValueStrategy(n)??"none")!=="none"}}function qt(){return fc??=pa()}function vc(e){const t=new c.GeomRegistry;for(const r of e){const n=c.resolveDefinition(r);n instanceof c.Geom&&t.register(n.type,n)}return t}function*gc({layers:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,locale:s,resolvePlacement:l=qt()}){if(!(t.type!=="cartesian"||a.width<=0||a.height<=0))for(const u of e){if(!u.dataLabels.showDataLabels&&!u.dataLabels.showStackTotals)continue;const m=l.resolve(u.geom,"cartesian");if(m===null)continue;const h=ma({layer:u,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:m.getPercentageValueStrategy(u)});for(const p of m.place(h).labels)yield{x:a.x+p.x-p.width/2,y:a.y+p.y-p.height/2,width:p.width,height:p.height}}}var st={abbreviation:"none",decimals:"auto"},fa=({locale:e,kind:t,startValue:r,endValue:n,valueFormat:a})=>{if(r===null||n===null)return"n/a";switch(t){case"absolute-difference":{const i=n-r,o=I({valueFormat:a,locale:e,numberFormat:st,intlOptions:{signDisplay:"always"}})(i);return Or(o)?"0":o}case"relative-difference":{const i=n-r;if(i===0)return"0%";const o=i/Math.abs(r);if(o===Number.POSITIVE_INFINITY)return"∞";if(o===Number.NEGATIVE_INFINITY)return"-∞";const s=I({valueFormat:{type:"percentage"},locale:e,numberFormat:st,intlOptions:{signDisplay:"always"}})(o);return Or(s)?"0%":s}case"proportion":{if(n-r===0)return"=";const i=n/r;return i===Number.POSITIVE_INFINITY?"∞":i===Number.NEGATIVE_INFINITY?"-∞":`${I({valueFormat:{type:"decimal"},locale:e,numberFormat:st,intlOptions:{maximumFractionDigits:1}})(i)}x`}}},Or=e=>{const t=e.replace(/[^\d.]/g,"");return t===""||t==="."?!1:Number(t)===0},yc=2,Sc=6,bc=6,xc=15,Ac=15,Ic=2.5,Tc=.5,Lc=.25,va=e=>{const t=e-yc,r=1+Tc*t,n=1+Lc*t;return{arrowStartGap:Sc*r,arrowEndGap:bc*r,offsetFromHigherObservation:xc*n,arrowheadSize:Ic*e,curveRadius:Ac*n,strokeWidth:e}},Ec=(e,t,r,n)=>{const a=n.offsetFromHigherObservation+n.arrowheadSize+n.arrowEndGap;return e?Math.max(t.x,r.x)+a:Math.min(t.y,r.y)-a},Rc=(e,t,r,{arrowStartGap:n,arrowEndGap:a,curveRadius:i})=>{const o={x:e.x,y:e.y-n},s={x:e.x,y:r},l={x:t.x,y:r},u={x:t.x,y:t.y-a},m=t.x>e.x?1:-1;return`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var vl=Object.create,jn=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,yl=Object.getOwnPropertyNames,Sl=Object.getPrototypeOf,bl=Object.prototype.hasOwnProperty,xl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=yl(t),i=0,o=a.length,s;i<o;i++)s=a[i],!bl.call(e,s)&&s!==r&&jn(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=gl(t,s))||n.enumerable});return e},Al=(e,t,r)=>(r=e!=null?vl(Sl(e)):{},xl(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e));const c=require("./annotations-BOULoRYs.cjs"),d=require("./compiler-BhasYsyH.cjs"),b=require("./spec-builder-MtPcdHuX.cjs");let T=require("lodash-es"),yt=require("humanize-duration");yt=Al(yt,1);let M=require("d3-shape"),Il=require("d3-delaunay");typeof window<"u"&&(window.__GRAPHY_SDK__??={},window.__GRAPHY_SDK__.vizEngine="1.9.0-beta.1792575115573");function W(e,t){return e.geom===t}var ot="…",Zn=(e,t,r)=>{if(t<=0||e.length===0)return"";if(r(e)<=t)return e;if(r(ot)>t)return"";let n=0,a=e.length-1,i=0;for(;n<=a;){const o=n+a>>>1;r(e.slice(0,o)+ot)<=t?(i=o,n=o+1):a=o-1}return e.slice(0,i)+ot};var E={timeZone:"UTC"},L=e=>t=>{if(!c.isStrictTemporalDataValue(t))return"–";try{return e(t)}catch{return"n/a"}},K=e=>t=>c.isStrictNumericDataValue(t)?e(t):"–",kt=e=>t=>c.isStrictCategoricalDataValue(t)?t:"–",be=new Map,xe=new Map,Jn=256,de=(e,t)=>{const r=Qn(e,t),n=be.get(r);if(n!==void 0)return n;be.size>=Jn&&be.clear();const a=new Intl.NumberFormat(e,t);return be.set(r,a),a},R=(e,t)=>{const r=Qn(e,t),n=xe.get(r);if(n!==void 0)return n;xe.size>=Jn&&xe.clear();const a=new Intl.DateTimeFormat(e,t);return xe.set(r,a),a},Qn=(e,t)=>`${e}\0${JSON.stringify(t)}`,Tl=yt.default.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),ze={signDisplay:"negative"},ea=({valueFormat:e,locale:t,numberFormat:r,intlOptions:n})=>K(a=>{const i=typeof r.decimals=="number"?r.decimals:2,o=Ft(a,i),{base:s,suffix:l}=Nt(a,r.abbreviation);return`${de(t,{...o,...ze,...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n}).format(s)}${l}`}),ta=({locale:e,numberFormat:t,intlOptions:r})=>K(n=>{const{base:a,suffix:i}=Nt(n,t.abbreviation);return`${de(e,{...Ft(a,t.decimals),...ze,...r}).format(a)}${i}`}),Vt=e=>K(t=>{const r=Tl(Math.abs(t));return t<0?`-${r}`:r}),ra=({locale:e,intlOptions:t})=>{const r=de(e,{maximumFractionDigits:0,...ze,...t});return K(n=>r.format(n))},na=({locale:e,numberFormat:t,intlOptions:r})=>K(n=>de(e,{...Ft(n,t.decimals),...ze,...r,style:"percent"}).format(n)),Nt=(e,t="none")=>{switch(t){case"none":return{base:e,suffix:""};case"auto":{const r=Ll(e);return Nt(e,r)}default:return{base:e/c.SUFFIX_MULTIPLIERS[t],suffix:t}}},Ft=(e,t)=>{if(typeof t=="number")return{minimumFractionDigits:t,maximumFractionDigits:t};const r=Math.ceil(Math.log10(Math.abs(e))),n=r>=3?0:r===2?1:2;return{minimumFractionDigits:t==="auto"?0:n,maximumFractionDigits:n}},Ll=e=>{const t=Math.abs(e);return t>=c.SUFFIX_MULTIPLIERS.b?"b":t>=c.SUFFIX_MULTIPLIERS.m?"m":t>=c.SUFFIX_MULTIPLIERS.k?"k":"none"},El=1440*60*1e3,Rl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return L(n=>r.format(n))},wl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",timeStyle:"medium",...E,...t});return L(n=>Cl(r.formatToParts(n)))},aa=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t});return L(n=>r.format(n))},ia=({locale:e,intlOptions:t})=>{const r=R(e,{month:"long",...E,...t});return L(n=>r.format(n))},Bt=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",year:"numeric",...E,...t});return L(n=>r.format(n))},Gt=e=>L(t=>`Q${Math.floor(t.getUTCMonth()/3)+1} ${t.getUTCFullYear()}`),oa=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t,year:void 0});return L(n=>r.formatRange(n,ca(n,6)))},sa=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return L(n=>r.formatRange(n,ca(n,6)))},Ht=({locale:e,intlOptions:t})=>{const r=R(e,{year:"numeric",...E,...t});return L(n=>r.format(n))},la=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return L(n=>r.format(n))},ca=(e,t)=>new Date(e.getTime()+t*El),Cl=e=>{const t=e.findIndex(n=>n.type==="hour")-1,r=e[t];return e.map((n,a)=>a===t&&r?.type==="literal"&&r.value===", "?" • ":n.value).join("")},Dr=1e3,Ml=({valueFormat:e,locale:t,tickValues:r,intlOptions:n})=>K(a=>{const i={...$t(a,r),notation:"compact",...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n};return zt(a,t,i)}),Pl=({locale:e,tickValues:t,intlOptions:r})=>K(n=>{const a={...$t(n,t),notation:"compact",...r};return zt(n,e,a)}),Dl=({locale:e,tickValues:t,intlOptions:r})=>K(n=>{const a={...$t(n,t),notation:"compact",...r,style:"percent"};return zt(n,e,a)}),zt=(e,t,r)=>de(t,r).formatToParts(e).map(n=>n.type==="compact"?n.value.toLowerCase():n.value).join(""),ua=e=>Math.abs(e)>Dr?ua(e/Dr):Number.isInteger(e),Ol=e=>{if(e.length<2)return!1;const[t,r]=e;return typeof t!="number"||typeof r!="number"?!1:Math.abs(r-t)<1},$t=(e,t)=>ua(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:Ol(t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:Math.max(1,_l(t))},_l=e=>{const t=e.filter(u=>typeof u=="number"&&Number.isFinite(u)),r=t[0],n=t[1];if(r===void 0||n===void 0)return 0;const a=Math.abs(n-r);if(a===0)return 0;let i=0;for(const u of t)i=Math.max(i,Math.abs(u));if(i===0)return 0;const o=Math.floor(Math.log10(i)/3),s=a/10**(Math.max(0,o)*3);if(s>=1)return 0;const l=Math.ceil(-Math.log10(s)-1e-9);return Math.min(4,Math.max(0,l))},kl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return L(n=>r.format(n))},Vl=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",...E,...t});return L(n=>r.format(n))},Nl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return L(n=>r.format(n))},Fl=({locale:e,intlOptions:t,tickValues:r})=>{const n=R(e,{...Gl(r),...E,...t});return L(a=>n.format(a))},Bl=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return L(n=>r.format(n))},Gl=e=>{const t=e.filter(r=>r instanceof Date&&!Number.isNaN(r.getTime()));return t.length===0?{day:"numeric",month:"short"}:Hl(t).size>1?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{timeStyle:"short"}},Hl=e=>{const t=new Set;for(const r of e)t.add(`${r.getUTCFullYear()}-${r.getUTCMonth()}-${r.getUTCDate()}`);return t},Kt=e=>{const{valueFormat:t}=e;switch(t.type){case"currency":return Ml(e);case"date":return kl(e);case"datetime":return Fl(e);case"day_month":case"weekly_date_range":case"weekly_date_range_with_year":return Nl(e);case"decimal":case"integer":return Pl(e);case"duration":return Vt(e);case"month":return Vl(e);case"month_year":return Bt(e);case"percentage":return Dl(e);case"quarter":return Gt(e);case"text":return kt(e);case"time":return Bl(e);case"year":return Ht(e);case"lookup":return Kt({...e,valueFormat:t.fallback});default:throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}},zl=.9,$l=1/3,Kl=1/4,Yl=e=>e.formattedAxis.position==="top"||e.formattedAxis.position==="bottom"?Ul(e):Wl(e),Ul=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=da(e.ticks,n),s=ql(e.ticks,r.width),l=s*zl;if(i<=l)return{...e,labelRotation:0,labelMaxWidthPx:null};if(s>=50){const m=bt(l);return{...e,ticks:St(e.ticks,a,m,n),labelRotation:0,labelMaxWidthPx:m}}if(o+8>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const u=bt(r.height*$l);return{...e,ticks:St(e.ticks,a,u,n),labelRotation:-90,labelMaxWidthPx:u}},Wl=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=da(e.ticks,n);if(o>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const s=bt(r.width*Kl);return i<=s?{...e,labelRotation:0,labelMaxWidthPx:null}:{...e,ticks:St(e.ticks,a,s,n),labelRotation:0,labelMaxWidthPx:s}},ql=(e,t)=>{const r=e[0],n=e[1];return r===void 0||n===void 0?t:Math.abs(n.position-r.position)*t},da=(e,t)=>{const r=[];let n=0,a=0;for(const i of e){const{width:o,height:s}=t(i.formattedLabel);r.push(o),o>n&&(n=o),s>a&&(a=s)}return{widths:r,maxWidth:n,maxHeight:a}},St=(e,t,r,n)=>{const a=i=>n(i).width;return e.map((i,o)=>(t[o]??0)<=r?i:{...i,formattedLabel:Zn(i.formattedLabel,r,a)})},bt=e=>Math.max(0,Math.floor(e)),Xl=(e,t,r,n,a)=>{if(e===0)return!0;const i=r==="top"||r==="bottom",o=i?60:40;let s=n-(e-1)*o;for(let l=0;l<e;l+=1){const{width:u,height:m}=a(t(l));if(s-=i?u:m,s<0)return!1}return!0},jl=(e,t,r,n,a)=>{if(e.length<2)return!0;const i=r==="top"||r==="bottom",o=l=>{const{width:u,height:m}=a(t(l));return(i?u:m)/2};let s=o(0);for(let l=1;l<e.length;l+=1){const u=e[l-1],m=e[l];if(u===void 0||m===void 0)continue;const h=o(l);if((m.position-u.position)*n<s+h+8)return!1;s=h}return!0},Zl={ticks:[],labelAt:()=>""},Jl=({axis:e,availableSpacePx:t,measureLabel:r,resolveFormatter:n})=>{const{tickCandidates:a,position:i}=e;if(a.length===0)return[];const o=new Map,s=f=>{const v=o.get(f);if(v)return v;const g=a[f],x=g?ec(g.ticks,n(g)):Zl;return o.set(f,x),x},l=f=>{const{ticks:v,labelAt:g}=s(f);return a[f]?.source==="generated"?Xl(v.length,g,i,t,r):jl(v,g,i,t,r)};let u=0,m=a.length-1,h=-1;for(;u<=m;){const f=u+m>>>1;l(f)?(h=f,u=f+1):m=f-1}const p=Ql(h,s);return tc(s(p))},Ql=(e,t)=>{const r=e>=0?e:0;for(let n=r;n>=0;n-=1){const{ticks:a,labelAt:i}=t(n);if(rc(a,i))return n}return 0},ec=(e,t)=>{const r=new Array(e.length);return{ticks:e,labelAt:n=>{const a=r[n];if(a!==void 0)return a;const i=t(e[n]?.value??null);return r[n]=i,i}}},tc=({ticks:e,labelAt:t})=>e.map((r,n)=>({...r,formattedLabel:t(n)})),rc=(e,t)=>{const r=new Set;for(let n=0;n<e.length;n+=1){const a=t(n);if(r.has(a))return!1;r.add(a)}return!0};function Yt(e,t){return e.axes.find(r=>r.scaleAestheticKey===t)??null}function Ut(e,t){return e.categorySpan?.layerIds.includes(t)?e.categorySpan.valueFormat:e.valueFormat}function nc(e,t){return e.legends.drawn.find(r=>r.aesthetics.includes(t))??null}var ac=e=>{const t=I({...e,valueFormat:e.valueFormat.fallback}),r={};for(const[a,i]of Object.entries(e.valueFormat.cases))r[a]=I({...e,valueFormat:i});const n=e.valueFormat.byVariable;return(a,i)=>{if(i===void 0||i[n]===void 0)return t(a);const o=c.getStableKey(i[n]),s=r[o];return s!==void 0?s(a,i):t(a)}},I=e=>{switch(e.valueFormat.type){case"currency":return ea(e);case"date":return Rl(e);case"datetime":return wl(e);case"day_month":return aa(e);case"decimal":return ta(e);case"duration":return Vt(e);case"integer":return ra(e);case"month":return ia(e);case"month_year":return Bt(e);case"percentage":return na(e);case"quarter":return Gt(e);case"text":return kt(e);case"weekly_date_range":return oa(e);case"weekly_date_range_with_year":return sa(e);case"year":return Ht(e);case"time":return la(e);case"lookup":return ac({...e,valueFormat:e.valueFormat});default:{const t=e.valueFormat;throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}}};function Wt({layer:e,numberFormat:t,locale:r}){return I({valueFormat:d.getLayerYValueFormat(e),locale:r,numberFormat:t})}var ic=(e,t)=>{const r=c.readVariableName(t.x);return r!==null&&r!==c.CONSTANT_VARIABLES.x?{read:d.createXValueReader(e,t),variable:r}:{read:d.getGroup,variable:c.GROUP_VARIABLES.group}},ma=({layer:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:l})=>{const u=Wt({layer:e,numberFormat:n,locale:s}),m=t.type==="cartesian"&&t.mainAxis==="y";return{layer:e,coordSystem:t,panelRect:a,measureDataLabel:i,styleReaders:o.geom(e),formatLabel:uc({layer:e,numberFormat:n,axes:r,locale:s,absoluteFormatter:u,percentageValueStrategy:l,flipped:m}),formatAbsolute:u,formatCategory:oc({layer:e,numberFormat:n,locale:s})}},oc=({layer:e,numberFormat:t,locale:r})=>{const{read:n,variable:a}=ic(e.data,e.mapping),i=I({valueFormat:e.data.hasVariable(a)?e.data.getValueFormat(a):{type:"text"},locale:r,numberFormat:t});return o=>{const s=n(o);return s===null?null:i(s,o)}},sc=(e,t,r)=>{switch(t){case"stack":return lc(e);case"fill":return cc(e,r);case"absoluteGrandTotal":return()=>e.summary.absoluteGrandTotal??null;case"none":return()=>null}},lc=e=>{const t=c.readVariableName(e.mapping.x);let r=null,n=!1;return a=>{const i=e.summary.stackTotals;if(i===void 0||i.length===0||t===null)return null;if(!n){r=new Map;for(const l of i)r.set(l.xKey,l);n=!0}const o=a[t];if(o==null)return null;const s=r?.get(d.getObservationXKey(a,t));return s===void 0?null:s.total}},cc=(e,t)=>{const r=t?c.getXMin:c.getYMin,n=t?c.getXMax:c.getYMax,a=d.createSegmentYReader(e);return i=>{const o=r(i),s=n(i);if(!c.isStrictNumericDataValue(o)||!c.isStrictNumericDataValue(s))return null;const l=Math.abs(s-o);if(l===0)return null;const u=a(i);return c.isStrictNumericDataValue(u)?u/l:null}},uc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a,percentageValueStrategy:i,flipped:o})=>{const s=d.createRawValueReader(e.data,e.dataLabels.labelSource),l=sc(e,i,o),u=dc({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a}),m=I({valueFormat:{type:"percentage"},locale:n,numberFormat:t}),h=e.dataLabels.format==="percentage"&&ha(e);return p=>{const f=s(p);if(f===null)return"";if(!h||!c.isStrictNumericDataValue(f))return u(f,p);const v=l(p);return v===null||v===0?u(f,p):m(f/v)}},dc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a})=>{const i=e.dataLabels.labelSource,o=c.readVariableName(i);if(o!==null){if(ha(e))return a;const s=mc(e,r,t,n,o);if(s!==null)return s}return I({valueFormat:hc(e.data,i),locale:n,numberFormat:t})},ha=e=>{const t=c.readVariableName(e.dataLabels.labelSource);return t===null?!1:t===c.readVariableName(d.resolveSegmentYSource(e.position,e.mapping))},mc=(e,t,r,n,a)=>{const i=c.readVariableName(e.mapping.x);if(i===null||i!==a)return null;const o=t.find(s=>s.scaleAestheticKey==="x");return o===void 0?null:I({valueFormat:Ut(o,e.id),locale:n,numberFormat:r})},hc=(e,t)=>{const r=c.readConstantValue(t);if(r!==void 0)return c.isNumericDataValue(r)?{type:"decimal"}:c.isTemporalDataValue(r)?{type:"date"}:{type:"text"};const n=c.readVariableName(t);return n===null||!e.hasVariable(n)?{type:"text"}:e.getValueFormat(n)},pc={cartesian:["cartesian","flip"],polar:["polar"]},fc=null;function pa(e=[]){const t=vc(e),r=(n,a)=>{if(!t.has(n))return null;const i=t.get(n);return i.getDataLabelPlacements===void 0||!pc[a].some(o=>i.dataLabelCoordTypes.includes(o))?null:{place:i.getDataLabelPlacements.bind(i),getPercentageValueStrategy:o=>i.resolvePercentageValueStrategy?.(o,a)??"none"}};return{resolve:r,hasCapability:(n,a)=>r(n,a)!==null,hasPercentageFormat:(n,a)=>(r(n.geom,a)?.getPercentageValueStrategy(n)??"none")!=="none"}}function qt(){return fc??=pa()}function vc(e){const t=new c.GeomRegistry;for(const r of e){const n=c.resolveDefinition(r);n instanceof c.Geom&&t.register(n.type,n)}return t}function*gc({layers:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,locale:s,resolvePlacement:l=qt()}){if(!(t.type!=="cartesian"||a.width<=0||a.height<=0))for(const u of e){if(!u.dataLabels.showDataLabels&&!u.dataLabels.showStackTotals)continue;const m=l.resolve(u.geom,"cartesian");if(m===null)continue;const h=ma({layer:u,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:m.getPercentageValueStrategy(u)});for(const p of m.place(h).labels)yield{x:a.x+p.x-p.width/2,y:a.y+p.y-p.height/2,width:p.width,height:p.height}}}var st={abbreviation:"none",decimals:"auto"},fa=({locale:e,kind:t,startValue:r,endValue:n,valueFormat:a})=>{if(r===null||n===null)return"n/a";switch(t){case"absolute-difference":{const i=n-r,o=I({valueFormat:a,locale:e,numberFormat:st,intlOptions:{signDisplay:"always"}})(i);return Or(o)?"0":o}case"relative-difference":{const i=n-r;if(i===0)return"0%";const o=i/Math.abs(r);if(o===Number.POSITIVE_INFINITY)return"∞";if(o===Number.NEGATIVE_INFINITY)return"-∞";const s=I({valueFormat:{type:"percentage"},locale:e,numberFormat:st,intlOptions:{signDisplay:"always"}})(o);return Or(s)?"0%":s}case"proportion":{if(n-r===0)return"=";const i=n/r;return i===Number.POSITIVE_INFINITY?"∞":i===Number.NEGATIVE_INFINITY?"-∞":`${I({valueFormat:{type:"decimal"},locale:e,numberFormat:st,intlOptions:{maximumFractionDigits:1}})(i)}x`}}},Or=e=>{const t=e.replace(/[^\d.]/g,"");return t===""||t==="."?!1:Number(t)===0},yc=2,Sc=6,bc=6,xc=15,Ac=15,Ic=2.5,Tc=.5,Lc=.25,va=e=>{const t=e-yc,r=1+Tc*t,n=1+Lc*t;return{arrowStartGap:Sc*r,arrowEndGap:bc*r,offsetFromHigherObservation:xc*n,arrowheadSize:Ic*e,curveRadius:Ac*n,strokeWidth:e}},Ec=(e,t,r,n)=>{const a=n.offsetFromHigherObservation+n.arrowheadSize+n.arrowEndGap;return e?Math.max(t.x,r.x)+a:Math.min(t.y,r.y)-a},Rc=(e,t,r,{arrowStartGap:n,arrowEndGap:a,curveRadius:i})=>{const o={x:e.x,y:e.y-n},s={x:e.x,y:r},l={x:t.x,y:r},u={x:t.x,y:t.y-a},m=t.x>e.x?1:-1;return`
|
|
2
2
|
M ${o.x} ${o.y}
|
|
3
3
|
L ${s.x} ${s.y+i}
|
|
4
4
|
Q ${s.x} ${s.y} ${s.x+m*i} ${s.y}
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { clamp as Hr, findLast as nu, isEqual as Q, isPlainObject as au, omit as
|
|
|
5
5
|
import ou from "humanize-duration";
|
|
6
6
|
import { area as $i, curveCatmullRom as lu, curveLinear as cu, line as Gi, symbol as zi, symbolCircle as uu, symbolCross as du, symbolDiamond as hu, symbolSquare as mu, symbolStar as pu, symbolTriangle as fu, symbolWye as vu } from "d3-shape";
|
|
7
7
|
import { Delaunay as gu } from "d3-delaunay";
|
|
8
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.vizEngine = "1.9.0-beta.
|
|
8
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.vizEngine = "1.9.0-beta.1792575115573");
|
|
9
9
|
function ve(e, t) {
|
|
10
10
|
return e.geom === t;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"grammar-of-graphics",
|
|
12
12
|
"compiler"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.9.0-beta.
|
|
14
|
+
"version": "1.9.0-beta.1792575115573",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"sideEffects": [
|
|
17
17
|
"**/version.ts"
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"vite": "^8.1.5",
|
|
65
65
|
"vite-plugin-dts": "^4.5.4",
|
|
66
66
|
"vitest": "^4.1.11",
|
|
67
|
-
"@graphytools/
|
|
67
|
+
"@graphytools/eslint-config": "0.0.1",
|
|
68
68
|
"@graphytools/eslint-plugin-graphy": "1.0.0",
|
|
69
|
-
"@graphytools/
|
|
70
|
-
"@graphytools/
|
|
69
|
+
"@graphytools/typescript-config": "0.0.1",
|
|
70
|
+
"@graphytools/vitest-config": "1.0.0"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|