From 33a1b5d57c580cf34faec281aba5addecb3de324 Mon Sep 17 00:00:00 2001 From: cruldra Date: Sun, 27 Sep 2026 19:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(prototype):=20?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=20Figma=20=E9=87=8C=E7=9A=84=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E5=AD=97=E7=AC=A6=E8=8C=83=E5=9B=B4=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E8=BD=AC=E4=B9=89=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/prototype/figma-lab/fake-figma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/prototype/figma-lab/fake-figma.js b/docs/prototype/figma-lab/fake-figma.js index 1290365..8d3ed18 100644 --- a/docs/prototype/figma-lab/fake-figma.js +++ b/docs/prototype/figma-lab/fake-figma.js @@ -32,7 +32,7 @@ function fakeFigma(options = {}) { }; const dirty = (node) => { mark(node, ++stamp); }; const fontKey = (font) => `${font.family}/${font.style}`; - const cjk = /[ -鿿＀-￯]/; + const cjk = /[\u3000-\u9fff\uff00-\uffef]/; const textWidth = (node) => { let width = 0; for (const char of node._characters) width += cjk.test(char) ? node.fontSize : node.fontSize * 0.55;