mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
1.5.19
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-excalidraw-plugin",
|
||||
"name": "Excalidraw",
|
||||
"version": "1.5.18",
|
||||
"version": "1.5.19",
|
||||
"minAppVersion": "0.12.16",
|
||||
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
||||
"author": "Zsolt Viczian",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@zsviczian/excalidraw": "0.10.0-obsidian-34",
|
||||
"@zsviczian/excalidraw": "0.10.0-obsidian-35",
|
||||
"monkey-around": "^2.2.0",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
|
||||
@@ -824,7 +824,6 @@ export default class ExcalidrawView extends TextFileView {
|
||||
: this.excalidrawAPI.getAppState().zenModeEnabled;
|
||||
//debug({where:"ExcalidrawView.loadDrawing",file:this.file.name,dataTheme:excalidrawData.appState.theme,before:"updateScene"})
|
||||
this.excalidrawAPI.setLocalFont(
|
||||
this.plugin.fourthFontDataURL,
|
||||
this.plugin.settings.experimentalEnableFourthFont
|
||||
);
|
||||
|
||||
@@ -1076,7 +1075,6 @@ export default class ExcalidrawView extends TextFileView {
|
||||
//console.log({where:"ExcalidrawView.React.ReadyPromise"});
|
||||
//debug({where:"ExcalidrawView.React.useEffect",file:this.file.name,before:"this.loadSceneFiles"});
|
||||
this.excalidrawAPI.setLocalFont(
|
||||
this.plugin.fourthFontDataURL,
|
||||
this.plugin.settings.experimentalEnableFourthFont
|
||||
);
|
||||
|
||||
|
||||
@@ -123,7 +123,6 @@ export default class ExcalidrawPlugin extends Plugin {
|
||||
public mathjax: any = null;
|
||||
private mathjaxDiv: HTMLDivElement = null;
|
||||
public scriptEngine: ScriptEngine;
|
||||
public fourthFontDataURL: string = VIRGIL_DATAURL;
|
||||
public fourthFontDef: string = VIRGIL_FONT;
|
||||
constructor(app: App, manifest: PluginManifest) {
|
||||
super(app, manifest);
|
||||
@@ -194,14 +193,14 @@ export default class ExcalidrawPlugin extends Plugin {
|
||||
public initializeFourthFont() {
|
||||
this.app.workspace.onLayoutReady(async() => {
|
||||
const font = (await getFontDataURL(this.app,this.settings.experimantalFourthFont,"","LocalFont"));
|
||||
this.fourthFontDataURL = font.dataURL === "" ? VIRGIL_DATAURL : font.dataURL;
|
||||
const fourthFontDataURL = font.dataURL === "" ? VIRGIL_DATAURL : font.dataURL;
|
||||
this.fourthFontDef = font.fontDef
|
||||
const newStylesheet = document.createElement("style");
|
||||
newStylesheet.id = "local-font-stylesheet";
|
||||
newStylesheet.textContent = `
|
||||
@font-face {
|
||||
font-family: 'LocalFont';
|
||||
src: url("${font}");
|
||||
src: url("${fourthFontDataURL}");
|
||||
font-display: swap;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"1.5.18": "0.12.16",
|
||||
"1.5.19": "0.12.16",
|
||||
"1.4.2": "0.11.13"
|
||||
}
|
||||
|
||||
@@ -1232,10 +1232,10 @@
|
||||
"@typescript-eslint/types" "5.6.0"
|
||||
"eslint-visitor-keys" "^3.0.0"
|
||||
|
||||
"@zsviczian/excalidraw@0.10.0-obsidian-34":
|
||||
"integrity" "sha512-I4oDgvTq64REssawUrucdk+6f2GQR1/nblQLyGJNtopmGg9KiLM88y7M89Tc7VLQSRVxpFBtRPB/1URHC/b7Jg=="
|
||||
"resolved" "https://registry.npmjs.org/@zsviczian/excalidraw/-/excalidraw-0.10.0-obsidian-34.tgz"
|
||||
"version" "0.10.0-obsidian-34"
|
||||
"@zsviczian/excalidraw@0.10.0-obsidian-35":
|
||||
"integrity" "sha512-ENNMBqXb1keqZzOlyaMswmpOBh+Drr7EeuZ9sp4psdtFbjHyS3ZmPpQ9EIZEcFd75sbciK2Klu439/ioogC+Yg=="
|
||||
"resolved" "https://registry.npmjs.org/@zsviczian/excalidraw/-/excalidraw-0.10.0-obsidian-35.tgz"
|
||||
"version" "0.10.0-obsidian-35"
|
||||
dependencies:
|
||||
"dotenv" "10.0.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user