charlie
b107535024
fix(pdf): add extern hints for pdfjs apis
2025-12-15 18:05:32 +08:00
Charlie
ef211a5285
enhance(pdf): assets related improvements ( #12244 )
2025-12-09 09:19:06 +08:00
An Li
584b980a97
enhance: enhance PDF reading experience. ( #12121 )
...
* enhance: enhance PDF reading experience.
- [X] Save zoom in/out scale for next opening
- [X] prevent zoom level reset when window/frame changed. fix for #4402
- [X] add a reset zoom button on the pdf toolbar, it gives an opportunity to user manually reset zoom scale to 'auto', it mimics Zotero PDF reader behavior.
- [X] Support zoom in/out with Meta/CTL + mouse wheel and track pad pinch
* enhance(pdf): allow number or string for last visit scale in debounce function
* enhance(pdf): improve scale conditions for the wheel event
---------
Co-authored-by: charlie <xyhp915@qq.com >
2025-10-04 19:35:17 +08:00
Charlie
84183068fb
enhance(dev): upgrade pdfjs ( #11914 )
...
* enhance(dev): upgrade pdfjs
* chore: upgrade shadow-cljs
2025-06-02 11:13:05 +08:00
charlie
4d0fbe11be
fix(pdf): incorrect styles for the external window pdf viewer
2025-01-11 15:47:11 +08:00
Tienson Qin
e9a5235aa3
chore: use gfun/debounce as util/debounce
2025-01-07 20:30:10 +08:00
charlie
65c16a4251
fix(pdf): ResizeObserver loop completed with undelivered notifications
2024-10-19 12:01:33 +08:00
Tienson Qin
d06eb5f8d4
fix: pdf area annotation
2024-10-08 18:51:17 +08:00
Tienson Qin
2738f2cba5
fix: page name crash
2024-09-21 07:56:43 +08:00
rcmerci
dc785a92a7
refactor: make journal-day page's uuid like this
...
00000001-2024-0620-0000-000000000000
2024-06-20 17:01:58 +08:00
charlie
c38679ff45
fix(pdf): support browser to insert pdf highlight into page blocks
2024-06-12 13:45:46 +08:00
Gabriel Horner
24c48e7a87
fix: multiple fixes related to lookup-by-name
...
- only use it for user properties
- don't use create ident fn to lookup names
- fixed get-area-block-asset-url which didn't work for db graphs without
the frontend
2024-05-02 15:16:03 -04:00
Gabriel Horner
9c5309da47
enhance: frontend consistently uses :db/ident
...
for fetching built-in properties instead of :block/name
2024-03-27 20:36:48 -04:00
Gabriel Horner
7c70f09ebe
Merge branch 'master' into feat/db
2023-11-09 11:30:15 -05:00
charlie
9e9ae5c6f4
enhance(pdf): remove invalid highlight selection range rects
2023-11-02 17:47:52 +08:00
Tienson Qin
cb93cc3e9a
Merge branch 'master' into feat/db
2023-08-15 13:42:37 +08:00
Konstantinos Kaloutas
5d9861a510
upgrade pdfjs
2023-08-04 11:17:30 +08:00
Gabriel Horner
791bd90d88
Fix frontend code breaking a deps library again
...
Please run `yarn test` in a dep to ensure it still works /cc
@tiensonqin. See 84b80e8b76 for previous
examples
2023-08-01 11:18:10 -04:00
Gabriel Horner
fef07fe812
Add docs and workflow for dep
...
Also rename dep to publishing for consistency with existing names
2023-04-09 23:13:33 +08:00
Gabriel Horner
5186070248
Finish migration of publishing to deps
...
* Frontend and cmdline version use the same fns!
* Add docstrings and db tests
* Fix bug with intermittently failing asset copies
* Move publish cli to scripts since publish-spa shouldn't have graph-parser dependency
* Fix parse-graph bug noticed while testing publishing
2023-04-09 23:13:33 +08:00
Adam
6f45107408
fix: incorrect page title when 'hls__' is opened ( #8697 )
...
* dev: move 'hls-file?' to pdf-utils
* dev: use 'hls-file?' instead of string comparison
* fix: window title when hls file opened
2023-02-28 15:10:33 +08:00
Charlie
55b5149f4a
Enhance/pdf enhancements ( #8616 )
...
- Improve interactions about the popup modal from the PDF viewer toolbar
- Persist highlights data with multiple-lines text format (for friendly Git diff)
- Blink the text highlight when scrolling to position
- Open the PDF viewer in the system Window
2023-02-20 15:58:43 +08:00
charlie
e70d76589b
enhance(pdf): make the weblink pdf filename to be human-readable for the annotations page
2023-01-12 21:04:12 +08:00
Charlie
dd2ef163ba
Enhance/PDF viewer ( #7369 )
...
* fix(pdf): WIP potential memory leaks
* enhance(pdf): sync page number in highlights metafile
* enhance(pdf): support preview highlight area image in a lightbox
* fix: clojurescript unit tests
* fix(pdf): page number overflow when more digits
2022-11-17 20:31:08 +08:00
Charlie
d53ac94bfc
Enhance/pdf improvements ( #6475 )
...
Full-text search, highlights and assets alias support
It also exposes a plugin API for highlight context menu
```ts
/**
* Current it's only available for pdf viewer
* @param label - displayed name of command
* @param action - callback for the clickable item
* @param opts - clearSelection: clear highlight selection when callback invoked
*/
registerHighlightContextMenuItem: (
label: string,
action: SimpleCommandCallback,
opts?: {
clearSelection: boolean
}
) => unknown
```
2022-10-09 20:44:18 +08:00
Gabriel Horner
1f0e22275d
Add ns docstrings for most ns in src/main
...
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Gabriel Horner
2ce6dfad41
Use catch :default for default error handling in cljs
...
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
charlie
98ace5593d
improve(pdf): friendly breakline for multiple language highlights text
2022-07-29 14:17:31 +08:00
charlie
999ae327d4
fix(pdf): friendless break line for pdf selection text
2022-07-25 23:38:57 +08:00
Gabriel Horner
a3d60bf2a1
Consistent aliasing for frontend.util
2022-05-04 12:02:36 -04:00
Gabriel Horner
b3ee61b1ca
Remove more unused fns
2022-01-27 14:11:59 -05:00
Gabriel Horner
b7b3375f62
Lint extensions/ and wrap up hanging frontend dirs
...
fs/, format/ and logseq/ also added to linting by adding todos for later
inspection
2022-01-12 16:38:17 -05:00
Charlie
e47ad9909d
Enhance/pdf ( #2855 )
...
* feat(pdf): add go to annations page to pdf viewer toolbar
* improve(pdf): try to fix highlight selection blink
* improve(pdf): remove annations layer
* fix(pdf): try to fix selection blink
* Squashed commit of the following:
commit 995fba8623
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Thu Sep 16 13:59:08 2021 +0800
fix: disable plugins on the Web
commit d6a011fd35
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Thu Sep 16 12:31:01 2021 +0800
enhance(perf): add :ref/linked-references-collapsed-threshold option
Related to #2792
commit f59f59b9ae
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 21:47:05 2021 +0800
enhance: don't overwrite logseq's file if changes from journal file
is empty or the default template content.
To prevent overwritten when using iCloud/OneDrive/GDrive.
commit f5cdfaa2f1
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 20:59:10 2021 +0800
fix: add command-palette/toggle
commit ae25bb387f
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 20:57:57 2021 +0800
fix: add both Cmd+! and Cmd+Shift+p to configurable shortcuts
commit b20d29f813
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 17:12:20 2021 +0800
fix: don't count as failed writes if content from the disk
is not matched to the content in logseq
commit ac89a36ab0
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 14:31:48 2021 +0800
chore: bump mldoc
commit c7128dfc87
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 12:31:11 2021 +0800
enhance: text update
commit d965394be2
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 11:28:39 2021 +0800
feat: add namespace query support
commit 4f1402ea42
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 09:52:56 2021 +0800
enhance: remove the plus icon for switching graphs
commit 3550e4bbf0
Author: Gustavo Santos <gustavofsantos@outlook.com >
Date: Tue Sep 14 13:43:57 2021 -0300
fix: set aria-checked to "true" if toggle is on
commit 640d447b3b
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 09:48:47 2021 +0800
debug: disable cache node modules temporally
commit 6ab7f44f5f
Author: Tienson Qin <tiensonqin@gmail.com >
Date: Wed Sep 15 00:01:14 2021 +0800
enhance: marketplace polish
commit 07063f1592
Author: charlie <xyhp915@qq.com >
Date: Tue Sep 14 18:27:06 2021 +0800
fix(plugin): restart app not work
commit 7b909704ab
Author: charlie <xyhp915@qq.com >
Date: Tue Sep 14 15:43:30 2021 +0800
fix(ui): broken width for plugins page when toggling widen mode
commit d456ed7823
Author: charlie <xyhp915@qq.com >
Date: Tue Sep 14 15:36:32 2021 +0800
enhance(plugin): polish marketplace ui
* fix(pdf): try to fix horizontal scroller when viewer overflow
* fix(pdf): make text selectable for embed highlight range
* feat(pdf): pager of viewer on toolbar
* fix: conflicts
* improve(pdf): register shortcuts for pager
* improve(pdf): try to fix area image blurry for high dpi screen
* improve(pdf): support dashed style for area highlight
* fix(pdf): change shortcuts for win32
2021-09-22 12:14:39 +08:00
llcc
fef5bbf068
enhance(clock): support recording in repeated block // cleanup unused namespaces ( #2777 )
...
* enhance(clock): support recording in repeated block
* cleanup: unused namespaces
* cleanup: missing-else-branch if --> when
* enhance: wider search results window for mobile browser
* fix: namespace requirement
2021-09-08 10:23:16 +08:00
charlie
c9c5f20e4c
improve(pdf): optimize text selection range rects
2021-08-05 11:59:28 +08:00
charlie
45b5554acf
fix(pdf): go to highlight
2021-08-03 18:07:58 +08:00
charlie
80ad5949d2
improve(pdf): display pdf meta info
2021-08-02 13:48:26 +08:00
charlie
cb05f431f5
improve(pdf): persist highlights data as edn file
2021-07-26 12:02:28 +08:00
charlie
2d04b0a614
improve(pdf): support zoom in/out viewer
2021-07-21 17:43:41 +08:00
charlie
47dcaefa9f
improve(pdf): support draggable pdf viewer
2021-07-21 12:54:31 +08:00
charlie
7131d1b0cf
improve(pdf): load pdf assets to viewer
2021-07-20 15:41:07 +08:00
charlie
1653b7c3db
improve(pdf): scroll to hightlight
2021-07-19 14:30:03 +08:00
charlie
3f74677ee4
improve(pdf): add hls context menu
2021-07-16 23:37:39 +08:00
charlie
69f271cba5
imporve(pdf): add text highlights region
2021-07-15 22:26:18 +08:00
charlie
8ec5ce0cde
improve(pdf): construct highlights data
2021-07-15 17:53:09 +08:00
charlie
82330fb3f4
improve(pdf): add basic files
2021-07-14 21:54:30 +08:00