Removed classcat and reworked class types from string to ClassValue
This commit is contained in:
@@ -155,9 +155,9 @@ export const getInitialStore = (signals: StoreSignals) => {
|
||||
};
|
||||
});
|
||||
|
||||
domNode: HTMLDivElement | null = $derived(signals.domNode ?? null);
|
||||
width: number = $derived(signals.width ?? signals.props.width ?? 0);
|
||||
height: number = $derived(signals.height ?? signals.props.height ?? 0);
|
||||
domNode = $state<HTMLDivElement | null>(null);
|
||||
width = $state<number>(signals.width ?? 0);
|
||||
height = $state<number>(signals.height ?? 0);
|
||||
|
||||
flowId: string = $derived(signals.props.id ?? '1');
|
||||
minZoom: number = $derived(signals.props.minZoom ?? 0.5);
|
||||
|
||||
@@ -39,7 +39,6 @@ export type SvelteFlowStoreActions = {
|
||||
|
||||
export type StoreSignals = {
|
||||
props: Partial<SvelteFlowProps>;
|
||||
domNode?: HTMLDivElement;
|
||||
width?: number;
|
||||
height?: number;
|
||||
nodes: Node[];
|
||||
|
||||
Reference in New Issue
Block a user