Tom
fc95bb8f18
add onLinkHandler experimental
2022-04-19 00:21:29 +02:00
Tom
cb88f316db
basic share view render (css wrong)
2022-04-19 00:21:29 +02:00
Tom
d3e86acfaa
explain checkFullHeight() due to missleading name
2022-04-19 00:21:29 +02:00
Tom
9771b441ad
missing path2d support for freedawings, remove node-side rendering, allow async getContent()
...
* ## Excalidraw and SVG
* 2022-04-16 - @thfrei
*
* Known issues:
* - excalidraw-to-svg (node.js) does not render any hand drawn (freedraw) paths. There is an issue with
* Path2D object not present in node-canvas library used by jsdom. (See Trilium PR for samples and other issues
* in respective library. Link will be added later). Related links:
* - https://github.com/Automattic/node-canvas/pull/2013
* - https://github.com/google/canvas-5-polyfill
* - https://github.com/Automattic/node-canvas/issues/1116
* - https://www.npmjs.com/package/path2d-polyfill
* - excalidraw-to-svg (node.js) takes quite some time to load an image (1-2s)
* - excalidraw-utils (browser) does render freedraw, however NOT freedraw with background
*
* Due to this issues, we opt to use **only excalidraw in the frontend**. Upon saving, we will also get the SVG
* output from the live excalidraw instance. We will save this **SVG side by side the native excalidraw format
* in the trilium note**.
*
* Pro: we will combat bit-rot. Showing the SVG will be very fast, since it is already rendered.
* Con: The note will get bigger (maybe +30%?), we will generate more bandwith.
* (However, using trilium desktop instance, does not care too much about bandwidth. Size increase is probably
* acceptable, as a trade off.)
2022-04-19 00:21:20 +02:00
Tom Free
a8655fcd27
add canvas-note-type at some missing places after rebase
2022-04-19 00:20:21 +02:00
Tom
82e278a2a2
add comment about excalidraw-error message on insert
2022-04-19 00:13:27 +02:00
Thomas Frei
b14b7b6ad1
add _meta to note, in case it got changed to type json
2022-04-19 00:13:27 +02:00
Thomas Frei
32aa7bb540
ensure that fresh note has empty scene, no bleeding
2022-04-19 00:13:27 +02:00
Thomas Frei
300f4ad357
remove obsolete comments / code
2022-04-19 00:13:27 +02:00
Tom
cf6b5c3b6e
ensure only active/referenced files are saved
2022-04-19 00:13:27 +02:00
Tom
f1c9dda366
make sure nothing breaks on fresh empty note or note that has already content
2022-04-19 00:13:27 +02:00
Tom
afe2a03aef
fix initial load and safe issue by storing noteId
2022-04-19 00:13:27 +02:00
Tom
272bb136d8
make canvas_note height 100%
2022-04-19 00:13:27 +02:00
Tom
15a3b42124
remove some debug/testing code
2022-04-19 00:13:26 +02:00
Tom
4266156cee
fix curser mismatch by manually setting offset
2022-04-19 00:13:26 +02:00
Tom
45a66ab694
some notes about loading and container width
2022-04-19 00:13:26 +02:00
Tom
49f4ce7149
example for trilium image-link usage and svg export
2022-04-19 00:13:26 +02:00
Tom
220df662ad
make pasted images in excalidraw work (save and load "files")
2022-04-19 00:13:26 +02:00
Tom
6e535bac05
ensure isNewSceneVersion() does not increment currentVersion
2022-04-19 00:13:26 +02:00
Tom
3b1dcc7199
compare sceneVersion to omit unnecessary save/reloads of content
2022-04-19 00:13:26 +02:00
Tom
ae75ac424f
add noteid to console to differentiate logs
2022-04-19 00:13:26 +02:00
Tom
5c46fe792d
use widget element to render for multiple excalidraw instances
2022-04-19 00:13:26 +02:00
Tom
a33b0f1e1c
updated react unmounting
2022-04-19 00:13:26 +02:00
Tom
bd28ed07d7
working canvas_note PoC save and load for one note
2022-04-19 00:13:26 +02:00
Tom
12185fbd32
optimized canvas placement in trilium
2022-04-19 00:13:26 +02:00
Tom
da84d16421
excalidraw include works, removed infinitedrawingcanvas
2022-04-19 00:13:26 +02:00
thfrei
53666cbfe8
lint
2022-04-19 00:13:26 +02:00
thfrei
8897d98bd9
add note-detail height to make canvas visible
...
due to some upstream changes, this was necessary.
otherwise complete inside container was not visible.
2022-04-19 00:13:26 +02:00
thfrei
93e485cea9
remove console.image
2022-04-19 00:13:26 +02:00
thfrei
22363f5b74
working trilium canvas note
2022-04-19 00:13:26 +02:00
thfrei
2a2c82cd29
minor update for canvas
2022-04-19 00:13:26 +02:00
thfrei
5ebe717da8
basic infinite-drawing-canvas integration
2022-04-19 00:13:26 +02:00
Tom Free
a894c19c2b
add missing canvas-note entries in helper functions
...
Conflicts:
src/public/app/entities/note_short.js
src/public/app/services/tree_context_menu.js
2022-04-19 00:13:26 +02:00
Tom Free
0469962c5e
wip: canvas-note patch
...
Conflicts:
src/public/app/services/library_loader.js
src/public/app/services/tree_context_menu.js
src/public/app/widgets/note_actions.js
src/services/consistency_checks.js
src/services/utils.js
2022-04-19 00:13:26 +02:00
zadam
f7d6bda49d
added zooming/panning to mermaid diagrams, closes #2635
2022-04-03 23:14:47 +02:00
zadam
e00fcd93a1
added #shareDisallowRobotIndexing label and reworked how the child-image exclusion works
2022-03-22 23:17:47 +01:00
zadam
091d6a1cf1
added #shareRaw label
2022-03-22 21:20:47 +01:00
zadam
a21c49cba7
added "hideRelations" label to relation map
2022-02-05 13:02:19 +01:00
zadam
91e3dd022a
added "move note" search action
2022-02-05 12:06:23 +01:00
zadam
478eca47f4
search string is now a textarea instead of input
2022-02-05 11:27:48 +01:00
zadam
61aa029582
Merge remote-tracking branch 'origin/stable'
...
# Conflicts:
# package-lock.json
2022-02-01 21:04:17 +01:00
zadam
46eaa63625
focus promoted/owned attributes input after activating the ribbon tab, closes #2606
2022-02-01 20:24:58 +01:00
zadam
3055ed86ec
Merge remote-tracking branch 'origin/stable'
2022-01-17 23:48:44 +01:00
zadam
52b118df7f
add #shareRoot label to define an "index" note, closes #2567
2022-01-17 23:13:56 +01:00
zadam
a97a7cdcdd
fix note title refreshing with old state when user quickly skips to content and starts editing, closes #2566
2022-01-17 20:54:57 +01:00
zadam
4933b901f6
Merge remote-tracking branch 'origin/stable'
2022-01-14 21:53:00 +01:00
zadam
77c6c4617b
changed shared_info class names to avoid conflict with adblocker, closes #2546
2022-01-14 21:23:10 +01:00
zadam
8240a208dd
fixed wrong cherry pick
2022-01-14 21:05:39 +01:00
zadam
1c34f73f61
print should include promoted attributes, #2550
...
(cherry picked from commit a5444fd6ad8e7af62799146acb85bee9f43231a0)
2022-01-14 21:03:21 +01:00
zadam
a5444fd6ad
print should include promoted attributes, #2550
2022-01-14 21:02:11 +01:00