Skip to content

Commit 4587d36

Browse files
committed
2.17.0-beta-1; 0.18.0-42
1 parent 4f4035b commit 4587d36

7 files changed

Lines changed: 42 additions & 8 deletions

File tree

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-excalidraw-plugin",
33
"name": "Excalidraw",
4-
"version": "2.16.1",
4+
"version": "2.17.0-beta-1",
55
"minAppVersion": "1.5.7",
66
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
77
"author": "Zsolt Viczian",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"license": "MIT",
2525
"dependencies": {
2626
"@popperjs/core": "^2.11.8",
27-
"@zsviczian/excalidraw": "0.18.0-41",
27+
"@zsviczian/excalidraw": "0.18.0-42",
2828
"chroma-js": "^3.1.2",
2929
"clsx": "^2.0.0",
3030
"@zsviczian/colormaster": "^1.2.2",

src/shared/Dialogs/Messages.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ I build this plugin in my free time, as a labor of love. Curious about the philo
1717
1818
<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>
1919
`,
20+
"2.17.0":`
21+
## New
22+
- Phone UI from Excalidraw.com [#9996](https://github.com/excalidraw/excalidraw/pull/9996)
23+
24+
## Fixed
25+
- side panel does not attach correctly when library is pinned [#2510](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/2510)
26+
- Fixed print area when using marker frames and printing Slideshow to PDF
27+
`,
2028
"2.16.1":`
2129
## Fixed
2230
- Based on a request from [Kevin](https://github.com/Kovah) referencing GDPR, I removed YouTube iframes from settings, scripts, etc., and replaced them with thumbnail images + links to YouTube. [#2234](https://github.com/zsviczian/obsidian-excalidraw-plugin/discussions/2234)`,

src/shared/Dialogs/PenSettingsModal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export class PenSettingsModal extends Modal {
369369
.setName(fragWithHTML(`Stroke Width <b>${ps.strokeWidth === 0 ? "Not Set" : ps.strokeWidth}</b>`))
370370
.addSlider(slider =>
371371
slider
372-
.setLimits(0,5,0.5)
372+
.setLimits(0,5,0.1)
373373
.setValue(ps.strokeWidth)
374374
.onChange(value => {
375375
this.dirty = true;
@@ -421,7 +421,7 @@ export class PenSettingsModal extends Modal {
421421
.setDesc("If the stroke has an outline, this will mean the stroke color is the outline color, and the background color is the pen stroke's fill color. If the pen does not have an outline then the pen color is the stroke color. The Fill Style setting applies to the fill style of the enclosed shape, not of the line itself. The line can only have solid fill.")
422422
.addSlider(slider =>
423423
slider
424-
.setLimits(0,8,0.5)
424+
.setLimits(0,8,0.1)
425425
.setValue(ps.penOptions.outlineWidth)
426426
.onChange(value => {
427427
this.dirty = true;

src/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,10 +1086,10 @@ export function escapeRegExp (str:string) {
10861086
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
10871087
}
10881088

1089-
export async function addYouTubeThumbnail (containerEl: HTMLElement, link:string, startAt?: number, style:string = "settings") {
1089+
export function addYouTubeThumbnail (containerEl: HTMLElement, link:string, startAt?: number, style:string = "settings") {
10901090
const wrapper = containerEl.createDiv({cls: `excalidraw-videoWrapper ${style}`});
10911091

1092-
const thumbnailUrl = await getYouTubeThumbnailLink(`https://www.youtube.com/watch?v=${link}`);
1092+
const thumbnailUrl = `https://i.ytimg.com/vi/${link}/maxresdefault.jpg`;
10931093

10941094
const anchor = wrapper.createEl("a", {
10951095
attr: {

src/view/components/menu/ObsidianMenu.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ export class ObsidianMenu {
257257

258258
public renderButton (isMobile: boolean, appState: AppState) {
259259
return (
260-
<>
260+
<div className={clsx(
261+
{
262+
"ExcalidrawObsidianMenu--mobile": isMobile,
263+
"ExcalidrawObsidianMenu": !isMobile,
264+
},
265+
)}>
261266
<label
262267
className={clsx(
263268
"ToolIcon",
@@ -288,7 +293,7 @@ export class ObsidianMenu {
288293
</label>
289294
{this.renderCustomPens(isMobile,appState)}
290295
{this.renderPinnedScriptButtons(isMobile,appState)}
291-
</>
296+
</div>
292297
);
293298
};
294299

styles.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ textarea.excalidraw-wysiwyg {
290290
}
291291

292292
.excalidraw .tray-zoom {
293+
height: var(--default-button-size);
293294
pointer-events: initial;
294295
padding-bottom: 0.05rem;
295296
padding-top: 0.05rem;
@@ -318,9 +319,11 @@ textarea.excalidraw-wysiwyg {
318319
font-size: 0.45rem !important;
319320
}
320321

322+
/*
321323
.Island > .Stack > .Stack {
322324
padding:0.2rem;
323325
}
326+
*/
324327

325328
label.color-input-container > input {
326329
max-width: 5rem;
@@ -883,4 +886,22 @@ textarea.excalidraw-wysiwyg, .excalidraw input {
883886

884887
.excalidraw .undo-redo-buttons button {
885888
width: 3em;
889+
}
890+
891+
.ExcalidrawObsidianMenu--mobile label.ToolIcon {
892+
margin-left: 4px;
893+
}
894+
895+
.ExcalidrawObsidianMenu--mobile {
896+
display: flex;
897+
flex-direction: row;
898+
flex-wrap: wrap;
899+
row-gap: 4px;
900+
justify-content: center;
901+
align-items: center;
902+
}
903+
904+
.ExcalidrawObsidianMenu {
905+
display: flex;
906+
flex-direction: column;
886907
}

0 commit comments

Comments
 (0)