Skip to content

Commit

Permalink
Merge pull request #17 from t-mart/svg-element
Browse files Browse the repository at this point in the history
Include SVGElement in types
  • Loading branch information
fedorovvvv authored Jul 15, 2024
2 parents 0049b50 + 3e16bad commit 80140b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export type ComputeConfig = Partial<ComputePositionConfig> & {
autoUpdate?: boolean | Partial<AutoUpdateOptions>
};
export type UpdatePosition = (contentOptions?: Omit<ComputeConfig, 'autoUpdate'>) => void;
export type ReferenceAction = (node: HTMLElement | Writable<VirtualElement> | VirtualElement) => void;
export type ContentAction = (node: HTMLElement, contentOptions?: ComputeConfig) => void;
export type ArrowOptions = { padding?: Padding, element: Writable<HTMLElement | undefined | null> };
export type ReferenceAction = (node: HTMLElement | SVGElement | Writable<VirtualElement> | VirtualElement) => void;
export type ContentAction = (node: HTMLElement | SVGElement, contentOptions?: ComputeConfig) => void;
export type ArrowOptions = { padding?: Padding, element: Writable<HTMLElement | SVGElement | undefined | null> };

export function createFloatingActions(initOptions?: ComputeConfig): [ReferenceAction, ContentAction, UpdatePosition] {
let referenceElement: ReferenceElement;
Expand Down

0 comments on commit 80140b8

Please sign in to comment.