gosling.js 2.0.0-alpha.10 → 2.0.0-alpha.11
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Ref, type ReactElement } from 'react';
|
|
2
2
|
import { PixiManager } from '@pixi-manager';
|
|
3
3
|
import { type UrlToFetchOptions } from '../src/compiler/compile';
|
|
4
4
|
import type { TrackInfo } from 'src/compiler/bounding-box';
|
|
@@ -14,13 +14,13 @@ interface GoslingComponentProps {
|
|
|
14
14
|
padding?: number;
|
|
15
15
|
theme?: Theme;
|
|
16
16
|
urlToFetchOptions?: UrlToFetchOptions;
|
|
17
|
-
ref?:
|
|
17
|
+
ref?: Ref<GoslingRef>;
|
|
18
18
|
/** A callback function to notify that visualization has been rendered for the first time */
|
|
19
19
|
visualized?: () => void;
|
|
20
20
|
/** A callback function to notify that visualization has been resized. Only called when responsive design is used. */
|
|
21
21
|
resized?: () => void;
|
|
22
22
|
}
|
|
23
|
-
export declare function GoslingComponent(props: GoslingComponentProps):
|
|
23
|
+
export declare function GoslingComponent(props: GoslingComponentProps): ReactElement;
|
|
24
24
|
/**
|
|
25
25
|
* This is the main function. It takes a Gosling spec and renders it using the PixiManager
|
|
26
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gosling-component.d.ts","sourceRoot":"","sources":["../../demo/gosling-component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuB,KAAK,
|
|
1
|
+
{"version":3,"file":"gosling-component.d.ts","sourceRoot":"","sources":["../../demo/gosling-component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuB,KAAK,GAAG,EAAE,KAAK,YAAY,EAAuB,MAAM,OAAO,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAW,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE,CAAC;AAIjE,UAAU,qBAAqB;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,GAAG,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IACtB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,qHAAqH;IACrH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CAwD3E;AAED;;GAEG;AACH,wBAAgB,aAAa,CACzB,EAAE,EAAE,WAAW,EACf,SAAS,EAAE,cAAc,EACzB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,iBAAiB,CAAC,EAAE,iBAAiB,EACrC,OAAO,CAAC,EAAE,MAAM,IAAI;;;;;;;;EA2DvB"}
|
package/dist/gosling.js
CHANGED
|
@@ -57,7 +57,7 @@ import { zoom, ZoomTransform } from "d3-zoom";
|
|
|
57
57
|
import * as uchi from "uchimata";
|
|
58
58
|
import { tableFromArrays, tableToIPC, tableFromIPC, Type } from "@uwdata/flechette";
|
|
59
59
|
const name = "gosling.js";
|
|
60
|
-
const version = "2.0.0-alpha.
|
|
60
|
+
const version = "2.0.0-alpha.11";
|
|
61
61
|
const $ref$1 = "#/definitions/GoslingSpec";
|
|
62
62
|
const $schema$1 = "http://json-schema.org/draft-07/schema#";
|
|
63
63
|
const definitions$1 = {
|
|
@@ -17698,7 +17698,7 @@ class AxisTrackClass extends PixiTrack {
|
|
|
17698
17698
|
const viewWidth = domain[1] - domain[0];
|
|
17699
17699
|
const p = precisionPrefix(pos, viewWidth);
|
|
17700
17700
|
const fPlain = format(",");
|
|
17701
|
-
const fPrecision = formatPrefix(`,.${p}`, viewWidth);
|
|
17701
|
+
const fPrecision = formatPrefix(`,.${Number.isFinite(p) ? p : 0}`, viewWidth);
|
|
17702
17702
|
let f = fPlain;
|
|
17703
17703
|
if (this.options.tickFormat === "si") {
|
|
17704
17704
|
f = fPrecision;
|