@graphysdk/theme-comic 0.1.1-beta.1792404455940 → 0.1.1-beta.1792409717036
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 +67 -63
- package/dist/styles.d.ts +1 -0
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let H=require("react"),e=require("@graphysdk/react"),g=require("react/jsx-runtime");var B=(t,r)=>{const o=(0,e.getX)(t),l=(0,e.getY)(t)??(0,e.getYMax)(t);return o===null||l===null?null:{x:(0,e.toViewBoxX)(o)*r.width,y:(0,e.toViewBoxY)(l)*r.height}},Y=(t,r)=>{const o=(0,e.getX)(t),l=(0,e.getY)(t)??(0,e.getRadiusExtent)(t).outerRadius;if(o===null||l===null)return null;const i=(0,e.polarToUnit)(o,l),n=Math.min(r.width,r.height)/2;return{x:r.width/2+i.x*n,y:r.height/2-i.y*n}},z=22,F=Math.PI*2,Se=F/(z*2),$=(t,r,o)=>({x:t.x+Math.sin(o.angle)*o.radius*r,y:t.y-Math.cos(o.angle)*o.radius*r}),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let H=require("react"),e=require("@graphysdk/react"),g=require("react/jsx-runtime");var B=(t,r)=>{const o=(0,e.getX)(t),l=(0,e.getY)(t)??(0,e.getYMax)(t);return o===null||l===null?null:{x:(0,e.toViewBoxX)(o)*r.width,y:(0,e.toViewBoxY)(l)*r.height}},Y=(t,r)=>{const o=(0,e.getX)(t),l=(0,e.getY)(t)??(0,e.getRadiusExtent)(t).outerRadius;if(o===null||l===null)return null;const i=(0,e.polarToUnit)(o,l),n=Math.min(r.width,r.height)/2;return{x:r.width/2+i.x*n,y:r.height/2-i.y*n}},z=22,F=Math.PI*2,Se=F/(z*2),$=(t,r,o)=>({x:t.x+Math.sin(o.angle)*o.radius*r,y:t.y-Math.cos(o.angle)*o.radius*r}),R=2,G=({x:t,y:r})=>`${t.toFixed(R)},${r.toFixed(R)}`,W=8,X=.6,j=(t,r)=>{const o=r/2,l=F/(W*2);return`M${Array.from({length:W*2},(i,n)=>$(t,o,{angle:n*l,radius:n%2===0?1:X})).map(G).join(" L")} Z`},D=t=>{const r=(0,e.useGeomStyleReader)(t);return(o,l)=>{const i=r.get("shadow",o,l);return{color:(0,e.toPaintColor)(r.get("fill",o,l)),opacity:r.get("alpha",o,l),fillOpacity:r.get("fillAlpha",o,l),outline:r.get("stroke",o,l),outlineWidth:r.get("strokeWidth",o,l),shadow:i==="none"?null:{offsetX:i.offsetX,offsetY:i.offsetY,color:i.color}}}},U=1.35,K=4,V=1,_=({layer:t,observations:r,panel:o,project:l,state:i})=>{const n=(0,e.useGeomStyleReader)(t),f=D(t),u=(0,H.useMemo)(()=>(0,e.createStableKeyGenerator)(t.data,t.mapping,t.id),[t.data,t.mapping,t.id]),m=i==="hovered";return(0,g.jsx)("g",{"data-geom":"point",children:Array.from(r,p=>{const h=l(p,o);if(h===null)return null;const s=f(p,i),c=j(h,n.get("size",p,i)*U+(m?K:0));return(0,g.jsxs)("g",{opacity:s.opacity,children:[s.shadow!==null&&(0,g.jsx)("path",{d:c,transform:`translate(${s.shadow.offsetX} ${s.shadow.offsetY})`,fill:s.shadow.color}),(0,g.jsx)("path",{d:c,fill:s.color,fillOpacity:s.fillOpacity,stroke:s.outline,strokeWidth:s.outlineWidth+(m?V:0),strokeLinejoin:"round"})]},u(p))})})},N=(t,r)=>(0,e.defineGeomRenderer)("point",{coord:t,swatchShape:"circle",render:({layer:o,panelRect:l})=>(0,g.jsx)(_,{layer:o,observations:o.data,panel:l,project:r}),renderHover:({layer:o,primary:l,panelRect:i})=>(0,g.jsx)(_,{layer:o,observations:[l.observation],panel:i,project:r,state:"hovered"}),renderHoverCompanions:()=>null}),q=N("cartesian",B),J=N("polar",Y),Z=2,Q=2,ee=(t,r,o)=>[...t].flatMap(l=>{const{startAngle:i,endAngle:n}=(0,e.getAngleExtent)(l),{innerRadius:f,outerRadius:u}=(0,e.getRadiusExtent)(l);return i===null||n===null||f===null||u===null?[]:n<=i||u<=0?[]:[{key:`${o(l)}-${i}`,paint:r(l),startAngle:i,endAngle:n,innerRadius:f,outerRadius:u}]}),te=(t,r,o)=>(0,e.buildPolarBarArcPath)(t,{centerX:r.x,centerY:r.y,radius:o,digits:Q}),C=({layer:t,observations:r,panel:o,state:l})=>{const i=D(t),n=(0,H.useMemo)(()=>(0,e.createStableKeyGenerator)(t.data,t.mapping,t.id),[t.data,t.mapping,t.id]),f=Math.min(o.width,o.height)/2;if(f<=0)return null;const u={x:o.width/2,y:o.height/2},m=ee(r,h=>i(h,l),n).flatMap(h=>{const s=te(h,u,f);return s===void 0?[]:[{key:h.key,path:s,paint:h.paint}]}),p=l==="hovered";return(0,g.jsxs)("g",{"data-geom":"bar",children:[!p&&m.map(({key:h,path:s,paint:c})=>c.shadow===null?null:(0,g.jsx)("path",{d:s,transform:`translate(${c.shadow.offsetX} ${c.shadow.offsetY})`,fill:c.shadow.color,opacity:c.opacity},`${h}-shadow`)),m.map(({key:h,path:s,paint:c})=>(0,g.jsx)("path",{"data-comic-slice":"sector",d:s,fill:c.color,fillOpacity:c.fillOpacity,fillRule:"evenodd",stroke:c.outline,strokeWidth:c.outlineWidth+(p?Z:0),strokeLinejoin:"round",opacity:c.opacity},h))]})},oe=(0,e.defineGeomRenderer)("bar",{coord:"polar",guideMode:"band",swatchShape:"slice",render:({layer:t,panelRect:r})=>(0,g.jsx)(C,{layer:t,observations:t.data,panel:r}),renderHover:({layer:t,primary:r,panelRect:o})=>(0,g.jsx)(C,{layer:t,observations:[r.observation],panel:o,state:"hovered"}),renderHoverCompanions:()=>null}),re=[oe,q,J],k=10,ae=.42,P=220,le=.6,T=1,ie=()=>{const t=Math.ceil(P/k),r=[];for(let o=0;o<=t;o+=1){const l=o%2===0?0:k/2;for(let i=0;i<=23;i+=1){const n=-(i*k+l),f=o*k,u=k*ae*(1-Math.hypot(n,f)/P);u>=le&&r.push(`<circle cx="${n.toFixed(T)}" cy="${f.toFixed(T)}" r="${u.toFixed(T)}"/>`)}}return r.join("")},ne=(t,r,o)=>{const l=`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="${t}"/><svg x="100%" y="0" width="1" height="1" overflow="visible"><g fill="${r}" fill-opacity="${o}">${ie()}</g></svg></svg>`;return`data:image/svg+xml,${encodeURIComponent(l)}`},a={paper:"#FBF3DF",bubble:"#FFFDF6",black:"#141414",secondary:"#4A4338",grid:"rgba(20, 20, 20, 0.2)",deepRed:"#C4161C"},w="'Bangers', 'Comic Neue', 'Comic Sans MS', cursive",se="'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive",d={vermillion:"#D9401F",cyan:"#0B85C8",yellow:"#FFD60A",magenta:"#D6247A",green:"#15964B",purple:"#7A3DC8"},de=[d.vermillion,d.cyan,d.yellow,d.magenta,d.green,d.purple],ce=["#FFE45C","#F58A1F","#C4161C"],he=[d.cyan,"#ECE5D4",d.vermillion],A={offsetX:4,offsetY:4,blur:0,color:a.black},ge={offsetX:6,offsetY:6,blur:0,color:a.black},S={offsetX:2,offsetY:2,blur:0,color:a.black},I={offsetX:4,offsetY:4,blur:0,color:a.black},fe={offsetX:6,offsetY:6,blur:0,color:a.black},ue={offsetX:2,offsetY:2,blur:0,color:d.yellow},pe={pattern:"dots",color:"rgba(20, 20, 20, 0.24)",size:7},ye={image:ne(a.paper,d.vermillion,.18),fit:"stretch",fallback:a.paper},ve={fontFamily:w,fontWeight:400,fontSize:22,lineHeight:1.05,letterSpacing:1.5,textTransform:"uppercase",textColor:a.black},M={fill:d.yellow,stroke:a.black,strokeWidth:3,cornerRadius:0,paddingInline:10,paddingBlock:5,shadow:{offsetX:5,offsetY:5,blur:0,color:d.vermillion}},x={fontFamily:w,fontWeight:400,fontSize:16,lineHeight:1.05,letterSpacing:1,textTransform:"uppercase",textColor:a.black},O={...M,strokeWidth:2.5,paddingInline:7,paddingBlock:3,shadow:{offsetX:3,offsetY:3,blur:0,color:d.vermillion}},E={fontFamily:w,fontWeight:400,letterSpacing:1,textTransform:"uppercase"},y={stroke:a.black,strokeAlpha:1},L={dashArray:[],lineCap:"round",lineJoin:"round"},v={textColor:a.black,fontWeight:700},b={textColor:a.secondary,fontWeight:700},me={tokens:{graphBackground:a.paper,graphBorder:a.black,geomBorder:a.black,textPrimary:a.black,textSecondary:a.secondary,ruleLine:a.black,gridLine:a.grid,hoverAffordance:a.black,hoverGuideFill:"rgba(20, 20, 20, 0.07)",hoverGuideLine:a.black,tooltipBackground:a.bubble,tooltipBorder:a.black,tooltipPrimaryRow:"rgba(255, 214, 10, 0.35)",annotationShape:d.yellow,annotationArrow:a.black,differenceLabelBackground:a.bubble,trendPositive:d.green,trendNegative:a.deepRed,trendNeutral:a.secondary},defaults:[e.style.graph({fill:ye,strokeWidth:4,cornerRadius:0,fontFamily:se,padding:22,shadow:fe}),e.style.geom({shadow:A,overpaint:pe}),e.style.geom({shadow:A},{state:"hovered"}),e.style.geom.bar({...y,strokeWidth:2.5,cornerRadius:0}),e.style.geom.bar({...y,strokeWidth:2.5,shadow:ge},{state:"hovered"}),e.style.geom.line({strokeWidth:3.5,...L,shadow:S,overpaint:"none"}),e.style.geom.line({shadow:S},{state:"hovered"}),e.style.geom.area({...y,fillAlpha:1,strokeWidth:2.5,...L}),e.style.geom.point({...y,size:13,strokeWidth:2,shadow:S}),e.style.geom.point({...y,strokeWidth:2,shadow:"none"},{state:"hovered"}),e.style.geom.tile({...y,cornerRadius:2,strokeWidth:1.5,shadow:"none"}),e.style.geom.tile({...y,strokeWidth:3,shadow:"none"},{state:"hovered"}),e.style.geom.rule({strokeWidth:2.5,dashArray:[3,3],lineCap:"round",shadow:"none"}),e.style.geom.rule.label({...E,textColor:d.yellow,fontSize:15}),e.style.gridLine({dashArray:[1,5]}),e.style.gridLine.x({strokeWidth:0}),e.style.gridLine.y({strokeWidth:1.5}),e.style.panelBorder({strokeWidth:0}),e.style.panelBorder.bottom({stroke:a.black,strokeWidth:3,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLabel({...b,fontSize:14,lineHeight:1}),e.style.axisLabel({...v,...E,fontSize:18,lineHeight:1}),e.style.heading({...v}),e.style.heading.h1({fontFamily:w,fontWeight:400,fontSize:36,lineHeight:1,letterSpacing:1,textTransform:"uppercase",textShadow:ue}),e.style.heading.h2({...b,fontSize:16,lineHeight:1.2}),e.style.header({margin:{bottom:18}}),e.style.caption({...b,fontWeight:400,fontSize:13}),e.style.source({...b,fontWeight:400,fontSize:13}),e.style.dataLabel({...v,fontSize:14,fill:"transparent"}),e.style.legendItem({...v,...E,fontSize:18,fill:"transparent",stroke:"transparent"}),e.style.legendItem.swatch({size:16}),e.style.directLabel({fontWeight:700,fontSize:14}),e.style.tooltip({strokeWidth:2.5,cornerRadius:10,paddingInline:12,paddingBlock:9,shadow:I}),e.style.tooltip.heading({...v,fontSize:15,lineHeight:1.3}),e.style.tooltip.label({...b,fontSize:14,lineHeight:1.3}),e.style.tooltip.value({...v,fontSize:14,lineHeight:1.3}),e.style.legend.popover({strokeWidth:2.5,cornerRadius:10,shadow:I}),e.style.annotation.text({...ve,...M}),e.style.annotation.shape({fillAlpha:.35,stroke:a.black,strokeWidth:2}),e.style.annotation.arrow({strokeWidth:3.5,dashArray:[]}),e.style.annotation.arrow.outline({stroke:a.paper,strokeWidth:2}),e.style.annotation.pinnedNumber({stroke:a.black,shadow:S}),e.style.annotation.pinnedNumber.label({...x,...O}),e.style.annotation.comment({stroke:a.black,shadow:S}),e.style.annotation.comment.label({...x,...O}),e.style.annotation.differenceArrow({stroke:a.black,strokeWidth:2.5}),e.style.annotation.differenceArrow.label({...x,...O,fontSize:18}),e.style.panelBorder.bottom({strokeWidth:0},{coord:"polar"}),e.style.tickLabel({...v,textOutlineColor:a.paper,textOutlineWidth:3.5},{coord:"polar"}),e.style.geom.area({fillAlpha:.5,shadow:"none"},{coord:"polar"}),e.style.geom.area({shadow:"none"},{coord:"polar",state:"hovered"}),e.style.geom.bar({strokeWidth:2.5,shadow:A},{coord:"polar"}),e.style.geom.bar({strokeWidth:2.5},{coord:"polar",state:"hovered"})]},ke={name:"comic",styles:me,palettes:{categorical:de,sequential:ce,diverging:he},colorScheme:"light",plugins:re};exports.comic=ke;
|
package/dist/index.mjs
CHANGED
|
@@ -41,7 +41,7 @@ var ee = (o, r) => {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
}, le = 1.35,
|
|
44
|
+
}, le = 1.35, de = 4, se = 1, _ = ({ layer: o, observations: r, panel: t, project: i, state: n }) => {
|
|
45
45
|
const l = z(o), f = X(o), g = H(() => F(o.data, o.mapping, o.id), [
|
|
46
46
|
o.data,
|
|
47
47
|
o.mapping,
|
|
@@ -52,19 +52,19 @@ var ee = (o, r) => {
|
|
|
52
52
|
children: Array.from(r, (u) => {
|
|
53
53
|
const h = i(u, t);
|
|
54
54
|
if (h === null) return null;
|
|
55
|
-
const
|
|
55
|
+
const d = f(u, n), c = ne(h, l.get("size", u, n) * le + (k ? de : 0));
|
|
56
56
|
return /* @__PURE__ */ Y("g", {
|
|
57
|
-
opacity:
|
|
58
|
-
children: [
|
|
57
|
+
opacity: d.opacity,
|
|
58
|
+
children: [d.shadow !== null && /* @__PURE__ */ p("path", {
|
|
59
59
|
d: c,
|
|
60
|
-
transform: `translate(${
|
|
61
|
-
fill:
|
|
60
|
+
transform: `translate(${d.shadow.offsetX} ${d.shadow.offsetY})`,
|
|
61
|
+
fill: d.shadow.color
|
|
62
62
|
}), /* @__PURE__ */ p("path", {
|
|
63
63
|
d: c,
|
|
64
|
-
fill:
|
|
65
|
-
fillOpacity:
|
|
66
|
-
stroke:
|
|
67
|
-
strokeWidth:
|
|
64
|
+
fill: d.color,
|
|
65
|
+
fillOpacity: d.fillOpacity,
|
|
66
|
+
stroke: d.outline,
|
|
67
|
+
strokeWidth: d.outlineWidth + (k ? se : 0),
|
|
68
68
|
strokeLinejoin: "round"
|
|
69
69
|
})]
|
|
70
70
|
}, g(u));
|
|
@@ -113,23 +113,23 @@ var ee = (o, r) => {
|
|
|
113
113
|
x: t.width / 2,
|
|
114
114
|
y: t.height / 2
|
|
115
115
|
}, k = pe(r, (h) => n(h, i), l).flatMap((h) => {
|
|
116
|
-
const
|
|
117
|
-
return
|
|
116
|
+
const d = ue(h, g, f);
|
|
117
|
+
return d === void 0 ? [] : [{
|
|
118
118
|
key: h.key,
|
|
119
|
-
path:
|
|
119
|
+
path: d,
|
|
120
120
|
paint: h.paint
|
|
121
121
|
}];
|
|
122
122
|
}), u = i === "hovered";
|
|
123
123
|
return /* @__PURE__ */ Y("g", {
|
|
124
124
|
"data-geom": "bar",
|
|
125
|
-
children: [!u && k.map(({ key: h, path:
|
|
126
|
-
d
|
|
125
|
+
children: [!u && k.map(({ key: h, path: d, paint: c }) => c.shadow === null ? null : /* @__PURE__ */ p("path", {
|
|
126
|
+
d,
|
|
127
127
|
transform: `translate(${c.shadow.offsetX} ${c.shadow.offsetY})`,
|
|
128
128
|
fill: c.shadow.color,
|
|
129
129
|
opacity: c.opacity
|
|
130
|
-
}, `${h}-shadow`)), k.map(({ key: h, path:
|
|
130
|
+
}, `${h}-shadow`)), k.map(({ key: h, path: d, paint: c }) => /* @__PURE__ */ p("path", {
|
|
131
131
|
"data-comic-slice": "sector",
|
|
132
|
-
d
|
|
132
|
+
d,
|
|
133
133
|
fill: c.color,
|
|
134
134
|
fillOpacity: c.fillOpacity,
|
|
135
135
|
fillRule: "evenodd",
|
|
@@ -159,12 +159,12 @@ var ee = (o, r) => {
|
|
|
159
159
|
me,
|
|
160
160
|
ce,
|
|
161
161
|
he
|
|
162
|
-
], b = 10, ke = 0.42,
|
|
163
|
-
const o = Math.ceil(
|
|
162
|
+
], b = 10, ke = 0.42, P = 220, be = 0.6, A = 1, Se = () => {
|
|
163
|
+
const o = Math.ceil(P / b), r = [];
|
|
164
164
|
for (let t = 0; t <= o; t += 1) {
|
|
165
165
|
const i = t % 2 === 0 ? 0 : b / 2;
|
|
166
166
|
for (let n = 0; n <= 23; n += 1) {
|
|
167
|
-
const l = -(n * b + i), f = t * b, g = b * ke * (1 - Math.hypot(l, f) /
|
|
167
|
+
const l = -(n * b + i), f = t * b, g = b * ke * (1 - Math.hypot(l, f) / P);
|
|
168
168
|
g >= be && r.push(`<circle cx="${l.toFixed(A)}" cy="${f.toFixed(A)}" r="${g.toFixed(A)}"/>`);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -177,8 +177,9 @@ var ee = (o, r) => {
|
|
|
177
177
|
bubble: "#FFFDF6",
|
|
178
178
|
black: "#141414",
|
|
179
179
|
secondary: "#4A4338",
|
|
180
|
-
grid: "rgba(20, 20, 20, 0.2)"
|
|
181
|
-
|
|
180
|
+
grid: "rgba(20, 20, 20, 0.2)",
|
|
181
|
+
deepRed: "#C4161C"
|
|
182
|
+
}, T = "'Bangers', 'Comic Neue', 'Comic Sans MS', cursive", Te = "'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive", s = {
|
|
182
183
|
vermillion: "#D9401F",
|
|
183
184
|
cyan: "#0B85C8",
|
|
184
185
|
yellow: "#FFD60A",
|
|
@@ -186,26 +187,26 @@ var ee = (o, r) => {
|
|
|
186
187
|
green: "#15964B",
|
|
187
188
|
purple: "#7A3DC8"
|
|
188
189
|
}, Ae = [
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
s.vermillion,
|
|
191
|
+
s.cyan,
|
|
192
|
+
s.yellow,
|
|
193
|
+
s.magenta,
|
|
194
|
+
s.green,
|
|
195
|
+
s.purple
|
|
195
196
|
], Oe = [
|
|
196
197
|
"#FFE45C",
|
|
197
198
|
"#F58A1F",
|
|
198
199
|
"#C4161C"
|
|
199
|
-
],
|
|
200
|
-
|
|
200
|
+
], ye = [
|
|
201
|
+
s.cyan,
|
|
201
202
|
"#ECE5D4",
|
|
202
|
-
|
|
203
|
+
s.vermillion
|
|
203
204
|
], O = {
|
|
204
205
|
offsetX: 4,
|
|
205
206
|
offsetY: 4,
|
|
206
207
|
blur: 0,
|
|
207
208
|
color: a.black
|
|
208
|
-
},
|
|
209
|
+
}, Ee = {
|
|
209
210
|
offsetX: 6,
|
|
210
211
|
offsetY: 6,
|
|
211
212
|
blur: 0,
|
|
@@ -215,12 +216,12 @@ var ee = (o, r) => {
|
|
|
215
216
|
offsetY: 2,
|
|
216
217
|
blur: 0,
|
|
217
218
|
color: a.black
|
|
218
|
-
},
|
|
219
|
+
}, I = {
|
|
219
220
|
offsetX: 4,
|
|
220
221
|
offsetY: 4,
|
|
221
222
|
blur: 0,
|
|
222
223
|
color: a.black
|
|
223
|
-
},
|
|
224
|
+
}, We = {
|
|
224
225
|
offsetX: 6,
|
|
225
226
|
offsetY: 6,
|
|
226
227
|
blur: 0,
|
|
@@ -229,13 +230,13 @@ var ee = (o, r) => {
|
|
|
229
230
|
offsetX: 2,
|
|
230
231
|
offsetY: 2,
|
|
231
232
|
blur: 0,
|
|
232
|
-
color:
|
|
233
|
+
color: s.yellow
|
|
233
234
|
}, Re = {
|
|
234
235
|
pattern: "dots",
|
|
235
236
|
color: "rgba(20, 20, 20, 0.24)",
|
|
236
237
|
size: 7
|
|
237
238
|
}, _e = {
|
|
238
|
-
image: we(a.paper,
|
|
239
|
+
image: we(a.paper, s.vermillion, 0.18),
|
|
239
240
|
fit: "stretch",
|
|
240
241
|
fallback: a.paper
|
|
241
242
|
}, xe = {
|
|
@@ -247,7 +248,7 @@ var ee = (o, r) => {
|
|
|
247
248
|
textTransform: "uppercase",
|
|
248
249
|
textColor: a.black
|
|
249
250
|
}, U = {
|
|
250
|
-
fill:
|
|
251
|
+
fill: s.yellow,
|
|
251
252
|
stroke: a.black,
|
|
252
253
|
strokeWidth: 3,
|
|
253
254
|
cornerRadius: 0,
|
|
@@ -257,9 +258,9 @@ var ee = (o, r) => {
|
|
|
257
258
|
offsetX: 5,
|
|
258
259
|
offsetY: 5,
|
|
259
260
|
blur: 0,
|
|
260
|
-
color:
|
|
261
|
+
color: s.vermillion
|
|
261
262
|
}
|
|
262
|
-
},
|
|
263
|
+
}, y = {
|
|
263
264
|
fontFamily: T,
|
|
264
265
|
fontWeight: 400,
|
|
265
266
|
fontSize: 16,
|
|
@@ -267,7 +268,7 @@ var ee = (o, r) => {
|
|
|
267
268
|
letterSpacing: 1,
|
|
268
269
|
textTransform: "uppercase",
|
|
269
270
|
textColor: a.black
|
|
270
|
-
},
|
|
271
|
+
}, E = {
|
|
271
272
|
...U,
|
|
272
273
|
strokeWidth: 2.5,
|
|
273
274
|
paddingInline: 7,
|
|
@@ -276,9 +277,9 @@ var ee = (o, r) => {
|
|
|
276
277
|
offsetX: 3,
|
|
277
278
|
offsetY: 3,
|
|
278
279
|
blur: 0,
|
|
279
|
-
color:
|
|
280
|
+
color: s.vermillion
|
|
280
281
|
}
|
|
281
|
-
},
|
|
282
|
+
}, W = {
|
|
282
283
|
fontFamily: T,
|
|
283
284
|
fontWeight: 400,
|
|
284
285
|
letterSpacing: 1,
|
|
@@ -286,7 +287,7 @@ var ee = (o, r) => {
|
|
|
286
287
|
}, m = {
|
|
287
288
|
stroke: a.black,
|
|
288
289
|
strokeAlpha: 1
|
|
289
|
-
},
|
|
290
|
+
}, L = {
|
|
290
291
|
dashArray: [],
|
|
291
292
|
lineCap: "round",
|
|
292
293
|
lineJoin: "round"
|
|
@@ -296,7 +297,7 @@ var ee = (o, r) => {
|
|
|
296
297
|
}, w = {
|
|
297
298
|
textColor: a.secondary,
|
|
298
299
|
fontWeight: 700
|
|
299
|
-
},
|
|
300
|
+
}, Pe = {
|
|
300
301
|
tokens: {
|
|
301
302
|
graphBackground: a.paper,
|
|
302
303
|
graphBorder: a.black,
|
|
@@ -311,9 +312,12 @@ var ee = (o, r) => {
|
|
|
311
312
|
tooltipBackground: a.bubble,
|
|
312
313
|
tooltipBorder: a.black,
|
|
313
314
|
tooltipPrimaryRow: "rgba(255, 214, 10, 0.35)",
|
|
314
|
-
annotationShape:
|
|
315
|
+
annotationShape: s.yellow,
|
|
315
316
|
annotationArrow: a.black,
|
|
316
|
-
differenceLabelBackground: a.bubble
|
|
317
|
+
differenceLabelBackground: a.bubble,
|
|
318
|
+
trendPositive: s.green,
|
|
319
|
+
trendNegative: a.deepRed,
|
|
320
|
+
trendNeutral: a.secondary
|
|
317
321
|
},
|
|
318
322
|
defaults: [
|
|
319
323
|
e.graph({
|
|
@@ -322,7 +326,7 @@ var ee = (o, r) => {
|
|
|
322
326
|
cornerRadius: 0,
|
|
323
327
|
fontFamily: Te,
|
|
324
328
|
padding: 22,
|
|
325
|
-
shadow:
|
|
329
|
+
shadow: We
|
|
326
330
|
}),
|
|
327
331
|
e.geom({
|
|
328
332
|
shadow: O,
|
|
@@ -337,11 +341,11 @@ var ee = (o, r) => {
|
|
|
337
341
|
e.geom.bar({
|
|
338
342
|
...m,
|
|
339
343
|
strokeWidth: 2.5,
|
|
340
|
-
shadow:
|
|
344
|
+
shadow: Ee
|
|
341
345
|
}, { state: "hovered" }),
|
|
342
346
|
e.geom.line({
|
|
343
347
|
strokeWidth: 3.5,
|
|
344
|
-
...
|
|
348
|
+
...L,
|
|
345
349
|
shadow: S,
|
|
346
350
|
overpaint: "none"
|
|
347
351
|
}),
|
|
@@ -350,7 +354,7 @@ var ee = (o, r) => {
|
|
|
350
354
|
...m,
|
|
351
355
|
fillAlpha: 1,
|
|
352
356
|
strokeWidth: 2.5,
|
|
353
|
-
...
|
|
357
|
+
...L
|
|
354
358
|
}),
|
|
355
359
|
e.geom.point({
|
|
356
360
|
...m,
|
|
@@ -381,8 +385,8 @@ var ee = (o, r) => {
|
|
|
381
385
|
shadow: "none"
|
|
382
386
|
}),
|
|
383
387
|
e.geom.rule.label({
|
|
384
|
-
...
|
|
385
|
-
textColor:
|
|
388
|
+
...W,
|
|
389
|
+
textColor: s.yellow,
|
|
386
390
|
fontSize: 15
|
|
387
391
|
}),
|
|
388
392
|
e.gridLine({ dashArray: [1, 5] }),
|
|
@@ -402,7 +406,7 @@ var ee = (o, r) => {
|
|
|
402
406
|
}),
|
|
403
407
|
e.axisLabel({
|
|
404
408
|
...v,
|
|
405
|
-
...
|
|
409
|
+
...W,
|
|
406
410
|
fontSize: 18,
|
|
407
411
|
lineHeight: 1
|
|
408
412
|
}),
|
|
@@ -439,7 +443,7 @@ var ee = (o, r) => {
|
|
|
439
443
|
}),
|
|
440
444
|
e.legendItem({
|
|
441
445
|
...v,
|
|
442
|
-
...
|
|
446
|
+
...W,
|
|
443
447
|
fontSize: 18,
|
|
444
448
|
fill: "transparent",
|
|
445
449
|
stroke: "transparent"
|
|
@@ -454,7 +458,7 @@ var ee = (o, r) => {
|
|
|
454
458
|
cornerRadius: 10,
|
|
455
459
|
paddingInline: 12,
|
|
456
460
|
paddingBlock: 9,
|
|
457
|
-
shadow:
|
|
461
|
+
shadow: I
|
|
458
462
|
}),
|
|
459
463
|
e.tooltip.heading({
|
|
460
464
|
...v,
|
|
@@ -474,7 +478,7 @@ var ee = (o, r) => {
|
|
|
474
478
|
e.legend.popover({
|
|
475
479
|
strokeWidth: 2.5,
|
|
476
480
|
cornerRadius: 10,
|
|
477
|
-
shadow:
|
|
481
|
+
shadow: I
|
|
478
482
|
}),
|
|
479
483
|
e.annotation.text({
|
|
480
484
|
...xe,
|
|
@@ -498,24 +502,24 @@ var ee = (o, r) => {
|
|
|
498
502
|
shadow: S
|
|
499
503
|
}),
|
|
500
504
|
e.annotation.pinnedNumber.label({
|
|
501
|
-
...
|
|
502
|
-
...
|
|
505
|
+
...y,
|
|
506
|
+
...E
|
|
503
507
|
}),
|
|
504
508
|
e.annotation.comment({
|
|
505
509
|
stroke: a.black,
|
|
506
510
|
shadow: S
|
|
507
511
|
}),
|
|
508
512
|
e.annotation.comment.label({
|
|
509
|
-
...
|
|
510
|
-
...
|
|
513
|
+
...y,
|
|
514
|
+
...E
|
|
511
515
|
}),
|
|
512
516
|
e.annotation.differenceArrow({
|
|
513
517
|
stroke: a.black,
|
|
514
518
|
strokeWidth: 2.5
|
|
515
519
|
}),
|
|
516
520
|
e.annotation.differenceArrow.label({
|
|
521
|
+
...y,
|
|
517
522
|
...E,
|
|
518
|
-
...W,
|
|
519
523
|
fontSize: 18
|
|
520
524
|
}),
|
|
521
525
|
e.panelBorder.bottom({ strokeWidth: 0 }, { coord: "polar" }),
|
|
@@ -543,11 +547,11 @@ var ee = (o, r) => {
|
|
|
543
547
|
]
|
|
544
548
|
}, De = {
|
|
545
549
|
name: "comic",
|
|
546
|
-
styles:
|
|
550
|
+
styles: Pe,
|
|
547
551
|
palettes: {
|
|
548
552
|
categorical: Ae,
|
|
549
553
|
sequential: Oe,
|
|
550
|
-
diverging:
|
|
554
|
+
diverging: ye
|
|
551
555
|
},
|
|
552
556
|
colorScheme: "light",
|
|
553
557
|
plugins: ve
|
package/dist/styles.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const COMIC_COLORS: {
|
|
|
5
5
|
readonly black: "#141414";
|
|
6
6
|
readonly secondary: "#4A4338";
|
|
7
7
|
readonly grid: "rgba(20, 20, 20, 0.2)";
|
|
8
|
+
readonly deepRed: "#C4161C";
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
10
11
|
* The colours a four-colour press gives on newsprint: the red is a vermillion of magenta over yellow,
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"theme",
|
|
14
14
|
"comic"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.1.1-beta.
|
|
16
|
+
"version": "0.1.1-beta.1792409717036",
|
|
17
17
|
"type": "module",
|
|
18
18
|
"sideEffects": [
|
|
19
19
|
"*.css"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^19.0.0",
|
|
43
|
-
"@graphysdk/react": "^1.9.0-beta.
|
|
43
|
+
"@graphysdk/react": "^1.9.0-beta.1792409717036"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/react": "^16.3.1",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"vite": "^8.1.5",
|
|
53
53
|
"vite-plugin-dts": "^4.5.4",
|
|
54
54
|
"vitest": "^4.1.11",
|
|
55
|
-
"@graphysdk/react": "1.9.0-beta.
|
|
55
|
+
"@graphysdk/react": "1.9.0-beta.1792409717036",
|
|
56
|
+
"@graphysdk/viz-engine": "1.9.0-beta.1792409717036",
|
|
57
|
+
"@graphytools/eslint-config": "0.0.1",
|
|
56
58
|
"@graphytools/typescript-config": "0.0.1",
|
|
57
|
-
"@
|
|
58
|
-
"@graphytools/vitest-config": "1.0.0",
|
|
59
|
-
"@graphytools/eslint-config": "0.0.1"
|
|
59
|
+
"@graphytools/vitest-config": "1.0.0"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|