devstar插件
This commit is contained in:
32
node_modules/@vueuse/integrations/useDrauu.d.ts
generated
vendored
Normal file
32
node_modules/@vueuse/integrations/useDrauu.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { EventHookOn, MaybeComputedElementRef } from '@vueuse/core';
|
||||
import { Options, Drauu, Brush } from 'drauu';
|
||||
import { Ref, ShallowRef } from 'vue';
|
||||
|
||||
type UseDrauuOptions = Omit<Options, 'el'>;
|
||||
interface UseDrauuReturn {
|
||||
drauuInstance: Ref<Drauu | undefined>;
|
||||
load: (svg: string) => void;
|
||||
dump: () => string | undefined;
|
||||
clear: () => void;
|
||||
cancel: () => void;
|
||||
undo: () => boolean | undefined;
|
||||
redo: () => boolean | undefined;
|
||||
canUndo: ShallowRef<boolean>;
|
||||
canRedo: ShallowRef<boolean>;
|
||||
brush: Ref<Brush>;
|
||||
onChanged: EventHookOn;
|
||||
onCommitted: EventHookOn;
|
||||
onStart: EventHookOn;
|
||||
onEnd: EventHookOn;
|
||||
onCanceled: EventHookOn;
|
||||
}
|
||||
/**
|
||||
* Reactive drauu
|
||||
*
|
||||
* @see https://vueuse.org/useDrauu
|
||||
* @param target The target svg element
|
||||
* @param options Drauu Options
|
||||
*/
|
||||
declare function useDrauu(target: MaybeComputedElementRef, options?: UseDrauuOptions): UseDrauuReturn;
|
||||
|
||||
export { type UseDrauuOptions, type UseDrauuReturn, useDrauu };
|
Reference in New Issue
Block a user