@medeo-plugin/plugin-screenshot 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +8 -5
  2. package/package.json +18 -5
  3. package/plugin.medeoplugin +0 -0
  4. package/src/README.md +28 -0
  5. package/src/README.zh-CN.md +20 -0
  6. package/src/about.json +7 -0
  7. package/src/icon.svg +1 -0
  8. package/src/locales/en.json +141 -0
  9. package/src/locales/zh-CN.json +141 -0
  10. package/src/locales/zh-TW.json +141 -0
  11. package/src/manifest.json +125 -0
  12. package/src/media/en/editor.png +0 -0
  13. package/src/media/en/settings.png +0 -0
  14. package/src/media/zh-CN/editor.png +0 -0
  15. package/src/media/zh-CN/settings.png +0 -0
  16. package/src/resources/helper.js +99 -0
  17. package/src/resources/trayTemplate.png +0 -0
  18. package/src/resources/trayTemplate.svg +1 -0
  19. package/src/src/annotations.ts +398 -0
  20. package/src/src/beautify.ts +41 -0
  21. package/src/src/geometry.ts +79 -0
  22. package/src/src/naming.ts +19 -0
  23. package/src/src/protocol.ts +53 -0
  24. package/src/src/settings.ts +48 -0
  25. package/src/src/shortcuts.ts +25 -0
  26. package/src/src/ui/overlay.ts +874 -0
  27. package/src/src/ui/settings.ts +140 -0
  28. package/src/tests/logic.test.mjs +101 -0
  29. package/src/ui/entry.ts +4 -0
  30. package/src/ui/icons/align-center.svg +1 -0
  31. package/src/ui/icons/align-left.svg +1 -0
  32. package/src/ui/icons/align-right.svg +1 -0
  33. package/src/ui/icons/arrow-double.svg +1 -0
  34. package/src/ui/icons/arrow-open.svg +1 -0
  35. package/src/ui/icons/arrow-single.svg +1 -0
  36. package/src/ui/icons/arrow-tail.svg +1 -0
  37. package/src/ui/icons/arrow-thick.svg +1 -0
  38. package/src/ui/icons/arrow.svg +1 -0
  39. package/src/ui/icons/beautify.svg +1 -0
  40. package/src/ui/icons/bold.svg +1 -0
  41. package/src/ui/icons/censor.svg +1 -0
  42. package/src/ui/icons/close.svg +1 -0
  43. package/src/ui/icons/copy-doc.svg +1 -0
  44. package/src/ui/icons/copy.svg +1 -0
  45. package/src/ui/icons/ellipse.svg +1 -0
  46. package/src/ui/icons/fill-fill.svg +1 -0
  47. package/src/ui/icons/fill-stroke.svg +1 -0
  48. package/src/ui/icons/fill-strokeFill.svg +1 -0
  49. package/src/ui/icons/highlight.svg +1 -0
  50. package/src/ui/icons/invert.svg +1 -0
  51. package/src/ui/icons/italic.svg +1 -0
  52. package/src/ui/icons/line-dashed.svg +1 -0
  53. package/src/ui/icons/line-dotted.svg +1 -0
  54. package/src/ui/icons/line-solid.svg +1 -0
  55. package/src/ui/icons/line.svg +1 -0
  56. package/src/ui/icons/marker.svg +1 -0
  57. package/src/ui/icons/measure.svg +1 -0
  58. package/src/ui/icons/number.svg +1 -0
  59. package/src/ui/icons/ocr.svg +1 -0
  60. package/src/ui/icons/open.svg +1 -0
  61. package/src/ui/icons/pencil.svg +1 -0
  62. package/src/ui/icons/rect.svg +1 -0
  63. package/src/ui/icons/redo.svg +1 -0
  64. package/src/ui/icons/sampler.svg +1 -0
  65. package/src/ui/icons/save.svg +1 -0
  66. package/src/ui/icons/select.svg +1 -0
  67. package/src/ui/icons/stamp.svg +1 -0
  68. package/src/ui/icons/text-bg.svg +1 -0
  69. package/src/ui/icons/text.svg +1 -0
  70. package/src/ui/icons/trash.svg +1 -0
  71. package/src/ui/icons/underline.svg +1 -0
  72. package/src/ui/icons/undo.svg +1 -0
  73. package/src/ui/index.html +12 -0
  74. package/src/ui/settings.html +5 -0
  75. package/src/ui/style.css +105 -0
  76. package/src/worker.ts +285 -0
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Screenshot
2
2
 
3
- Capture any part of the screen and annotate it in place. The interaction follows
4
- [macshot](https://github.com/sw33tLie/macshot); this plugin is an independent TypeScript
5
- implementation and contains none of its code.
3
+ Capture any part of the screen and annotate it in place: select, add arrows, blur, number the
4
+ steps, then copy or save in one go.
5
+
6
+ ![Screenshot editor](media/en/editor.png)
6
7
 
7
8
  - **Capture**: ⌘⇧X (area), plus optional shortcuts for full screen, quick capture and OCR; the
8
9
  menu-bar icon and the launcher (`shot`). The display under the pointer is frozen with macOS's
@@ -16,6 +17,8 @@ implementation and contains none of its code.
16
17
  - **Actions**: copy ⌘C, save ⌘S (PNG or JPEG, optional 1×), read text and QR codes with Apple
17
18
  Vision, beautify (gradient, padding, window frame), invert.
18
19
 
20
+ ![Screenshot settings](media/en/settings.png)
21
+
19
22
  Runtime: Node (macOS). Permissions: `node`, `app_windows`, `window_management` (the full-screen
20
23
  overlay), `screen_capture` (reports and requests macOS Screen Recording), `global_shortcuts`,
21
24
  `tray`, `notifications`. AppKit access goes through `resources/helper.js`, run with
@@ -29,8 +32,8 @@ multi-display selections.
29
32
  Install from npm in Medeo's plugin center, or use Discover.
30
33
 
31
34
  Plugin ID: app.medeo.screenshot
32
- Version: 1.0.0
35
+ Version: 1.0.1
33
36
  Publisher: 6ac813f5c19a51d6fea83a03fa1306e1d0e88c80f5af3a2000ff80a0e2f116f9
34
- SHA-256: 0a2102bafcbd12830f2d242750aa635701b148e2430d3837ff7895f6c53fc4be
37
+ SHA-256: 722efb08c521f2d2bbb19a631dbb104f74ddca68c9093c73197d6d400703dc58
35
38
 
36
39
  Approve permissions in Medeo before use.