mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
* Clean up Vue initialization-related code * Rename folder: dispatcher -> interop * Rename folder: state -> providers * Comments and clarification * Rename JS dispatcher to subscription router * Assorted cleanup and renaming * Rename: js-messages.ts -> messages.ts * Comments * Remove unused Vue component injects * Clean up coming soon and add warning about freezing the app * Further cleanup * Dangerous changes * Simplify App.vue code * Move more disparate init code from components into managers * Rename folder: providers -> state-providers * Other * Move Document panel options bar separator to backend * Add destructors to managers to fix HMR * Comments and code style * Rename variable: font -> font_file_url * Fix async font loading; refactor janky floating menu openness and min-width measurement; fix Vetur errors * Fix misaligned canvas in viewport until panning on page (re)load * Add Vue bidirectional props documentation * More folder renaming for better terminology; add some documentation
24 lines
937 B
TypeScript
24 lines
937 B
TypeScript
import { type RGBA as RGBA_ } from "@/wasm-communication/messages";
|
|
|
|
import FloatingMenu from "@/components/widgets/floating-menus/FloatingMenu.vue";
|
|
import MenuList from "@/components/widgets/floating-menus/MenuList.vue";
|
|
|
|
// TODO: When a Volar bug is fixed (likely in v0.34.16):
|
|
// TODO: - Uncomment this block
|
|
// TODO: - Remove the `MenuList` and `FloatingMenu` lines from the `declare global` section below
|
|
// TODO: - And possibly add the empty export line of code `export {};` to the bottom of this file, for some reason
|
|
// declare module "vue" {
|
|
// interface ComponentCustomProperties {
|
|
// const MenuList: MenuList;
|
|
// const FloatingMenu: FloatingMenu;
|
|
// }
|
|
// }
|
|
|
|
// Satisfies Volar
|
|
// TODO: Move this back into `DropdownInput.vue` and `SwatchPairInput.vue` after https://github.com/johnsoncodehk/volar/issues/1321 is fixed
|
|
declare global {
|
|
const MenuList: MenuList;
|
|
const FloatingMenu: FloatingMenu;
|
|
type RGBA = RGBA_;
|
|
}
|