@genesislcap/g2plot-chart 14.483.3-alpha-92cb1f2a8.0 → 14.484.1
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/custom-elements.json +2 -2
- package/dist/dts/chart-datasource/chart-datasource.d.ts +8 -2
- package/dist/dts/chart-datasource/chart-datasource.d.ts.map +1 -1
- package/dist/dts/chart.d.ts +1 -1
- package/dist/dts/chart.d.ts.map +1 -1
- package/dist/dts/chart.types.d.ts +14 -0
- package/dist/dts/chart.types.d.ts.map +1 -1
- package/dist/dts/react.d.ts +3 -2
- package/dist/esm/chart-datasource/chart-datasource.js +1 -1
- package/dist/esm/chart.js +1 -1
- package/dist/g2plot-chart.api.json +74 -2
- package/dist/g2plot-chart.d.ts +24 -3
- package/package.json +14 -14
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
],
|
|
440
440
|
"events": [
|
|
441
441
|
{
|
|
442
|
-
"description": "Fired when legend visibility changes and the title suffix should update",
|
|
442
|
+
"description": "Fired when legend visibility changes and the title suffix should update. detail: `ChangeTitleEventDetail`",
|
|
443
443
|
"name": "change-title"
|
|
444
444
|
}
|
|
445
445
|
],
|
|
@@ -1700,7 +1700,7 @@
|
|
|
1700
1700
|
],
|
|
1701
1701
|
"events": [
|
|
1702
1702
|
{
|
|
1703
|
-
"description": "Fired when configuration or data loading fails fatally",
|
|
1703
|
+
"description": "Fired when configuration or data loading fails fatally. detail: `ChartDatasourceErrorEventDetail`",
|
|
1704
1704
|
"name": "datasource-error"
|
|
1705
1705
|
}
|
|
1706
1706
|
],
|
|
@@ -141,7 +141,13 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
|
|
|
141
141
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
142
142
|
removeAttributeNode(attr: Attr): Attr;
|
|
143
143
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
144
|
-
requestPointerLock(options
|
|
144
|
+
requestPointerLock(options
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
? /**
|
|
149
|
+
* @internal
|
|
150
|
+
*/: PointerLockOptions): Promise<void>;
|
|
145
151
|
scroll(options?: ScrollToOptions): void;
|
|
146
152
|
scroll(x: number, y: number): void;
|
|
147
153
|
scrollBy(options?: ScrollToOptions): void;
|
|
@@ -399,7 +405,7 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
|
|
|
399
405
|
* The Genesis Datasource for the `g2plot-chart` component.
|
|
400
406
|
* @public
|
|
401
407
|
*
|
|
402
|
-
* @fires datasource-error - Fired when configuration or data loading fails fatally
|
|
408
|
+
* @fires datasource-error - Fired when configuration or data loading fails fatally. detail: `ChartDatasourceErrorEventDetail`
|
|
403
409
|
*/
|
|
404
410
|
export declare class ChartDatasource extends ChartDatasource_base {
|
|
405
411
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-datasource.d.ts","sourceRoot":"","sources":["../../../src/chart-datasource/chart-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAElF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAY5C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAQhD,cAAM,kBAAmB,SAAQ,cAAc;IAC7C,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAC1C,SAAS,CAAC,yBAAyB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAChE,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACnC,SAA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
|
|
|
371
371
|
* @public
|
|
372
372
|
* @tagname %%prefix%%-g2plot-chart
|
|
373
373
|
*
|
|
374
|
-
* @fires change-title - Fired when legend visibility changes and the title suffix should update
|
|
374
|
+
* @fires change-title - Fired when legend visibility changes and the title suffix should update. detail: `ChangeTitleEventDetail`
|
|
375
375
|
* @remarks Forwards G2Plot chart events using each event's native `type` string (see `chart.on('*', ...)`).
|
|
376
376
|
*/
|
|
377
377
|
export declare class G2PlotChart extends G2PlotChart_base {
|
package/dist/dts/chart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/chart.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,EAEL,UAAU,EAGV,eAAe,EACf,cAAc,EACd,WAAW,EACZ,MAAM,eAAe,CAAC;;;;;;;
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/chart.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,EAEL,UAAU,EAGV,eAAe,EACf,cAAc,EACd,WAAW,EACZ,MAAM,eAAe,CAAC;;;;;;;kBA2FkB,CAAC;;;;;;;;8BAoE7B,CAAC,cACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsCS,CAAC;4IASV,CAAC;wFAEyB,CAAC;+IAI3B,CAAA;2FAEsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0B1B,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBA8CgB,CAAC;;;;;;;;;;;;;6BAqCiE,CAAC;8BAAuE,CAAC;kBAA4D,CAAC;;oBAA8F,CAAC;;sBAAkG,CAAC;oBAAkE,CAAC;;;;;;;;gDAAme,CAAC;;;;;;;;;;;;;;;;;;uBAA8yB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;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,GAAI,MAAC,UAEf;IAEF;;;OAGG;IACH,OAAO,CAAC,cAAc,CAuBpB;IAEF,OAAO,CAAC,qBAAqB,CAO3B;IAEF;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,8BAA8B;IA0BtC,OAAO,CAAC,sBAAsB,CAc5B;CACH;AAED;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,cAA0B,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,IAAK,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;sBAMtB,CAAC"}
|
|
@@ -51,5 +51,19 @@ export interface ChartErrorItem<ChartErrorItemDetailType> {
|
|
|
51
51
|
* @public
|
|
52
52
|
*/
|
|
53
53
|
export type ChartErrorEvent = ChartDatasourceErrorEvent | CustomEvent<ChartErrorItem<any>>;
|
|
54
|
+
/**
|
|
55
|
+
* The event detail for the Chart `change-title` event.
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export interface ChangeTitleEventDetail {
|
|
59
|
+
/**
|
|
60
|
+
* The title suffix to display when legend items are hidden.
|
|
61
|
+
*/
|
|
62
|
+
title: string;
|
|
63
|
+
/**
|
|
64
|
+
* The mode indicating the title change context.
|
|
65
|
+
*/
|
|
66
|
+
mode: 'suffix';
|
|
67
|
+
}
|
|
54
68
|
export {};
|
|
55
69
|
//# sourceMappingURL=chart.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.types.d.ts","sourceRoot":"","sources":["../../src/chart.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,MAAM,EACN,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,UAAU,EACX,MAAM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AAM,MAAM,WAAW,GACnB,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,MAAM,GACN,GAAG,GACH,QAAQ,GACR,IAAI,GACJ,OAAO,GACP,KAAK,GACL,GAAG,CAAC;AAER;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,KAAK,GACL,KAAK,GACL,OAAO,GACP,UAAU,GACV,MAAM,GACN,SAAS,GACT,OAAO,GACP,KAAK,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,EAAE,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,wBAAwB;IACtD,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,yBAAyB,GAAG,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAE3F;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type React from 'react';
|
|
7
7
|
import type { ChartDatasource as ChartDatasourceWC } from './chart-datasource/chart-datasource';
|
|
8
8
|
import type { G2PlotChart as G2PlotChartWC } from './chart';
|
|
9
|
+
import type { ChangeTitleEventDetail, ChartDatasourceErrorEventDetail } from '@genesislcap/g2plot-chart';
|
|
9
10
|
|
|
10
11
|
/** @internal Maps a web component class to its public props only.
|
|
11
12
|
* keyof T skips private/protected members, so this avoids the TS error
|
|
@@ -40,7 +41,7 @@ export declare const G2PlotChart: React.ForwardRefExoticComponent<
|
|
|
40
41
|
React.PropsWithChildren<
|
|
41
42
|
Omit<PublicOf<G2PlotChartWC>, 'children' | 'style'> &
|
|
42
43
|
HTMLWCProps & {
|
|
43
|
-
onChangeTitle?: (event: CustomEvent<
|
|
44
|
+
onChangeTitle?: (event: CustomEvent<ChangeTitleEventDetail>) => void;
|
|
44
45
|
}
|
|
45
46
|
> & React.RefAttributes<G2PlotChartWC>
|
|
46
47
|
>;
|
|
@@ -50,7 +51,7 @@ export declare const ChartDatasource: React.ForwardRefExoticComponent<
|
|
|
50
51
|
React.PropsWithChildren<
|
|
51
52
|
Omit<PublicOf<ChartDatasourceWC>, 'children' | 'style'> &
|
|
52
53
|
HTMLWCProps & {
|
|
53
|
-
onDatasourceError?: (event: CustomEvent<
|
|
54
|
+
onDatasourceError?: (event: CustomEvent<ChartDatasourceErrorEventDetail>) => void;
|
|
54
55
|
}
|
|
55
56
|
> & React.RefAttributes<ChartDatasourceWC>
|
|
56
57
|
>;
|
|
@@ -90,7 +90,7 @@ class ConcreteDatasource extends BaseDatasource {
|
|
|
90
90
|
* The Genesis Datasource for the `g2plot-chart` component.
|
|
91
91
|
* @public
|
|
92
92
|
*
|
|
93
|
-
* @fires datasource-error - Fired when configuration or data loading fails fatally
|
|
93
|
+
* @fires datasource-error - Fired when configuration or data loading fails fatally. detail: `ChartDatasourceErrorEventDetail`
|
|
94
94
|
*/
|
|
95
95
|
let ChartDatasource = class ChartDatasource extends LifecycleMixin(ConcreteDatasource) {
|
|
96
96
|
constructor() {
|
package/dist/esm/chart.js
CHANGED
|
@@ -14,7 +14,7 @@ ChartDatasource;
|
|
|
14
14
|
* @public
|
|
15
15
|
* @tagname %%prefix%%-g2plot-chart
|
|
16
16
|
*
|
|
17
|
-
* @fires change-title - Fired when legend visibility changes and the title suffix should update
|
|
17
|
+
* @fires change-title - Fired when legend visibility changes and the title suffix should update. detail: `ChangeTitleEventDetail`
|
|
18
18
|
* @remarks Forwards G2Plot chart events using each event's native `type` string (see `chart.on('*', ...)`).
|
|
19
19
|
*/
|
|
20
20
|
export class G2PlotChart extends LifecycleMixin(FoundationElement) {
|
|
@@ -184,6 +184,78 @@
|
|
|
184
184
|
"name": "",
|
|
185
185
|
"preserveMemberOrder": false,
|
|
186
186
|
"members": [
|
|
187
|
+
{
|
|
188
|
+
"kind": "Interface",
|
|
189
|
+
"canonicalReference": "@genesislcap/g2plot-chart!ChangeTitleEventDetail:interface",
|
|
190
|
+
"docComment": "/**\n * The event detail for the Chart `change-title` event.\n *\n * @public\n */\n",
|
|
191
|
+
"excerptTokens": [
|
|
192
|
+
{
|
|
193
|
+
"kind": "Content",
|
|
194
|
+
"text": "export interface ChangeTitleEventDetail "
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"fileUrlPath": "src/chart.types.ts",
|
|
198
|
+
"releaseTag": "Public",
|
|
199
|
+
"name": "ChangeTitleEventDetail",
|
|
200
|
+
"preserveMemberOrder": false,
|
|
201
|
+
"members": [
|
|
202
|
+
{
|
|
203
|
+
"kind": "PropertySignature",
|
|
204
|
+
"canonicalReference": "@genesislcap/g2plot-chart!ChangeTitleEventDetail#mode:member",
|
|
205
|
+
"docComment": "/**\n * The mode indicating the title change context.\n */\n",
|
|
206
|
+
"excerptTokens": [
|
|
207
|
+
{
|
|
208
|
+
"kind": "Content",
|
|
209
|
+
"text": "mode: "
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "Content",
|
|
213
|
+
"text": "'suffix'"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "Content",
|
|
217
|
+
"text": ";"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"isReadonly": false,
|
|
221
|
+
"isOptional": false,
|
|
222
|
+
"releaseTag": "Public",
|
|
223
|
+
"name": "mode",
|
|
224
|
+
"propertyTypeTokenRange": {
|
|
225
|
+
"startIndex": 1,
|
|
226
|
+
"endIndex": 2
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "PropertySignature",
|
|
231
|
+
"canonicalReference": "@genesislcap/g2plot-chart!ChangeTitleEventDetail#title:member",
|
|
232
|
+
"docComment": "/**\n * The title suffix to display when legend items are hidden.\n */\n",
|
|
233
|
+
"excerptTokens": [
|
|
234
|
+
{
|
|
235
|
+
"kind": "Content",
|
|
236
|
+
"text": "title: "
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"kind": "Content",
|
|
240
|
+
"text": "string"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"kind": "Content",
|
|
244
|
+
"text": ";"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"isReadonly": false,
|
|
248
|
+
"isOptional": false,
|
|
249
|
+
"releaseTag": "Public",
|
|
250
|
+
"name": "title",
|
|
251
|
+
"propertyTypeTokenRange": {
|
|
252
|
+
"startIndex": 1,
|
|
253
|
+
"endIndex": 2
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"extendsTokenRanges": []
|
|
258
|
+
},
|
|
187
259
|
{
|
|
188
260
|
"kind": "TypeAlias",
|
|
189
261
|
"canonicalReference": "@genesislcap/g2plot-chart!ChartConfig:type",
|
|
@@ -389,7 +461,7 @@
|
|
|
389
461
|
{
|
|
390
462
|
"kind": "Class",
|
|
391
463
|
"canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource:class",
|
|
392
|
-
"docComment": "/**\n * The Genesis Datasource for the `g2plot-chart` component.\n *\n * @fires\n *\n * datasource-error - Fired when configuration or data loading fails fatally
|
|
464
|
+
"docComment": "/**\n * The Genesis Datasource for the `g2plot-chart` component.\n *\n * @fires\n *\n * datasource-error - Fired when configuration or data loading fails fatally. detail: `ChartDatasourceErrorEventDetail`\n *\n * @public\n */\n",
|
|
393
465
|
"excerptTokens": [
|
|
394
466
|
{
|
|
395
467
|
"kind": "Content",
|
|
@@ -1467,7 +1539,7 @@
|
|
|
1467
1539
|
{
|
|
1468
1540
|
"kind": "Class",
|
|
1469
1541
|
"canonicalReference": "@genesislcap/g2plot-chart!G2PlotChart:class",
|
|
1470
|
-
"docComment": "/**\n * The G2Plot Chart component\n *\n * @remarks\n *\n * Forwards G2Plot chart events using each event's native `type` string (see `chart.on('*', ...)`).\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `G2PlotChart` class.\n *\n * @tagname\n *\n * %%prefix%%-g2plot-chart\n *\n * @fires\n *\n * change-title - Fired when legend visibility changes and the title suffix should update
|
|
1542
|
+
"docComment": "/**\n * The G2Plot Chart component\n *\n * @remarks\n *\n * Forwards G2Plot chart events using each event's native `type` string (see `chart.on('*', ...)`).\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `G2PlotChart` class.\n *\n * @tagname\n *\n * %%prefix%%-g2plot-chart\n *\n * @fires\n *\n * change-title - Fired when legend visibility changes and the title suffix should update. detail: `ChangeTitleEventDetail`\n *\n * @public\n */\n",
|
|
1471
1543
|
"excerptTokens": [
|
|
1472
1544
|
{
|
|
1473
1545
|
"kind": "Content",
|
package/dist/g2plot-chart.d.ts
CHANGED
|
@@ -32,6 +32,21 @@ import { Stock } from '@antv/g2plot';
|
|
|
32
32
|
import { StockOptions } from '@antv/g2plot';
|
|
33
33
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* The event detail for the Chart `change-title` event.
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare interface ChangeTitleEventDetail {
|
|
40
|
+
/**
|
|
41
|
+
* The title suffix to display when legend items are hidden.
|
|
42
|
+
*/
|
|
43
|
+
title: string;
|
|
44
|
+
/**
|
|
45
|
+
* The mode indicating the title change context.
|
|
46
|
+
*/
|
|
47
|
+
mode: 'suffix';
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
/**
|
|
36
51
|
* G2Plot Chart Config
|
|
37
52
|
* @public
|
|
@@ -42,7 +57,7 @@ export declare type ChartConfig = OptionalData<LineOptions> | OptionalData<AreaO
|
|
|
42
57
|
* The Genesis Datasource for the `g2plot-chart` component.
|
|
43
58
|
* @public
|
|
44
59
|
*
|
|
45
|
-
* @fires datasource-error - Fired when configuration or data loading fails fatally
|
|
60
|
+
* @fires datasource-error - Fired when configuration or data loading fails fatally. detail: `ChartDatasourceErrorEventDetail`
|
|
46
61
|
*/
|
|
47
62
|
export declare class ChartDatasource extends ChartDatasource_base {
|
|
48
63
|
/**
|
|
@@ -294,7 +309,13 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
|
|
|
294
309
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
295
310
|
removeAttributeNode(attr: Attr): Attr;
|
|
296
311
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
297
|
-
requestPointerLock(options
|
|
312
|
+
requestPointerLock(options
|
|
313
|
+
/**
|
|
314
|
+
* @internal
|
|
315
|
+
*/
|
|
316
|
+
? /**
|
|
317
|
+
* @internal
|
|
318
|
+
*/: PointerLockOptions): Promise<void>;
|
|
298
319
|
scroll(options?: ScrollToOptions): void;
|
|
299
320
|
scroll(x: number, y: number): void;
|
|
300
321
|
scrollBy(options?: ScrollToOptions): void;
|
|
@@ -695,7 +716,7 @@ export declare const foundationChartShadowOptions: ShadowRootInit;
|
|
|
695
716
|
* @public
|
|
696
717
|
* @tagname %%prefix%%-g2plot-chart
|
|
697
718
|
*
|
|
698
|
-
* @fires change-title - Fired when legend visibility changes and the title suffix should update
|
|
719
|
+
* @fires change-title - Fired when legend visibility changes and the title suffix should update. detail: `ChangeTitleEventDetail`
|
|
699
720
|
* @remarks Forwards G2Plot chart events using each event's native `type` string (see `chart.on('*', ...)`).
|
|
700
721
|
*/
|
|
701
722
|
export declare class G2PlotChart extends G2PlotChart_base {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/g2plot-chart",
|
|
3
3
|
"description": "Genesis G2plot Chart",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.484.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@genesislcap/foundation-testing": "14.
|
|
57
|
-
"@genesislcap/genx": "14.
|
|
58
|
-
"@genesislcap/rollup-builder": "14.
|
|
59
|
-
"@genesislcap/ts-builder": "14.
|
|
60
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
61
|
-
"@genesislcap/vite-builder": "14.
|
|
62
|
-
"@genesislcap/webpack-builder": "14.
|
|
56
|
+
"@genesislcap/foundation-testing": "14.484.1",
|
|
57
|
+
"@genesislcap/genx": "14.484.1",
|
|
58
|
+
"@genesislcap/rollup-builder": "14.484.1",
|
|
59
|
+
"@genesislcap/ts-builder": "14.484.1",
|
|
60
|
+
"@genesislcap/uvu-playwright-builder": "14.484.1",
|
|
61
|
+
"@genesislcap/vite-builder": "14.484.1",
|
|
62
|
+
"@genesislcap/webpack-builder": "14.484.1"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@antv/g2plot": "^2.4.32",
|
|
66
|
-
"@genesislcap/foundation-comms": "14.
|
|
67
|
-
"@genesislcap/foundation-logger": "14.
|
|
68
|
-
"@genesislcap/foundation-ui": "14.
|
|
69
|
-
"@genesislcap/foundation-utils": "14.
|
|
70
|
-
"@genesislcap/foundation-zero": "14.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.484.1",
|
|
67
|
+
"@genesislcap/foundation-logger": "14.484.1",
|
|
68
|
+
"@genesislcap/foundation-ui": "14.484.1",
|
|
69
|
+
"@genesislcap/foundation-utils": "14.484.1",
|
|
70
|
+
"@genesislcap/foundation-zero": "14.484.1",
|
|
71
71
|
"@microsoft/fast-element": "1.14.0",
|
|
72
72
|
"@microsoft/fast-foundation": "2.50.0"
|
|
73
73
|
},
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"require": "./dist/react.cjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "805c947c8df90977fa68f5da82e358de498ada51"
|
|
95
95
|
}
|