zadam
078fc420b0
findwidget merge from upstream
2022-05-14 21:06:14 +02:00
zadam
8ec814c29f
Merge branch 'master' into custom-search-dialog
...
# Conflicts:
# docs/frontend_api/FrontendScriptApi.html
# package-lock.json
# package.json
2022-05-14 20:50:43 +02:00
zadam
8df3b0a5bd
Merge branch 'master' into excalidraw
2022-05-12 23:46:52 +02:00
Tom
1cbf918024
update comment and discussion about canvas note
2022-05-11 09:29:54 +02:00
Tom
3491e71084
handle note.type changing
2022-05-10 13:53:50 +02:00
Tom
c85f70e197
remove obsolete errorSvg
2022-05-10 13:47:43 +02:00
Tom
3df712b64f
refactor canvas-note to canvas
2022-05-10 13:43:05 +02:00
Tom
160bd0a790
remove commented logs to clean up code
2022-05-10 13:32:25 +02:00
Tom
81e0c6dcc2
simplify code
2022-05-10 13:29:24 +02:00
Tom
11bd48a1b5
rename ExcalidrawReactApp() to createExcalidrawReactApp()
2022-05-10 13:28:14 +02:00
Tom
61657087f5
move debounce to library, remove unnecessary binds, replaceassets only for canvas
2022-05-10 13:26:29 +02:00
zadam
87f436c6ea
search dialog WIP from custom widget from antoniotejada
2022-05-09 23:13:34 +02:00
Tom
065e4f55c3
remove logs, add explanation to collab
2022-05-09 17:25:20 +02:00
Tom
92adcf82e4
remove debug helper with uniqueId
2022-05-09 17:05:49 +02:00
Tom
06e0f2418c
remove magic constants for scene_version and give them a name
2022-05-09 17:00:24 +02:00
Tom
a168edb168
move sleep to general utisl function
2022-05-09 16:54:43 +02:00
Tom
d2975bbd21
remove obsolete comments
2022-05-09 16:47:40 +02:00
Tom
9c7f8cf5d8
extract errorSvg
2022-05-09 16:17:37 +02:00
Tom
65c725c21e
add jsdoc to indicate possibility to use getContent async
2022-05-09 16:14:03 +02:00
Tom
dfa30358c5
ensure external assets in excalidraw are avoided
2022-05-09 16:08:56 +02:00
Tom
6cae68288d
adhere to convention, prefixing jquery objects with $ and dom not
2022-05-09 15:15:07 +02:00
zadam
93cc6b12ec
added new APIs to access note detail, #2806
2022-05-03 23:25:28 +02:00
Tom
1a4bc0b989
clean up code
2022-05-03 22:06:24 +02:00
Tom
8d510a3fdd
Merge remote-tracking branch 'upstream/master' into excalidraw
...
conflict in
- package-lock (accept incoming),
- routes (remove the option to have image without filename, since it is not really necessary for canvas_note)
- note_detail
2022-05-03 21:56:52 +02:00
zadam
a9dc62505d
fix height of textarea of SQL console
2022-05-02 21:23:40 +02:00
zadam
6b61b0604a
improve hiding of edit button #2787
2022-05-01 22:44:23 +02:00
zadam
0a45b58784
fix doubling of icon tooltips, closes #2811
2022-04-24 13:23:01 +02:00
zadam
dbd312c88d
addTextToEditor appends text to the end instead of the beginning
2022-04-23 23:07:08 +02:00
zadam
11578b1bc3
fix "isActive()" detection to work well with splits, #2806
2022-04-23 23:06:42 +02:00
Tom
4e4010e15e
update styles, fix share view
2022-04-19 21:46:25 +02:00
Tom
6bdaf050c5
replace excalidraw.com asset in svg with EXCALIDRAW_ASSET_PATH, clean up code
2022-04-19 14:39:53 +02:00
Tom
2441515666
set EXCALIDRAW_ASSET_PATH to avoid loading from unpkg.com
2022-04-19 00:21:29 +02:00
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