From 11526f2db242cc74003242d4a14f19b8cdc1bca8 Mon Sep 17 00:00:00 2001 From: Zhilin Liu Date: Thu, 8 Feb 2024 00:28:28 +0800 Subject: [PATCH] feat: basic WordArt (#90) * feat: basic WordArt * fix: onmounted --- src/App.vue | 6 ++ src/BlockHub/BlockHub.ts | 2 + src/BlockHub/WordArtBlock/WordArt.vue | 84 ++++++++++++++++++ src/BlockHub/WordArtBlock/WordArtBlock.ts | 17 ++++ src/BlockHub/WordArtBlock/buffer.ts | 47 ++++++++++ src/BlockHub/WordArtBlock/shader.ts | 67 ++++++++++++++ src/BlockHub/WordArtBlock/textToPositions.ts | 38 ++++++++ src/Const/block.ts | 6 ++ src/Font/RobotoMono-Bold.ttf | Bin 0 -> 87392 bytes src/Font/loadFont.ts | 8 ++ src/Lang/Locale/en-US/ToolBar.json | 3 + src/Lang/Locale/zh-CN/ToolBar.json | 3 + .../ToolBar/components/Insert/Insert.vue | 2 + .../components/Insert/components/WordArt.vue | 23 +++++ tsconfig.json | 1 + vite.config.ts | 1 + 16 files changed, 308 insertions(+) create mode 100644 src/BlockHub/WordArtBlock/WordArt.vue create mode 100644 src/BlockHub/WordArtBlock/WordArtBlock.ts create mode 100644 src/BlockHub/WordArtBlock/buffer.ts create mode 100644 src/BlockHub/WordArtBlock/shader.ts create mode 100644 src/BlockHub/WordArtBlock/textToPositions.ts create mode 100644 src/Font/RobotoMono-Bold.ttf create mode 100644 src/Font/loadFont.ts create mode 100644 src/UserInterface/ToolBar/components/Insert/components/WordArt.vue diff --git a/src/App.vue b/src/App.vue index 04b9890..b1ee88d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,11 @@