@graphysdk/react 1.9.0-beta.1792477500586 → 1.9.0-beta.1792505847409
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/authoring.d.ts +1 -1
- package/dist/editable.browser.mjs +58 -50
- package/dist/index.browser.mjs +1024 -1016
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +64 -63
- package/package.json +4 -4
package/dist/authoring.d.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* `@graphysdk/react-renderer` by the package index, so a custom geom can be authored from one import.
|
|
5
5
|
*/
|
|
6
6
|
export type { AnchorBox, AnchorContext, AnchoredLabelCenter, AnchorOrientation, AnchorPosition, CartesianCoordSystem, ColorScheme, Data, DataValue, GeomCompileResult, GeomCompilerInput, GeomCornerRadius, GeomCornerRadiusInput, GeomEffects, GeomMappingValidationInput, GeomObservationPart, GeomStylePart, GeomStyleReader, GeomStyleReaders, GeomStyleTarget, HoverHit, LayerAttachment, LayerTooltipFieldSpec, LayerTooltipSpec, MainAxis, Observation, PlacedDataLabel, PlacementResult, Plugin, PluginPlacementContext, Rect, RenderOnlyPlugin, ResolveAnchoredLabelCenterInput, ResolvedSpec, Scene, SceneLayer, SceneLayerFor, Spec, StackRole, StatCompileResult, StatCompilerInput, StyleLineCap, Stylesheet, StyleState, ThemeConfig, TooltipContract, TooltipField, TooltipMode, UserInputIssue, ValueFormat, XYPoint, } from '@graphysdk/viz-engine';
|
|
7
|
-
export { annotation, BAR_WIDTH_FRACTION, buildPanelAnchorBox, buildPolarBarArcPath, composePoint, config, coord, createAreaPathGenerators, createBarBoundsReader, createLinePathGenerator, createSpec, createStableBandKeyGenerator, createStableCellKeyGenerator, createStableKeyGenerator, createStyleResolver, createValueFormatter, Dataset, defineGeomStyleTarget, findAttachedHit, Geom, geom, GEOM_EFFECTS_VOCABULARY, getAlpha, getAngleExtent, getBarRectBounds, getColor, getGroup, getGroupVariables, getLineType, getPaintedTileRect, getRadiusExtent, getScaledAesthetic, getSize, getStackRole, getStrokeWidth, getTileRectBounds, getX, getXBand, getXMax, getXMin, getY, getYBand, getYMax, getYMin, getYRaw, GROUP_VARIABLES, highlight, mapping, pipe, polarToUnit, POSITION_VARIABLES, prepareAreaObservations, prepareLineObservations, readBackdropColor, readGeomEffects, readMainAxis, readVariableName, resolveAnchoredLabelCenter, resolveBarCornerRadiusPx, resolveGeomCornerRadiusPx, scale, Stat, stat, style, styles, token, toPaintColor, toPercent, toStrokeDasharray, toViewBoxX, toViewBoxY, transform, UserInputError, VISUAL_VARIABLES, } from '@graphysdk/viz-engine';
|
|
7
|
+
export { annotation, BAR_WIDTH_FRACTION, buildPanelAnchorBox, buildPolarBarArcPath, composePoint, config, coord, createAreaPathGenerators, createBarBoundsReader, createLineFillAreaGenerator, createLinePathGenerator, createSpec, createStableBandKeyGenerator, createStableCellKeyGenerator, createStableKeyGenerator, createStyleResolver, createValueFormatter, Dataset, defineGeomStyleTarget, findAttachedHit, Geom, geom, GEOM_EFFECTS_VOCABULARY, getAlpha, getAngleExtent, getBarRectBounds, getColor, getGroup, getGroupVariables, getLineType, getPaintedTileRect, getRadiusExtent, getScaledAesthetic, getSize, getStackRole, getStrokeWidth, getTileRectBounds, getX, getXBand, getXMax, getXMin, getY, getYBand, getYMax, getYMin, getYRaw, GROUP_VARIABLES, highlight, mapping, pipe, polarToUnit, POSITION_VARIABLES, prepareAreaObservations, prepareLineObservations, readBackdropColor, readGeomEffects, readMainAxis, readVariableName, resolveAnchoredLabelCenter, resolveBarCornerRadiusPx, resolveGeomCornerRadiusPx, scale, Stat, stat, style, styles, token, toPaintColor, toPercent, toStrokeDasharray, toViewBoxX, toViewBoxY, transform, UserInputError, VISUAL_VARIABLES, } from '@graphysdk/viz-engine';
|
|
@@ -9599,7 +9599,8 @@ var Nme = class extends zc {
|
|
|
9599
9599
|
}).pipe(({ data: a, mapping: l }) => {
|
|
9600
9600
|
const c = this.positionAdjusterCompiler.adjust(e.position, {
|
|
9601
9601
|
data: a,
|
|
9602
|
-
mapping: l
|
|
9602
|
+
mapping: l,
|
|
9603
|
+
stackMissingAsZero: "missingValues" in e.params && e.params.missingValues === "zero"
|
|
9603
9604
|
});
|
|
9604
9605
|
return {
|
|
9605
9606
|
data: c.data,
|
|
@@ -14242,47 +14243,48 @@ var k1 = class {
|
|
|
14242
14243
|
constructor(...e) {
|
|
14243
14244
|
super(...e), this.type = "fill";
|
|
14244
14245
|
}
|
|
14245
|
-
adjust({ data: e, mapping: t }) {
|
|
14246
|
-
const
|
|
14247
|
-
if (
|
|
14246
|
+
adjust({ data: e, mapping: t, stackMissingAsZero: n = !1 }) {
|
|
14247
|
+
const r = u9(e, t);
|
|
14248
|
+
if (r === null) return {
|
|
14248
14249
|
data: e,
|
|
14249
14250
|
mapping: {}
|
|
14250
14251
|
};
|
|
14251
|
-
const { yValues:
|
|
14252
|
-
for (const [,
|
|
14253
|
-
let
|
|
14254
|
-
for (const
|
|
14255
|
-
const
|
|
14256
|
-
if (
|
|
14257
|
-
for (const
|
|
14258
|
-
const
|
|
14259
|
-
|
|
14252
|
+
const { yValues: o, observationIndicesByXAndGroup: i, uniqueGroupKeys: s, observationCount: a } = r, l = [...o], c = new Array(a).fill(0);
|
|
14253
|
+
for (const [, d] of i) {
|
|
14254
|
+
let h = 0, f = 0;
|
|
14255
|
+
for (const v of s) {
|
|
14256
|
+
const y = d.get(v);
|
|
14257
|
+
if (y !== void 0)
|
|
14258
|
+
for (const b of y) {
|
|
14259
|
+
const w = o[b];
|
|
14260
|
+
w != null && (w >= 0 ? h += w : f -= w);
|
|
14260
14261
|
}
|
|
14261
14262
|
}
|
|
14262
|
-
let
|
|
14263
|
-
for (const
|
|
14264
|
-
const
|
|
14265
|
-
if (
|
|
14266
|
-
for (const
|
|
14267
|
-
const
|
|
14268
|
-
if (
|
|
14269
|
-
if (
|
|
14270
|
-
|
|
14263
|
+
let p = 0, g = 0;
|
|
14264
|
+
for (const v of s) {
|
|
14265
|
+
const y = d.get(v);
|
|
14266
|
+
if (y !== void 0)
|
|
14267
|
+
for (const b of y) {
|
|
14268
|
+
const w = o[b];
|
|
14269
|
+
if (w === void 0) continue;
|
|
14270
|
+
if (w === null) {
|
|
14271
|
+
const T = n ? p : null;
|
|
14272
|
+
c[b] = T, l[b] = T;
|
|
14271
14273
|
continue;
|
|
14272
14274
|
}
|
|
14273
|
-
const
|
|
14274
|
-
if (
|
|
14275
|
-
|
|
14275
|
+
const S = w >= 0 ? h : f;
|
|
14276
|
+
if (S === 0) {
|
|
14277
|
+
c[b] = 0, l[b] = 0;
|
|
14276
14278
|
continue;
|
|
14277
14279
|
}
|
|
14278
|
-
const
|
|
14279
|
-
|
|
14280
|
+
const A = w / S;
|
|
14281
|
+
w >= 0 ? (c[b] = p, l[b] = p += A) : (l[b] = g, c[b] = g += A);
|
|
14280
14282
|
}
|
|
14281
14283
|
}
|
|
14282
14284
|
}
|
|
14283
|
-
const
|
|
14285
|
+
const u = d9(c, l, i, a);
|
|
14284
14286
|
return {
|
|
14285
|
-
data: e.addVariable(ie.yMin, "numeric",
|
|
14287
|
+
data: e.addVariable(ie.yMin, "numeric", c).addVariable(ie.yMax, "numeric", l).addVariable(ie.yRaw, "numeric", o).addVariable(e1.role, "categorical", u),
|
|
14286
14288
|
mapping: {}
|
|
14287
14289
|
};
|
|
14288
14290
|
}
|
|
@@ -14300,35 +14302,40 @@ var k1 = class {
|
|
|
14300
14302
|
constructor(...e) {
|
|
14301
14303
|
super(...e), this.type = "stack";
|
|
14302
14304
|
}
|
|
14303
|
-
adjust({ data: e, mapping: t }) {
|
|
14304
|
-
const
|
|
14305
|
-
if (
|
|
14305
|
+
adjust({ data: e, mapping: t, stackMissingAsZero: n = !1 }) {
|
|
14306
|
+
const r = u9(e, t);
|
|
14307
|
+
if (r === null) return {
|
|
14306
14308
|
data: e,
|
|
14307
14309
|
mapping: {}
|
|
14308
14310
|
};
|
|
14309
|
-
const { yValues:
|
|
14310
|
-
for (const [,
|
|
14311
|
-
let
|
|
14312
|
-
for (const
|
|
14313
|
-
const
|
|
14314
|
-
if (
|
|
14315
|
-
for (const
|
|
14316
|
-
const
|
|
14317
|
-
if (
|
|
14318
|
-
if (
|
|
14319
|
-
|
|
14311
|
+
const { yValues: o, observationIndicesByXAndGroup: i, uniqueGroupKeys: s, observationCount: a } = r, l = [...o], c = new Array(a).fill(0);
|
|
14312
|
+
for (const [, f] of i) {
|
|
14313
|
+
let p = 0, g = 0;
|
|
14314
|
+
for (const v of s) {
|
|
14315
|
+
const y = f.get(v);
|
|
14316
|
+
if (y !== void 0)
|
|
14317
|
+
for (const b of y) {
|
|
14318
|
+
const w = o[b];
|
|
14319
|
+
if (w !== void 0) {
|
|
14320
|
+
if (w === null) {
|
|
14321
|
+
const S = n ? p : null;
|
|
14322
|
+
c[b] = S, l[b] = S;
|
|
14320
14323
|
continue;
|
|
14321
14324
|
}
|
|
14322
|
-
|
|
14325
|
+
w >= 0 ? (c[b] = p, l[b] = p += w) : (l[b] = g, c[b] = g += w);
|
|
14323
14326
|
}
|
|
14324
14327
|
}
|
|
14325
14328
|
}
|
|
14326
14329
|
}
|
|
14327
|
-
const
|
|
14328
|
-
let
|
|
14329
|
-
const
|
|
14330
|
-
|
|
14331
|
-
|
|
14330
|
+
const u = d9(c, l, i, a);
|
|
14331
|
+
let d = e.addVariable(ie.yMin, "numeric", c).addVariable(ie.yMax, "numeric", l).addVariable(ie.yRaw, "numeric", o).addVariable(e1.role, "categorical", u);
|
|
14332
|
+
const h = pe(t.y);
|
|
14333
|
+
if (h !== null) {
|
|
14334
|
+
const f = l.map((p, g) => o[g] === null ? null : p);
|
|
14335
|
+
d = d.addVariable(h, "numeric", f);
|
|
14336
|
+
}
|
|
14337
|
+
return {
|
|
14338
|
+
data: d,
|
|
14332
14339
|
mapping: {}
|
|
14333
14340
|
};
|
|
14334
14341
|
}
|
|
@@ -85602,7 +85609,7 @@ var npt = (e) => [...new Set(e)], rpt = (e) => ({
|
|
|
85602
85609
|
stickers: e.stickers.length,
|
|
85603
85610
|
pinnedNumbers: e.pinnedNumbers.length,
|
|
85604
85611
|
comments: e.comments.length
|
|
85605
|
-
}), opt = "", ipt = "1.9.0-beta.
|
|
85612
|
+
}), opt = "", ipt = "1.9.0-beta.1792505847409", spt = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
|
|
85606
85613
|
function Jne() {
|
|
85607
85614
|
return opt;
|
|
85608
85615
|
}
|
|
@@ -85892,6 +85899,7 @@ export {
|
|
|
85892
85899
|
GE as createAreaPathGenerators,
|
|
85893
85900
|
YM as createBarBoundsReader,
|
|
85894
85901
|
Eyt as createGraphyKit,
|
|
85902
|
+
QAe as createLineFillAreaGenerator,
|
|
85895
85903
|
jE as createLinePathGenerator,
|
|
85896
85904
|
Bm as createObservationAnchorBuilder,
|
|
85897
85905
|
_xe as createSpec,
|