temp add fonts

This commit is contained in:
2025-03-27 19:54:22 +08:00
parent 8ee288e06a
commit a12d23be73
244 changed files with 117 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ import { StoreContextProvider } from '@kevisual/store/react';
import { LineChart } from 'lucide-react';
import { useShallow } from 'zustand/shallow';
import { Core } from './core/Excalidraw';
import { OrderedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
export const DrawLayout = ({ children }: { children: React.ReactNode }) => {
return (
<StoreContextProvider id='draw'>
@@ -17,8 +16,8 @@ export const DrawLayout = ({ children }: { children: React.ReactNode }) => {
export const Draw = () => {
useLayoutEffect(() => {
// @ts-ignore
window.EXCALIDRAW_ASSET_PATH = 'https://esm.sh/@excalidraw/excalidraw@0.18.0/dist/prod/';
// window.EXCALIDRAW_ASSET_PATH = '/';
// window.EXCALIDRAW_ASSET_PATH = 'https://esm.sh/@excalidraw/excalidraw@0.18.0/dist/prod/';
window.EXCALIDRAW_ASSET_PATH = '/';
}, []);
return (
<DrawLayout>