mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e60df0b47 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-excalidraw-plugin",
|
"id": "obsidian-excalidraw-plugin",
|
||||||
"name": "Excalidraw",
|
"name": "Excalidraw",
|
||||||
"version": "2.14.1",
|
"version": "2.14.1-beta-2",
|
||||||
"minAppVersion": "1.5.7",
|
"minAppVersion": "1.5.7",
|
||||||
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
||||||
"author": "Zsolt Viczian",
|
"author": "Zsolt Viczian",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-excalidraw-plugin",
|
"id": "obsidian-excalidraw-plugin",
|
||||||
"name": "Excalidraw",
|
"name": "Excalidraw",
|
||||||
"version": "2.14.1",
|
"version": "2.14.0",
|
||||||
"minAppVersion": "1.5.7",
|
"minAppVersion": "1.5.7",
|
||||||
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
||||||
"author": "Zsolt Viczian",
|
"author": "Zsolt Viczian",
|
||||||
|
|||||||
Generated
+4
-4
@@ -11,7 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"@zsviczian/colormaster": "^1.2.2",
|
"@zsviczian/colormaster": "^1.2.2",
|
||||||
"@zsviczian/excalidraw": "0.18.0-27",
|
"@zsviczian/excalidraw": "0.18.0-25",
|
||||||
"chroma-js": "^3.1.2",
|
"chroma-js": "^3.1.2",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"es6-promise-pool": "2.5.0",
|
"es6-promise-pool": "2.5.0",
|
||||||
@@ -3494,9 +3494,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@zsviczian/excalidraw": {
|
"node_modules/@zsviczian/excalidraw": {
|
||||||
"version": "0.18.0-27",
|
"version": "0.18.0-25",
|
||||||
"resolved": "https://registry.npmjs.org/@zsviczian/excalidraw/-/excalidraw-0.18.0-27.tgz",
|
"resolved": "https://registry.npmjs.org/@zsviczian/excalidraw/-/excalidraw-0.18.0-25.tgz",
|
||||||
"integrity": "sha512-cigzCO65+EB+Y4G9LYEK/kVf2R3nNqNjEhGWqi5tZ0AcHEKPsMHAn6CtU36V6crRdojZLtyg5RASIdkxy4zZCA==",
|
"integrity": "sha512-aZKkzm1ENNUpwf9ANR+RA34fk2FYZNheHWNFj9CkNig/28bsS/MSVntWJNbk1qcqEQOdxhJkRhVN6NYlUtAZjA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@braintree/sanitize-url": "6.0.2",
|
"@braintree/sanitize-url": "6.0.2",
|
||||||
"@excalidraw/random-username": "1.1.0",
|
"@excalidraw/random-username": "1.1.0",
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"@zsviczian/excalidraw": "0.18.0-28",
|
"@zsviczian/excalidraw": "0.18.0-27",
|
||||||
"chroma-js": "^3.1.2",
|
"chroma-js": "^3.1.2",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"@zsviczian/colormaster": "^1.2.2",
|
"@zsviczian/colormaster": "^1.2.2",
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ export const obsidianToExcalidrawMap: { [key: string]: string } = {
|
|||||||
export let {
|
export let {
|
||||||
sceneCoordsToViewportCoords,
|
sceneCoordsToViewportCoords,
|
||||||
viewportCoordsToSceneCoords,
|
viewportCoordsToSceneCoords,
|
||||||
determineFocusDistance,
|
|
||||||
intersectElementWithLine,
|
intersectElementWithLine,
|
||||||
getCommonBoundingBox,
|
getCommonBoundingBox,
|
||||||
getMaximumGroups,
|
getMaximumGroups,
|
||||||
@@ -120,7 +119,6 @@ export function updateExcalidrawLib() {
|
|||||||
const requiredFunctions = [
|
const requiredFunctions = [
|
||||||
'sceneCoordsToViewportCoords',
|
'sceneCoordsToViewportCoords',
|
||||||
'viewportCoordsToSceneCoords',
|
'viewportCoordsToSceneCoords',
|
||||||
'determineFocusDistance',
|
|
||||||
'intersectElementWithLine',
|
'intersectElementWithLine',
|
||||||
'getCommonBoundingBox',
|
'getCommonBoundingBox',
|
||||||
'measureText',
|
'measureText',
|
||||||
@@ -138,7 +136,6 @@ export function updateExcalidrawLib() {
|
|||||||
({
|
({
|
||||||
sceneCoordsToViewportCoords,
|
sceneCoordsToViewportCoords,
|
||||||
viewportCoordsToSceneCoords,
|
viewportCoordsToSceneCoords,
|
||||||
determineFocusDistance,
|
|
||||||
intersectElementWithLine,
|
intersectElementWithLine,
|
||||||
getCommonBoundingBox,
|
getCommonBoundingBox,
|
||||||
getMaximumGroups,
|
getMaximumGroups,
|
||||||
|
|||||||
@@ -419,8 +419,7 @@ FILENAME_HEAD: "文件名",
|
|||||||
SHOW_DRAWING_OR_MD_IN_HOVER_PREVIEW_DESC:
|
SHOW_DRAWING_OR_MD_IN_HOVER_PREVIEW_DESC:
|
||||||
"...即使文件具有 `<b>excalidraw-open-md: true</b>` frontmatter 属性。<br>" +
|
"...即使文件具有 `<b>excalidraw-open-md: true</b>` frontmatter 属性。<br>" +
|
||||||
"当此设置关闭且文件默认设置为以 md 格式打开时,悬停预览将显示文档的 Markdown 部分(背景笔记)。" +
|
"当此设置关闭且文件默认设置为以 md 格式打开时,悬停预览将显示文档的 Markdown 部分(背景笔记)。" +
|
||||||
"<br>" +
|
"",
|
||||||
"注意:<b>excalidraw-open-md</b> 与 <b>excalidraw-embed-md</b> 是不同的。如果 <b>excalidraw-embed-md</b> 设置为 true,则悬停预览始终显示 markdown 部分,而不受此设置影响。要在嵌入时强制图像渲染,请在你的 markdown 文件中使用 <code>![[drawing#^as-image]]</code>。" ,
|
|
||||||
SHOW_DRAWING_OR_MD_IN_READING_MODE_NAME: "Excalidraw 文件在 Markdown 阅读模式下渲染为图片",
|
SHOW_DRAWING_OR_MD_IN_READING_MODE_NAME: "Excalidraw 文件在 Markdown 阅读模式下渲染为图片",
|
||||||
SHOW_DRAWING_OR_MD_IN_READING_MODE_DESC:
|
SHOW_DRAWING_OR_MD_IN_READING_MODE_DESC:
|
||||||
"当您处于 Markdown 阅读模式(即查看绘图的背景笔记)时,Excalidraw 绘图是否应该渲染为图像?" +
|
"当您处于 Markdown 阅读模式(即查看绘图的背景笔记)时,Excalidraw 绘图是否应该渲染为图像?" +
|
||||||
|
|||||||
@@ -18,16 +18,15 @@ I build this plugin in my free time, as a labor of love. Curious about the philo
|
|||||||
<div class="ex-coffee-div"><a href="https://ko-fi.com/zsolt"><img src="https://storage.ko-fi.com/cdn/kofi6.png?v=6" border="0" alt="Buy Me a Coffee at ko-fi.com" height=45></a></div>
|
<div class="ex-coffee-div"><a href="https://ko-fi.com/zsolt"><img src="https://storage.ko-fi.com/cdn/kofi6.png?v=6" border="0" alt="Buy Me a Coffee at ko-fi.com" height=45></a></div>
|
||||||
`,
|
`,
|
||||||
"2.14.1":`
|
"2.14.1":`
|
||||||
## Fixed
|
|
||||||
- Excalidraw broke Obsidian's UI in Arabic, Persian, and Hebrew due to LTR, RTL conflict. [#2423](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/2423)
|
|
||||||
- Styling issues impacting native Obsidian search/replace dialogs. [#2420](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/2420)
|
|
||||||
- Now using native Obsidian attachment location function. 🙏 [mnaoumov](https://github.com/mnaoumov) [#2421](https://github.com/zsviczian/obsidian-excalidraw-plugin/pull/2421), potentially fixes [#179](https://github.com/RainCat1998/obsidian-custom-attachment-location/issues/179) of the Obsidian Custom Attachment Location plugin issue.
|
|
||||||
|
|
||||||
## New
|
## New
|
||||||
- New frontmatter option \`excalidraw-embed-md\`. When set to \`true\`, embedding the drawing into a markdown note will render the "back of the note" (its markdown content) instead of rendering it as an image.
|
- New frontmatter option \`excalidraw-embed-md\`. When set to \`true\`, embedding this Excalidraw file into another markdown file will display its markdown content (the "back of the note") instead of rendering it as an image.
|
||||||
- If you want to always display the drawing as an image, even when \`excalidraw-embed-md\` is enabled, use the special embed syntax: \`![[drawing#^as-image]]\`. Here, \`as-image\` is a phantom block reference that forces image rendering.
|
- If you want to always display the drawing as an image, even when \`excalidraw-embed-md\` is enabled, use the special embed syntax: \`![[drawing#^as-image]]\`. Here, \`as-image\` is a phantom block reference that forces image rendering.
|
||||||
- Added Spanish translation by [@Joakim31](https://github.com/Joakim31) [#2425](https://github.com/zsviczian/obsidian-excalidraw-plugin/pull/2425)
|
- Added Spanish translation by [@Joakim31](https://github.com/Joakim31) [#2425](https://github.com/zsviczian/obsidian-excalidraw-plugin/pull/2425)
|
||||||
- Incremental minor updates from the main [Excalidraw project](https://github.com/excalidraw/excalidraw).
|
- Incremental minor updates from the main [Excalidraw project](https://github.com/excalidraw/excalidraw).
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
- Styling issues impacting native Obsidian search/replace dialogs. [#2420](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/2420)
|
||||||
|
- Now using native Obsidian attachment location function. 🙏 [mnaoumov](https://github.com/mnaoumov) [#2421](https://github.com/zsviczian/obsidian-excalidraw-plugin/pull/2421), potentially fixes [#179](https://github.com/RainCat1998/obsidian-custom-attachment-location/issues/179) of the Obsidian Custom Attachment Location plugin issue.
|
||||||
`,
|
`,
|
||||||
"2.14.0":`
|
"2.14.0":`
|
||||||
## A Big "Small" Update
|
## A Big "Small" Update
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import {
|
|||||||
COLOR_NAMES,
|
COLOR_NAMES,
|
||||||
fileid,
|
fileid,
|
||||||
GITHUB_RELEASES,
|
GITHUB_RELEASES,
|
||||||
determineFocusDistance,
|
|
||||||
getCommonBoundingBox,
|
getCommonBoundingBox,
|
||||||
getLineHeight,
|
getLineHeight,
|
||||||
getMaximumGroups,
|
getMaximumGroups,
|
||||||
@@ -1745,26 +1744,12 @@ export class ExcalidrawAutomate {
|
|||||||
lastCommittedPoint: null,
|
lastCommittedPoint: null,
|
||||||
startBinding: {
|
startBinding: {
|
||||||
elementId: formatting?.startObjectId,
|
elementId: formatting?.startObjectId,
|
||||||
focus: formatting?.startObjectId
|
focus: 0.1,
|
||||||
? determineFocusDistance(
|
|
||||||
this.getElement(formatting?.startObjectId) as ExcalidrawBindableElement,
|
|
||||||
elementsMap,
|
|
||||||
endPoint,
|
|
||||||
startPoint,
|
|
||||||
)
|
|
||||||
: 0.1,
|
|
||||||
gap: GAP,
|
gap: GAP,
|
||||||
},
|
},
|
||||||
endBinding: {
|
endBinding: {
|
||||||
elementId: formatting?.endObjectId,
|
elementId: formatting?.endObjectId,
|
||||||
focus: formatting?.endObjectId
|
focus: 0.1,
|
||||||
? determineFocusDistance(
|
|
||||||
this.getElement(formatting?.endObjectId) as ExcalidrawBindableElement,
|
|
||||||
elementsMap,
|
|
||||||
startPoint,
|
|
||||||
endPoint,
|
|
||||||
)
|
|
||||||
: 0.1,
|
|
||||||
gap: GAP,
|
gap: GAP,
|
||||||
},
|
},
|
||||||
//https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/388
|
//https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/388
|
||||||
|
|||||||
Vendored
-7
@@ -106,13 +106,6 @@ declare namespace ExcalidrawLib {
|
|||||||
},
|
},
|
||||||
): { x: number; y: number };
|
): { x: number; y: number };
|
||||||
|
|
||||||
function determineFocusDistance(
|
|
||||||
element: ExcalidrawBindableElement,
|
|
||||||
elementsMap: ElementsMap,
|
|
||||||
a: GlobalPoint,
|
|
||||||
b: GlobalPoint,
|
|
||||||
): number;
|
|
||||||
|
|
||||||
function intersectElementWithLine(
|
function intersectElementWithLine(
|
||||||
element: ExcalidrawBindableElement,
|
element: ExcalidrawBindableElement,
|
||||||
a: GlobalPoint,
|
a: GlobalPoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user