Skip to content

Commit

Permalink
feat: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Oct 15, 2024
1 parent 988e575 commit c420035
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import {
SVGRenderer,
SvgChart,
SkiaRender,
SkiaRenderer,
SkiaChart,
} from '@wuba/react-native-echarts';
import * as echarts from 'echarts/core';
Expand All @@ -22,7 +22,7 @@ echarts.use([
TooltipComponent,
GridComponent,
SVGRenderer,
SkiaRender,
SkiaRenderer,
// ...
BarChart,
LineChart,
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as SkiaChart, SkiaRender } from './skia/skiaChart';
export { default as SkiaChart, SkiaRenderer } from './skia/skiaChart';
export { default as SvgChart, SVGRenderer } from './svg/svgChart';
export * from './types';
2 changes: 1 addition & 1 deletion src/skia/SkiaRender.ts → src/skia/SkiaRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SkiaPainter } from './painter';

export function SkiaRender(registers: any) {
export function SkiaRenderer(registers: any) {
registers.registerPainter('skia', SkiaPainter);

Check warning on line 4 in src/skia/SkiaRenderer.ts

View check run for this annotation

Codecov / codecov/patch

src/skia/SkiaRenderer.ts#L3-L4

Added lines #L3 - L4 were not covered by tests
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SVGPainter from 'zrender/lib/svg/Painter';
export function SkiaRender(registers: any) {
export function SkiaRenderer(registers: any) {
registers.registerPainter('skia', SVGPainter);
}
2 changes: 1 addition & 1 deletion src/skia/skiaChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { GestureHandler } from '../components/GestureHandler';
import { dispatchEventsToZRender } from '../components/events';
import type { ChartElement, DispatchEvents, SkiaChartProps } from '../types';

export { SkiaRender } from './SkiaRender';
export { SkiaRenderer } from './SkiaRenderer';
export * from '../types';

function SkiaComponent(
Expand Down
2 changes: 1 addition & 1 deletion src/skia/skiaChart.web.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default } from '../web/chart';
export { SkiaRender } from './SkiaRender';
export { SkiaRenderer } from './SkiaRenderer';

0 comments on commit c420035

Please sign in to comment.