@ankhzet/graph 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +250 -250
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/graph/Viewport.tsx +9 -9
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { Container } from '@pixi/display';
|
|
|
5
5
|
import { DisplayObject } from '@pixi/display';
|
|
6
6
|
import { DisposableEventSource } from '@ankhzet/gcl';
|
|
7
7
|
import { Disposer } from '@ankhzet/gcl';
|
|
8
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
9
8
|
import { Graphics } from '@pixi/graphics';
|
|
10
9
|
import { IBitmapFontOptions } from '@pixi/text-bitmap';
|
|
11
10
|
import { IBitmapTextStyle } from '@pixi/text-bitmap';
|
|
@@ -15,7 +14,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
15
14
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
16
15
|
import { PropsWithChildren } from 'react';
|
|
17
16
|
import { Ref } from 'react';
|
|
18
|
-
import { RefAttributes } from 'react';
|
|
19
17
|
import { RefObject } from 'react';
|
|
20
18
|
import { TextStyle } from '@pixi/text';
|
|
21
19
|
import { TouchEvent as TouchEvent_2 } from 'react';
|
|
@@ -663,9 +661,13 @@ export declare const useDraggable: <E extends HTMLElement>(handlers: DragHandler
|
|
|
663
661
|
|
|
664
662
|
export declare function useStore<S extends StoreInterface<any>>(init: () => S): [S, S['all']];
|
|
665
663
|
|
|
666
|
-
export declare const Viewport:
|
|
664
|
+
export declare const Viewport: ({ ref, handlers, onResize, ...props }: ViewportProps) => JSX.Element;
|
|
667
665
|
|
|
668
666
|
declare interface ViewportProps {
|
|
667
|
+
ref?: Ref<{
|
|
668
|
+
reset: (pos: Position) => void;
|
|
669
|
+
element: HTMLDivElement | null;
|
|
670
|
+
}>;
|
|
669
671
|
handlers: DragHandlers;
|
|
670
672
|
onResize: (rect: {
|
|
671
673
|
width: number;
|