Graphin icon indicating copy to clipboard operation
Graphin copied to clipboard

Misspelled type name in source code

Open maxott opened this issue 2 years ago • 1 comments

Describe the bug

Apparent typo in source code

https://github.com/antvis/Graphin/blob/master/packages/graphin/src/behaviors/ZoomCanvas.tsx
export type IDragCanvasProps = Partial<typeof defaultConfig>;

should most likely be:

export type IZoomCanvasProps = Partial<typeof defaultConfig>;

Your Example Website or App

none - just starting

Steps to Reproduce the Bug or Issue

See above

Expected behavior

See above.

In fact, I'm not sure if those types are directly exposed. Right now I access them directly:

import { IDragCanvasProps as IZoomCanasProps } from '@antv/graphin/lib/behaviors/ZoomCanvas'

Screenshots or Videos

No response

Platform

Any - just source code issue

Additional context

No response

maxott avatar Apr 20 '23 08:04 maxott

@maxott Yes, your finding is right. Could you give me a PR to fix it? Thank you very much

pomelo-nwu avatar May 28 '23 05:05 pomelo-nwu