react-konva-utils
Advanced tools
Comparing version 0.3.1 to 0.3.2
import Konva from 'konva'; | ||
import { PropsWithChildren } from 'react'; | ||
type TransformAttrs = { | ||
import { HTMLAttributes, PropsWithChildren } from 'react'; | ||
export type HtmlTransformAttrs = { | ||
x: number; | ||
@@ -12,9 +12,8 @@ y: number; | ||
}; | ||
type Props = PropsWithChildren<{ | ||
export type HtmlProps = PropsWithChildren<{ | ||
groupProps?: Konva.ContainerConfig; | ||
divProps?: any; | ||
divProps?: HTMLAttributes<HTMLDivElement>; | ||
transform?: boolean; | ||
transformFunc?: (attrs: TransformAttrs) => TransformAttrs; | ||
transformFunc?: (attrs: HtmlTransformAttrs) => HtmlTransformAttrs; | ||
}>; | ||
export declare const Html: ({ children, groupProps, divProps, transform, transformFunc, }: Props) => JSX.Element; | ||
export {}; | ||
export declare const Html: ({ children, groupProps, divProps, transform, transformFunc, }: HtmlProps) => JSX.Element; |
@@ -1,3 +0,3 @@ | ||
export { Html } from './html'; | ||
export * from './html'; | ||
export { Portal } from './portal'; | ||
export { useImage } from './use-image'; |
@@ -1,3 +0,3 @@ | ||
export { Html } from './html'; | ||
export * from './html'; | ||
export { Portal } from './portal'; | ||
export { useImage } from './use-image'; |
{ | ||
"name": "react-konva-utils", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Useful components and hooks for react-konva", | ||
@@ -5,0 +5,0 @@ "author": "Anton Lavrenov", |
12888
233