mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 02:27:53 +08:00
export Factory Validators and GetSet
This commit is contained in:
parent
47e8d20a52
commit
44c212fe33
@ -2,6 +2,9 @@
|
||||
import { Konva as Global } from './Global';
|
||||
|
||||
import { Util, Transform } from './Util';
|
||||
import { Factory } from './Factory';
|
||||
import * as Validators from './Validators';
|
||||
|
||||
import { Node } from './Node';
|
||||
import { Container } from './Container';
|
||||
|
||||
@ -24,6 +27,8 @@ import { Canvas } from './Canvas';
|
||||
|
||||
export const Konva = Util._assign(Global, {
|
||||
Util,
|
||||
Factory,
|
||||
Validators,
|
||||
Transform,
|
||||
Node,
|
||||
Container,
|
||||
|
3
src/index-types.d.ts
vendored
3
src/index-types.d.ts
vendored
@ -41,6 +41,7 @@ declare namespace Konva {
|
||||
export const isDragReady: () => boolean;
|
||||
export const getAngle: (angle: number) => number;
|
||||
|
||||
export type GetSet<Type, This> = import('./types').GetSet<Type, This>
|
||||
export type Vector2d = import('./types').Vector2d;
|
||||
|
||||
export const Node: typeof import('./Node').Node;
|
||||
@ -63,6 +64,8 @@ declare namespace Konva {
|
||||
export type Transform = import('./Util').Transform;
|
||||
|
||||
export const Util: typeof import('./Util').Util;
|
||||
export const Factory: typeof import('./Factory').Factory;
|
||||
export const Validators: typeof import('./Validators');
|
||||
|
||||
export const Context: typeof import('./Context').Context;
|
||||
export type Context = import('./Context').Context;
|
||||
|
Loading…
Reference in New Issue
Block a user