oasis-editor 0.0.109 → 0.0.110
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-vuSkxc37.js → OasisEditorApp-D3M38bHd.js} +2 -27
- package/dist/assets/{importDocxWorker-BF8VtQ9h.js → importDocxWorker-DyYGjoXG.js} +1 -1
- package/dist/core/color.d.ts +6 -0
- package/dist/core/units.d.ts +7 -0
- package/dist/export/docx/text/constants.d.ts +1 -3
- package/dist/import/docx/runs/units.d.ts +2 -4
- package/dist/import/docx/units.d.ts +2 -6
- package/dist/{index-9yDGAODt.js → index-DezzFA4l.js} +308 -244
- package/dist/oasis-editor.js +50 -50
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/canvas/canvasInlineReaders.d.ts +23 -0
- package/package.json +1 -1
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import { EditorEditingZone } from '../../core/model.js';
|
|
2
2
|
import { CanvasSnapshotInlineImage, CanvasSnapshotInlineTextBox, ResolveTextBoxRenderHeight } from './canvasSnapshotTypes.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Single source of truth for the on-canvas rectangle of an inline object
|
|
6
|
+
* (image or text box) that occupies a line slot. The painter (rendering) and
|
|
7
|
+
* the snapshot readers (hit-testing / selection overlays) MUST agree on this
|
|
8
|
+
* geometry; computing it here prevents the two paths from drifting (audit #6).
|
|
9
|
+
*
|
|
10
|
+
* The object is bottom-aligned within the line: its top sits at the line
|
|
11
|
+
* baseline minus the object height, mirroring how Word flows inline drawings.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveInlineObjectRect(params: {
|
|
14
|
+
originLeft: number;
|
|
15
|
+
originTop: number;
|
|
16
|
+
lineTop: number;
|
|
17
|
+
lineHeight: number;
|
|
18
|
+
slotLeft: number;
|
|
19
|
+
objectWidth: number;
|
|
20
|
+
objectHeight: number;
|
|
21
|
+
}): {
|
|
22
|
+
left: number;
|
|
23
|
+
top: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
};
|
|
4
27
|
export declare function collectInlineImagesFromLines(options: {
|
|
5
28
|
lines: Array<{
|
|
6
29
|
top: number;
|