oasis-editor 0.0.14 → 0.0.15

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.
@@ -105,6 +105,7 @@ export interface EssentialsParagraphCapability {
105
105
  export interface EssentialsSectionCapability {
106
106
  isLandscape: () => boolean;
107
107
  toggleOrientation: () => void;
108
+ setOrientation: (orientation: "portrait" | "landscape") => void;
108
109
  breakNextPage: () => void;
109
110
  breakContinuous: () => void;
110
111
  setPageMargins: (margins: {
@@ -10,3 +10,16 @@
10
10
  * the caret — the ruler still measures the paper from the DOM as a backstop.
11
11
  */
12
12
  export declare const EDITOR_SCROLL_PADDING_PX = 34;
13
+ /**
14
+ * Width (px) reserved for the editor's vertical scrollbar gutter.
15
+ *
16
+ * The page paper is `width: 100%` of the scroll content, so the editor shell
17
+ * width is sized as `pageWidth + 2 * gutter (+ this reserve)`. Without reserving
18
+ * the scrollbar's track, the fixed-width canvas surface (`pageWidth`) collides
19
+ * with the vertical scrollbar and forces a spurious horizontal scrollbar — most
20
+ * visible in landscape, where the page is wide. We pair this reserve with
21
+ * `scrollbar-gutter: stable` on `.oasis-editor-editor` (see app-shell.css) so the
22
+ * gutter is always reserved and the paper stays exactly `pageWidth`. Keep this in
23
+ * lockstep with the `::-webkit-scrollbar { width }` value in app-shell.css.
24
+ */
25
+ export declare const EDITOR_SCROLLBAR_RESERVE_PX = 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",