fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// oxlint-disable typescript/no-misused-spread
|
||||
import {
|
||||
pointCenter,
|
||||
pointFrom,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// oxlint-disable typescript/no-misused-spread
|
||||
import clsx from "clsx";
|
||||
import throttle from "lodash.throttle";
|
||||
import React, { useContext } from "react";
|
||||
|
||||
@@ -10,9 +10,11 @@ export class ExcalidrawFontFace {
|
||||
|
||||
private static readonly ASSETS_FALLBACK_URL = `https://esm.sh/${
|
||||
import.meta.env.PKG_NAME
|
||||
? `${import.meta.env.PKG_NAME}@${import.meta.env.PKG_VERSION}` // is provided during package build
|
||||
: "@excalidraw/excalidraw"
|
||||
}/dist/prod/`; // fallback to the latest package version (i.e. for app)
|
||||
? // is provided during package build
|
||||
`${import.meta.env.PKG_NAME}@${import.meta.env.PKG_VERSION}`
|
||||
: // fallback to the latest package version (i.e. for app)
|
||||
"@excalidraw/excalidraw"
|
||||
}/dist/prod/`;
|
||||
|
||||
constructor(family: string, uri: string, descriptors?: FontFaceDescriptors) {
|
||||
this.urls = ExcalidrawFontFace.createUrls(uri);
|
||||
|
||||
Reference in New Issue
Block a user