-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add 3 bundle file * feat: export Chart class with libs extend * chore: fix ci * chore: update bundle config * chore: fix cr
- Loading branch information
Showing
18 changed files
with
211 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
corelib, | ||
plotlib, | ||
graphlib, | ||
geolib, | ||
stdlib, | ||
threedlib, | ||
} from '../src/lib'; | ||
import { extend, Runtime } from '../src/api'; | ||
import { API, CompositionAPI } from '../src/api/extend'; | ||
import { G2Spec } from '../src/spec'; | ||
|
||
export * from '../src/exports'; | ||
|
||
/** | ||
* G2 full library initial all the libs, include 3D and auto. | ||
*/ | ||
const library = { ...stdlib(), ...threedlib() }; | ||
|
||
export const Chart = extend(Runtime, library); | ||
export interface Chart extends API<G2Spec, typeof library> {} | ||
export interface CompositionNode extends CompositionAPI<typeof library> {} | ||
|
||
export { corelib, plotlib, graphlib, geolib, stdlib, threedlib }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { corelib } from '../src/lib'; | ||
import { extend, Runtime } from '../src/api'; | ||
import { API, CompositionAPI } from '../src/api/extend'; | ||
import { G2Spec } from '../src/spec'; | ||
|
||
export * from '../src/exports'; | ||
|
||
/** | ||
* G2 lite library only initial `corelib` which contains basic marks. | ||
*/ | ||
const library = { ...corelib() }; | ||
|
||
export const Chart = extend(Runtime, library); | ||
export interface Chart extends API<G2Spec, typeof library> {} | ||
export interface CompositionNode extends CompositionAPI<typeof library> {} | ||
|
||
export { corelib }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
corelib, | ||
plotlib, | ||
graphlib, | ||
geolib, | ||
stdlib, | ||
threedlib, | ||
} from '../src/lib'; | ||
import { extend, Runtime } from '../src/api'; | ||
import { API, CompositionAPI } from '../src/api/extend'; | ||
import { G2Spec } from '../src/spec'; | ||
|
||
export * from '../src/exports'; | ||
|
||
/** | ||
* G2 standard library initial all the libs except 3D and auto. | ||
*/ | ||
const library = { ...stdlib() }; | ||
|
||
export const Chart = extend(Runtime, library); | ||
export interface Chart extends API<G2Spec, typeof library> {} | ||
export interface CompositionNode extends CompositionAPI<typeof library> {} | ||
|
||
export { corelib, plotlib, graphlib, geolib, stdlib }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { runtime } from '@antv/g'; | ||
|
||
runtime.enableCSSParsing = false; | ||
|
||
export { | ||
render, | ||
renderToMountedElement, | ||
MAIN_LAYER_CLASS_NAME, | ||
LABEL_LAYER_CLASS_NAME, | ||
ELEMENT_CLASS_NAME, | ||
VIEW_CLASS_NAME, | ||
PLOT_CLASS_NAME, | ||
COMPONENT_CLASS_NAME, | ||
LABEL_CLASS_NAME, | ||
AREA_CLASS_NAME, | ||
MASK_CLASS_NAME, | ||
} from './runtime'; | ||
|
||
export { | ||
type MarkNode, | ||
type CompositionNode, | ||
register, | ||
Runtime, | ||
extend, | ||
type ChartOptions, | ||
} from './api'; | ||
|
||
export { ChartEvent } from './utils/event'; | ||
|
||
export type { G2Context } from './runtime'; | ||
|
||
export * from './spec'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,17 @@ | ||
import { runtime } from '@antv/g'; | ||
import { corelib, plotlib, graphlib, geolib, stdlib, threedlib } from './lib'; | ||
import { extend, Runtime } from './api'; | ||
import { API, CompositionAPI } from './api/extend'; | ||
import { G2Spec } from './spec'; | ||
|
||
runtime.enableCSSParsing = false; | ||
export { corelib, plotlib, graphlib, geolib, stdlib, threedlib }; | ||
|
||
export { | ||
render, | ||
renderToMountedElement, | ||
MAIN_LAYER_CLASS_NAME, | ||
LABEL_LAYER_CLASS_NAME, | ||
ELEMENT_CLASS_NAME, | ||
VIEW_CLASS_NAME, | ||
PLOT_CLASS_NAME, | ||
COMPONENT_CLASS_NAME, | ||
LABEL_CLASS_NAME, | ||
AREA_CLASS_NAME, | ||
MASK_CLASS_NAME, | ||
} from './runtime'; | ||
export * from './exports'; | ||
|
||
export { | ||
corelib, | ||
stdlib, | ||
litelib, | ||
graphlib, | ||
plotlib, | ||
geolib, | ||
threedlib, | ||
} from './lib'; | ||
/** | ||
* G2 standard library initial all the libs except 3D and auto. | ||
*/ | ||
const library = { ...stdlib() }; | ||
|
||
export * from './mark'; | ||
|
||
export { | ||
Chart, | ||
type MarkNode, | ||
type CompositionNode, | ||
register, | ||
Runtime, | ||
extend, | ||
type ChartOptions, | ||
} from './api'; | ||
|
||
export { ChartEvent } from './utils/event'; | ||
|
||
export type { G2Context } from './runtime'; | ||
|
||
export * from './spec'; | ||
export const Chart = extend(Runtime, library); | ||
export interface Chart extends API<G2Spec, typeof library> {} | ||
export interface CompositionNode extends CompositionAPI<typeof library> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.