oasis-editor 0.0.109 → 0.0.111
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-MEaOb4ut.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-mocSBySQ.js} +331 -265
- package/dist/oasis-editor.js +50 -50
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/canvas/canvasBorders.d.ts +4 -0
- package/dist/ui/canvas/canvasInlineReaders.d.ts +23 -0
- package/package.json +1 -1
package/dist/core/color.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/** Strips an optional leading `#` and surrounding whitespace. */
|
|
2
2
|
export declare function stripHashPrefix(color: string): string;
|
|
3
|
+
/**
|
|
4
|
+
* Validates a `#RRGGBB` (or `RRGGBB`) hex color and returns its uppercase
|
|
5
|
+
* 6-digit body without the leading `#`. Returns `null` when the input is not a
|
|
6
|
+
* valid 6-digit hex color.
|
|
7
|
+
*/
|
|
8
|
+
export declare function normalizeHex6(color: string | null | undefined): string | null;
|
|
3
9
|
/**
|
|
4
10
|
* Parses a `#RRGGBB` (or `RRGGBB`) hex color into 0–255 integer RGB channels.
|
|
5
11
|
* Returns `null` when the input is not a valid 6-digit hex color.
|
package/dist/core/units.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ export declare const EMU_PER_PT = 12700;
|
|
|
16
16
|
export declare const TWIPS_PER_INCH = 1440;
|
|
17
17
|
/** Twentieths of a point ("twips") per typographic point. */
|
|
18
18
|
export declare const TWIPS_PER_POINT = 20;
|
|
19
|
+
/**
|
|
20
|
+
* OOXML thousandths-of-a-percent denominator (`100000` == 100%). Used by both
|
|
21
|
+
* the DOCX import and export paths to convert alpha/position percentages.
|
|
22
|
+
*/
|
|
23
|
+
export declare const OOXML_PERCENT_DENOMINATOR = 100000;
|
|
24
|
+
/** OOXML angle units (60000ths of a degree). */
|
|
25
|
+
export declare const OOXML_ROTATION_UNITS = 60000;
|
|
19
26
|
/**
|
|
20
27
|
* Default document font size in CSS pixels: 11pt (the Calibri default used by
|
|
21
28
|
* Word) expressed as `11 * 96 / 72 ≈ 14.6667`. Single source of truth for the
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { EMU_PER_PX, EMU_PER_PT } from '../../../core/units.js';
|
|
1
|
+
export { EMU_PER_PX, EMU_PER_PT, OOXML_PERCENT_DENOMINATOR, OOXML_ROTATION_UNITS, } from '../../../core/units.js';
|
|
2
2
|
export declare const DOCX_HIGHLIGHT_COLORS: Record<string, [number, number, number]>;
|
|
3
3
|
export declare const DOCX_HIGHLIGHT_HEX_ALIASES: Record<string, string>;
|
|
4
|
-
export declare const OOXML_PERCENT_DENOMINATOR = 100000;
|
|
5
|
-
export declare const OOXML_ROTATION_UNITS = 60000;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { EMU_PER_PX, EMU_PER_PT, PX_PER_INCH, PX_PER_POINT } from '../../../core/units.js';
|
|
1
|
+
import { EMU_PER_PX, EMU_PER_PT, PX_PER_INCH, PX_PER_POINT, OOXML_PERCENT_DENOMINATOR, OOXML_ROTATION_UNITS } from '../../../core/units.js';
|
|
2
2
|
|
|
3
|
-
export { EMU_PER_PX, EMU_PER_PT, PX_PER_INCH, PX_PER_POINT };
|
|
4
|
-
export declare const OOXML_PERCENT_DENOMINATOR = 100000;
|
|
5
|
-
export declare const OOXML_ROTATION_UNITS = 60000;
|
|
3
|
+
export { EMU_PER_PX, EMU_PER_PT, PX_PER_INCH, PX_PER_POINT, OOXML_PERCENT_DENOMINATOR, OOXML_ROTATION_UNITS, };
|
|
6
4
|
export declare const VML_FRACTION_DENOMINATOR = 65536;
|
|
7
5
|
export declare function emuToPx(value: string | null | undefined): number | undefined;
|
|
8
6
|
export declare function parseOptionalInt(value: string | null | undefined): number | undefined;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { TWIPS_PER_INCH, PX_PER_INCH, EMU_PER_PT } from '../../core/units.js';
|
|
1
|
+
import { TWIPS_PER_INCH, PX_PER_INCH, EMU_PER_PT, OOXML_PERCENT_DENOMINATOR, OOXML_ROTATION_UNITS } from '../../core/units.js';
|
|
2
2
|
|
|
3
|
-
export { TWIPS_PER_INCH, PX_PER_INCH, EMU_PER_PT };
|
|
4
|
-
/** OOXML thousandths-of-a-percent denominator (`100000` == 100%). */
|
|
5
|
-
export declare const OOXML_PERCENT_DENOMINATOR = 100000;
|
|
6
|
-
/** OOXML angle units (60000ths of a degree). */
|
|
7
|
-
export declare const OOXML_ROTATION_UNITS = 60000;
|
|
3
|
+
export { TWIPS_PER_INCH, PX_PER_INCH, EMU_PER_PT, OOXML_PERCENT_DENOMINATOR, OOXML_ROTATION_UNITS, };
|
|
8
4
|
export declare const PAGE_BREAK_MARKER = "\f";
|
|
9
5
|
export declare const DOCX_IMPLICIT_SINGLE_LINE_HEIGHT = 1.1;
|
|
10
6
|
export declare function twipsToPx(value: string | null | undefined, fallback: number): number;
|