@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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ankhzet/graph
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Remove deprecated forwardRef
8
+
9
+ ## 0.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @ankhzet/ui@0.3.0
15
+ - @ankhzet/utils@1.19.0
16
+
3
17
  ## 0.3.0
4
18
 
5
19
  ### Minor Changes
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: ForwardRefExoticComponent<ViewportProps & RefAttributes<unknown>>;
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;