oasis-editor 0.0.41 → 0.0.43
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.
- package/dist/{OasisEditorApp-C9aMLBum.js → OasisEditorApp-BOjvnIF_.js} +258 -254
- package/dist/assets/{importDocxWorker-CMMv6C-7.js → importDocxWorker-BFWGoKvI.js} +1 -1
- package/dist/core/units.d.ts +18 -0
- package/dist/export/docx/text/constants.d.ts +1 -2
- package/dist/export/pdf/units.d.ts +1 -0
- package/dist/import/docx/runs/units.d.ts +3 -4
- package/dist/import/docx/units.d.ts +3 -2
- package/dist/{index-CEIWNJ4A.js → index-Cgq5T30U.js} +223 -223
- package/dist/layoutProjection/constants.d.ts +1 -2
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/app/createEditorLayoutOptionsController.d.ts +18 -0
- package/dist/ui/components/Ruler/rulerGeometry.d.ts +2 -2
- package/dist/ui/textMeasurement/constants.d.ts +1 -2
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EditorState } from '../../core/model.js';
|
|
2
|
+
import { LayoutOptionsOverlay } from '../editorUiTypes.js';
|
|
3
|
+
|
|
4
|
+
export interface EditorLayoutOptionsControllerDeps {
|
|
5
|
+
state: () => EditorState;
|
|
6
|
+
resetTransactionGrouping: () => void;
|
|
7
|
+
applyTransactionalState: (transform: (current: EditorState) => EditorState, options?: {
|
|
8
|
+
mergeKey?: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
focusInput: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Builds the Layout Options overlay controller (Word-style text-wrapping popup
|
|
14
|
+
* for the selected image / text box). Extracted from `OasisEditorApp` so the
|
|
15
|
+
* composition root does not carry per-feature operation logic (S1). See
|
|
16
|
+
* [[layout-options-feature]].
|
|
17
|
+
*/
|
|
18
|
+
export declare function createEditorLayoutOptionsController(deps: EditorLayoutOptionsControllerDeps): LayoutOptionsOverlay;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EditorPageSettings } from '../../../core/model.js';
|
|
2
|
+
import { PX_PER_INCH, PX_PER_CM } from '../../../core/units.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Horizontal ruler geometry. The editor stores page dimensions, margins and
|
|
@@ -6,8 +7,7 @@ import { EditorPageSettings } from '../../../core/model.js';
|
|
|
6
7
|
* pixels too — no point/twip conversion is needed for positioning. Only the
|
|
7
8
|
* tick labels convert pixels to inches/centimeters for display.
|
|
8
9
|
*/
|
|
9
|
-
export
|
|
10
|
-
export declare const PX_PER_CM: number;
|
|
10
|
+
export { PX_PER_INCH, PX_PER_CM };
|
|
11
11
|
/** Minimum content width (px) the editor guarantees; mirrors getPageContentWidth. */
|
|
12
12
|
export declare const MIN_CONTENT_WIDTH_PX = 24;
|
|
13
13
|
export interface RulerIndents {
|