12 lines
522 B
TypeScript
12 lines
522 B
TypeScript
import type { Ref, InjectionKey, ComputedRef } from "vue";
|
|
import type { DataOrientation } from "./types";
|
|
|
|
export const MOUSE_X_INJECTION_KEY = Symbol() as InjectionKey<Ref<number>>;
|
|
export const MOUSE_Y_INJECTION_KEY = Symbol() as InjectionKey<Ref<number>>;
|
|
|
|
export const MAGNIFICATION_INJECTION_KEY = Symbol() as InjectionKey<ComputedRef<number>>;
|
|
|
|
export const DISTANCE_INJECTION_KEY = Symbol() as InjectionKey<ComputedRef<number>>;
|
|
|
|
export const ORIENTATION_INJECTION_KEY = Symbol() as InjectionKey<DataOrientation>;
|