Line data Source code
1 : import { inject } from 'vue'
2 : import type { InjectionKey } from 'vue'
3 :
4 : export type AssetKind =
5 : | 'image'
6 : | 'video'
7 : | 'audio'
8 : | 'model'
9 : | 'mesh'
10 : | 'unknown'
11 :
12 2355 : export const HideLayoutFieldKey: InjectionKey<boolean> = Symbol()
13 21236 : export function useHideLayoutField(): boolean {
14 21236 : return inject(HideLayoutFieldKey, false)
15 : }
16 :
17 2355 : export const WidgetHeightKey: InjectionKey<string> = Symbol()
18 35551 : export function useWidgetHeight(): string {
19 35551 : return inject(WidgetHeightKey, 'h-(--node-widget-height)')
20 : }
|