Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Aug 29, 2023
1 parent 431301e commit 1c2a7e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/api/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { G2Spec } from '../spec';
import { extend, API } from './extend';
import { library } from './library';
import { Runtime } from './runtime';
import type { RuntimeOptions } from './runtime';

export interface Chart extends API<G2Spec, typeof library> {}

export const Chart = extend(Runtime, library);
// export type ChartOptions = Omit<RuntimeOptions, 'lib'>;

export type ChartOptions = Omit<RuntimeOptions, 'lib'>;
export const Chart = extend(Runtime, library);
4 changes: 3 additions & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export { Chart, type ChartOptions } from './chart';
export { Chart } from './chart';
export { MarkNode } from './mark';
export { CompositionNode } from './composition';
export { register } from './library';
export { Runtime } from './runtime';
export { extend } from './extend';

// export type { ChartOptions } from './chart';
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ export { ChartEvent } from './utils/event';

export type { G2Context } from './runtime';

// export type { ChartOptions } from './api';

export * from './spec';
3 changes: 2 additions & 1 deletion src/shape/connector/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const Connector: SC<ConnectorOptions> = (options, context) => {
offset2,
length1 || connectLength1,
);
const makerStyle = subObject({ ...style, ...defaults }, 'endMarker');

return select(new Path())
.call(applyStyle, rest)
Expand All @@ -97,7 +98,7 @@ export const Connector: SC<ConnectorOptions> = (options, context) => {
? new Marker({
className: 'marker',
style: {
...subObject(style, 'endMarker'),
...makerStyle,
symbol: inferSymbol,
},
})
Expand Down

0 comments on commit 1c2a7e7

Please sign in to comment.