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.
@@ -2539,7 +2539,7 @@ function OasisEditorAppLazy(props = {}) {
2539
2539
  onCleanup(() => {
2540
2540
  cancelled = true;
2541
2541
  });
2542
- import("./OasisEditorApp-vuSkxc37.js").then((m) => {
2542
+ import("./OasisEditorApp-D3M38bHd.js").then((m) => {
2543
2543
  cancelled = true;
2544
2544
  setProgress(1);
2545
2545
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -3119,6 +3119,8 @@ const EMU_PER_PX = 9525;
3119
3119
  const EMU_PER_PT = 12700;
3120
3120
  const TWIPS_PER_INCH = 1440;
3121
3121
  const TWIPS_PER_POINT = 20;
3122
+ const OOXML_PERCENT_DENOMINATOR = 1e5;
3123
+ const OOXML_ROTATION_UNITS = 6e4;
3122
3124
  const DEFAULT_FONT_SIZE_PX = 14.6667;
3123
3125
  function asRequired(value) {
3124
3126
  return value;
@@ -20080,6 +20082,97 @@ function drawFloatingTextBoxesForParagraph(options) {
20080
20082
  }
20081
20083
  }
20082
20084
  }
20085
+ function resolveInlineObjectRect(params) {
20086
+ return {
20087
+ left: params.originLeft + params.slotLeft,
20088
+ top: params.originTop + params.lineTop + params.lineHeight - params.objectHeight,
20089
+ width: params.objectWidth,
20090
+ height: params.objectHeight
20091
+ };
20092
+ }
20093
+ function collectInlineImagesFromLines(options) {
20094
+ const inlineImages = [];
20095
+ for (const line of options.lines) {
20096
+ for (const fragment of line.fragments) {
20097
+ if (!fragment.image || fragment.image.floating) {
20098
+ continue;
20099
+ }
20100
+ const imageStartOffset = fragment.startOffset;
20101
+ const imageEndOffset = fragment.endOffset > imageStartOffset ? fragment.endOffset : imageStartOffset + 1;
20102
+ const slot = line.slots.find((candidate) => candidate.offset === imageStartOffset) ?? line.slots.find((candidate) => candidate.offset >= imageStartOffset);
20103
+ if (!slot) {
20104
+ continue;
20105
+ }
20106
+ const rect = resolveInlineObjectRect({
20107
+ originLeft: options.lineLeftOffset,
20108
+ originTop: options.lineTopOffset,
20109
+ lineTop: line.top,
20110
+ lineHeight: line.height,
20111
+ slotLeft: slot.left,
20112
+ objectWidth: fragment.image.width,
20113
+ objectHeight: fragment.image.height
20114
+ });
20115
+ inlineImages.push({
20116
+ paragraphId: options.paragraphId,
20117
+ paragraphIndex: options.paragraphIndex,
20118
+ zone: options.zone,
20119
+ footnoteId: options.footnoteId,
20120
+ pageIndex: options.pageIndex,
20121
+ startOffset: imageStartOffset,
20122
+ endOffset: imageEndOffset,
20123
+ left: rect.left,
20124
+ top: rect.top,
20125
+ width: rect.width,
20126
+ height: rect.height,
20127
+ rotation: fragment.image.rotation
20128
+ });
20129
+ }
20130
+ }
20131
+ return inlineImages;
20132
+ }
20133
+ function collectInlineTextBoxesFromLines(options) {
20134
+ const inlineTextBoxes = [];
20135
+ for (const line of options.lines) {
20136
+ for (const fragment of line.fragments) {
20137
+ if (!fragment.textBox || fragment.textBox.floating) {
20138
+ continue;
20139
+ }
20140
+ const startOffset = fragment.startOffset;
20141
+ const endOffset = fragment.endOffset > startOffset ? fragment.endOffset : startOffset + 1;
20142
+ const slot = line.slots.find((candidate) => candidate.offset === startOffset) ?? line.slots.find((candidate) => candidate.offset >= startOffset);
20143
+ if (!slot) {
20144
+ continue;
20145
+ }
20146
+ const height = options.resolveHeight(
20147
+ fragment.textBox
20148
+ );
20149
+ const rect = resolveInlineObjectRect({
20150
+ originLeft: options.lineLeftOffset,
20151
+ originTop: options.lineTopOffset,
20152
+ lineTop: line.top,
20153
+ lineHeight: line.height,
20154
+ slotLeft: slot.left,
20155
+ objectWidth: fragment.textBox.width,
20156
+ objectHeight: height
20157
+ });
20158
+ inlineTextBoxes.push({
20159
+ paragraphId: options.paragraphId,
20160
+ paragraphIndex: options.paragraphIndex,
20161
+ zone: options.zone,
20162
+ footnoteId: options.footnoteId,
20163
+ pageIndex: options.pageIndex,
20164
+ startOffset,
20165
+ endOffset,
20166
+ left: rect.left,
20167
+ top: rect.top,
20168
+ width: rect.width,
20169
+ height: rect.height,
20170
+ rotation: fragment.textBox.rotation
20171
+ });
20172
+ }
20173
+ }
20174
+ return inlineTextBoxes;
20175
+ }
20083
20176
  function underlineStyleToCssDecorationStyle(underlineStyle) {
20084
20177
  switch (underlineStyle) {
20085
20178
  case "double":
@@ -20485,13 +20578,16 @@ function drawParagraph(ctx, paragraph, lines, state, originX, originY, onUpdate,
20485
20578
  const src = resolveImageSrc(state.document, fragment.image.src);
20486
20579
  const img = getCachedCanvasImage(src, onUpdate);
20487
20580
  if (img.complete && img.naturalWidth > 0) {
20488
- drawImageFragment(
20489
- ctx,
20490
- img,
20491
- fragment.image,
20492
- originX + slot.left,
20493
- originY + line.top + line.height - fragment.image.height
20494
- );
20581
+ const rect = resolveInlineObjectRect({
20582
+ originLeft: originX,
20583
+ originTop: originY,
20584
+ lineTop: line.top,
20585
+ lineHeight: line.height,
20586
+ slotLeft: slot.left,
20587
+ objectWidth: fragment.image.width,
20588
+ objectHeight: fragment.image.height
20589
+ });
20590
+ drawImageFragment(ctx, img, fragment.image, rect.left, rect.top);
20495
20591
  }
20496
20592
  }
20497
20593
  } else if (fragment.textBox && !fragment.textBox.floating) {
@@ -20499,17 +20595,23 @@ function drawParagraph(ctx, paragraph, lines, state, originX, originY, onUpdate,
20499
20595
  if (slot) {
20500
20596
  const textBox = fragment.textBox;
20501
20597
  const height = resolveTextBoxRenderHeight(textBox, state, pageIndex);
20502
- const x = originX + slot.left;
20503
- const y = originY + line.top + line.height - height;
20504
- const width = textBox.width;
20598
+ const rect = resolveInlineObjectRect({
20599
+ originLeft: originX,
20600
+ originTop: originY,
20601
+ lineTop: line.top,
20602
+ lineHeight: line.height,
20603
+ slotLeft: slot.left,
20604
+ objectWidth: textBox.width,
20605
+ objectHeight: height
20606
+ });
20505
20607
  paintTextBox(
20506
20608
  ctx,
20507
20609
  textBox,
20508
20610
  state,
20509
- x,
20510
- y,
20511
- width,
20512
- height,
20611
+ rect.left,
20612
+ rect.top,
20613
+ rect.width,
20614
+ rect.height,
20513
20615
  pageIndex,
20514
20616
  onUpdate,
20515
20617
  painters
@@ -32046,8 +32148,6 @@ function resolveThemeFont(fonts, themeFonts) {
32046
32148
  const normalizedThemeKey = themeKey === "majorAscii" || themeKey === "majorHAnsi" ? "majorHAnsi" : themeKey === "minorAscii" || themeKey === "minorHAnsi" ? "minorHAnsi" : themeKey === "majorEastAsia" ? "majorEastAsia" : themeKey === "minorEastAsia" ? "minorEastAsia" : themeKey === "majorBidi" ? "majorBidi" : themeKey === "minorBidi" ? "minorBidi" : void 0;
32047
32149
  return normalizedThemeKey ? themeFonts[normalizedThemeKey] : void 0;
32048
32150
  }
32049
- const OOXML_PERCENT_DENOMINATOR$1 = 1e5;
32050
- const OOXML_ROTATION_UNITS$1 = 6e4;
32051
32151
  const PAGE_BREAK_MARKER = "\f";
32052
32152
  const DOCX_IMPLICIT_SINGLE_LINE_HEIGHT = 1.1;
32053
32153
  function twipsToPx(value, fallback) {
@@ -32624,7 +32724,7 @@ function parseW14TextFill(fillEl) {
32624
32724
  const gs = node;
32625
32725
  if (gs.namespaceURI !== WORD14_NS || gs.localName !== "gs") continue;
32626
32726
  const posVal = getAttributeValue(gs, "pos");
32627
- const pos = posVal !== null ? Number(posVal) / OOXML_PERCENT_DENOMINATOR$1 : NaN;
32727
+ const pos = posVal !== null ? Number(posVal) / OOXML_PERCENT_DENOMINATOR : NaN;
32628
32728
  if (!Number.isFinite(pos)) continue;
32629
32729
  const srgbClr = getFirstChildByTagNameNS(gs, WORD14_NS, "srgbClr");
32630
32730
  if (!srgbClr) continue;
@@ -32634,7 +32734,7 @@ function parseW14TextFill(fillEl) {
32634
32734
  if (!color) continue;
32635
32735
  const alphaEl = getFirstChildByTagNameNS(srgbClr, WORD14_NS, "alpha");
32636
32736
  const alphaRaw = alphaEl ? getAttributeValue(alphaEl, "val") : null;
32637
- const alpha = alphaRaw !== null ? Number(alphaRaw) / OOXML_PERCENT_DENOMINATOR$1 : void 0;
32737
+ const alpha = alphaRaw !== null ? Number(alphaRaw) / OOXML_PERCENT_DENOMINATOR : void 0;
32638
32738
  const stop = { position: pos, color };
32639
32739
  if (alpha !== void 0 && Number.isFinite(alpha)) stop.alpha = alpha;
32640
32740
  stops.push(stop);
@@ -32642,7 +32742,7 @@ function parseW14TextFill(fillEl) {
32642
32742
  if (stops.length > 0) {
32643
32743
  const linEl = getFirstChildByTagNameNS(gradFill, WORD14_NS, "lin");
32644
32744
  const angRaw = linEl ? getAttributeValue(linEl, "ang") : null;
32645
- const angle = angRaw !== null ? Number(angRaw) / OOXML_ROTATION_UNITS$1 : void 0;
32745
+ const angle = angRaw !== null ? Number(angRaw) / OOXML_ROTATION_UNITS : void 0;
32646
32746
  const result = { type: "gradient", stops };
32647
32747
  if (angle !== void 0 && Number.isFinite(angle)) result.angle = angle;
32648
32748
  return result;
@@ -32659,7 +32759,7 @@ function parseW14ColorEl(el) {
32659
32759
  if (!color) return null;
32660
32760
  const alphaEl = getFirstChildByTagNameNS(srgbClr, WORD14_NS, "alpha");
32661
32761
  const alphaRaw = alphaEl ? getAttributeValue(alphaEl, "val") : null;
32662
- const alpha = alphaRaw !== null && Number.isFinite(Number(alphaRaw)) ? Number(alphaRaw) / OOXML_PERCENT_DENOMINATOR$1 : void 0;
32762
+ const alpha = alphaRaw !== null && Number.isFinite(Number(alphaRaw)) ? Number(alphaRaw) / OOXML_PERCENT_DENOMINATOR : void 0;
32663
32763
  return { color, ...alpha !== void 0 ? { alpha } : {} };
32664
32764
  }
32665
32765
  function parseW14Shadow(el) {
@@ -32670,7 +32770,7 @@ function parseW14Shadow(el) {
32670
32770
  const dirRaw = el.getAttributeNS(WORD14_NS, "dir");
32671
32771
  const blurPt = blurRaw ? Number(blurRaw) / EMU_PER_PT : 0;
32672
32772
  const distPt = distRaw ? Number(distRaw) / EMU_PER_PT : 0;
32673
- const dirDeg = dirRaw ? Number(dirRaw) / OOXML_ROTATION_UNITS$1 : 0;
32773
+ const dirDeg = dirRaw ? Number(dirRaw) / OOXML_ROTATION_UNITS : 0;
32674
32774
  return {
32675
32775
  color: colorData.color,
32676
32776
  ...colorData.alpha !== void 0 ? { alpha: colorData.alpha } : {},
@@ -32699,10 +32799,10 @@ function parseW14Reflection(el) {
32699
32799
  const distRaw = el.getAttributeNS(WORD14_NS, "dist");
32700
32800
  return {
32701
32801
  blurPt: blurRaw ? Number(blurRaw) / EMU_PER_PT : 0,
32702
- startAlpha: stARaw !== null ? Number(stARaw) / OOXML_PERCENT_DENOMINATOR$1 : 0.55,
32703
- startPos: stPosRaw !== null ? Number(stPosRaw) / OOXML_PERCENT_DENOMINATOR$1 : 0,
32704
- endAlpha: endARaw !== null ? Number(endARaw) / OOXML_PERCENT_DENOMINATOR$1 : 0,
32705
- endPos: endPosRaw !== null ? Number(endPosRaw) / OOXML_PERCENT_DENOMINATOR$1 : 1,
32802
+ startAlpha: stARaw !== null ? Number(stARaw) / OOXML_PERCENT_DENOMINATOR : 0.55,
32803
+ startPos: stPosRaw !== null ? Number(stPosRaw) / OOXML_PERCENT_DENOMINATOR : 0,
32804
+ endAlpha: endARaw !== null ? Number(endARaw) / OOXML_PERCENT_DENOMINATOR : 0,
32805
+ endPos: endPosRaw !== null ? Number(endPosRaw) / OOXML_PERCENT_DENOMINATOR : 1,
32706
32806
  distPt: distRaw ? Number(distRaw) / EMU_PER_PT : 0
32707
32807
  };
32708
32808
  }
@@ -34278,8 +34378,35 @@ function applyDocGridLinePitch(blocks, linePitchPx, mode, docGridType, settings)
34278
34378
  }
34279
34379
  }
34280
34380
  }
34281
- const OOXML_PERCENT_DENOMINATOR = 1e5;
34282
- const OOXML_ROTATION_UNITS = 6e4;
34381
+ const HEX6_PATTERN = /^[0-9a-fA-F]{6}$/;
34382
+ function stripHashPrefix(color) {
34383
+ return color.trim().replace(/^#/, "");
34384
+ }
34385
+ function normalizeHex6(color) {
34386
+ if (!color) {
34387
+ return null;
34388
+ }
34389
+ const body = stripHashPrefix(color);
34390
+ return HEX6_PATTERN.test(body) ? body.toUpperCase() : null;
34391
+ }
34392
+ function parseHexColorToRgb255(color) {
34393
+ if (!color) {
34394
+ return null;
34395
+ }
34396
+ const normalized = stripHashPrefix(color);
34397
+ if (!HEX6_PATTERN.test(normalized)) {
34398
+ return null;
34399
+ }
34400
+ return [
34401
+ Number.parseInt(normalized.slice(0, 2), 16),
34402
+ Number.parseInt(normalized.slice(2, 4), 16),
34403
+ Number.parseInt(normalized.slice(4, 6), 16)
34404
+ ];
34405
+ }
34406
+ function rgb255ToHex(r, g2, b) {
34407
+ const toHex2 = (value) => Math.max(0, Math.min(255, Math.round(value))).toString(16).padStart(2, "0");
34408
+ return `#${toHex2(r)}${toHex2(g2)}${toHex2(b)}`;
34409
+ }
34283
34410
  const VML_FRACTION_DENOMINATOR = 65536;
34284
34411
  function emuToPx(value) {
34285
34412
  const emu = parseOptionalInt$1(value);
@@ -34323,11 +34450,8 @@ function parseCssLengthToPx(value) {
34323
34450
  }
34324
34451
  }
34325
34452
  function normalizeHexColor(value) {
34326
- const trimmed = value == null ? void 0 : value.trim();
34327
- if (!trimmed || !/^[0-9a-fA-F]{6}$/.test(trimmed)) {
34328
- return void 0;
34329
- }
34330
- return `#${trimmed.toUpperCase()}`;
34453
+ const body = normalizeHex6(value);
34454
+ return body ? `#${body}` : void 0;
34331
34455
  }
34332
34456
  const EXTENSION_TO_MIME = {
34333
34457
  png: "image/png",
@@ -36833,7 +36957,7 @@ function importDocxInWorker(buffer, options = {}) {
36833
36957
  const worker = new Worker(
36834
36958
  new URL(
36835
36959
  /* @vite-ignore */
36836
- "" + new URL("assets/importDocxWorker-BF8VtQ9h.js", import.meta.url).href,
36960
+ "" + new URL("assets/importDocxWorker-DyYGjoXG.js", import.meta.url).href,
36837
36961
  import.meta.url
36838
36962
  ),
36839
36963
  {
@@ -38186,71 +38310,6 @@ function collectFloatingTextBoxesFromLines(options) {
38186
38310
  }
38187
38311
  return result;
38188
38312
  }
38189
- function collectInlineImagesFromLines(options) {
38190
- const inlineImages = [];
38191
- for (const line of options.lines) {
38192
- for (const fragment of line.fragments) {
38193
- if (!fragment.image || fragment.image.floating) {
38194
- continue;
38195
- }
38196
- const imageStartOffset = fragment.startOffset;
38197
- const imageEndOffset = fragment.endOffset > imageStartOffset ? fragment.endOffset : imageStartOffset + 1;
38198
- const slot = line.slots.find((candidate) => candidate.offset === imageStartOffset) ?? line.slots.find((candidate) => candidate.offset >= imageStartOffset);
38199
- if (!slot) {
38200
- continue;
38201
- }
38202
- inlineImages.push({
38203
- paragraphId: options.paragraphId,
38204
- paragraphIndex: options.paragraphIndex,
38205
- zone: options.zone,
38206
- footnoteId: options.footnoteId,
38207
- pageIndex: options.pageIndex,
38208
- startOffset: imageStartOffset,
38209
- endOffset: imageEndOffset,
38210
- left: options.lineLeftOffset + slot.left,
38211
- top: options.lineTopOffset + line.top + line.height - fragment.image.height,
38212
- width: fragment.image.width,
38213
- height: fragment.image.height,
38214
- rotation: fragment.image.rotation
38215
- });
38216
- }
38217
- }
38218
- return inlineImages;
38219
- }
38220
- function collectInlineTextBoxesFromLines(options) {
38221
- const inlineTextBoxes = [];
38222
- for (const line of options.lines) {
38223
- for (const fragment of line.fragments) {
38224
- if (!fragment.textBox || fragment.textBox.floating) {
38225
- continue;
38226
- }
38227
- const startOffset = fragment.startOffset;
38228
- const endOffset = fragment.endOffset > startOffset ? fragment.endOffset : startOffset + 1;
38229
- const slot = line.slots.find((candidate) => candidate.offset === startOffset) ?? line.slots.find((candidate) => candidate.offset >= startOffset);
38230
- if (!slot) {
38231
- continue;
38232
- }
38233
- const height = options.resolveHeight(
38234
- fragment.textBox
38235
- );
38236
- inlineTextBoxes.push({
38237
- paragraphId: options.paragraphId,
38238
- paragraphIndex: options.paragraphIndex,
38239
- zone: options.zone,
38240
- footnoteId: options.footnoteId,
38241
- pageIndex: options.pageIndex,
38242
- startOffset,
38243
- endOffset,
38244
- left: options.lineLeftOffset + slot.left,
38245
- top: options.lineTopOffset + line.top + line.height - height,
38246
- width: fragment.textBox.width,
38247
- height,
38248
- rotation: fragment.textBox.rotation
38249
- });
38250
- }
38251
- }
38252
- return inlineTextBoxes;
38253
- }
38254
38313
  function getCanvasPageElements(surface) {
38255
38314
  const pages = Array.from(
38256
38315
  surface.querySelectorAll(
@@ -42556,7 +42615,7 @@ export {
42556
42615
  resolveImageSrc as Z,
42557
42616
  listKindForTag as _,
42558
42617
  getPageContentWidth as a,
42559
- resolveOpenTypeFeatureTags as a$,
42618
+ getImageFloatingGeometry as a$,
42560
42619
  collectInlineRuns as a0,
42561
42620
  parseParagraphStyle as a1,
42562
42621
  getRunImage as a2,
@@ -42571,29 +42630,29 @@ export {
42571
42630
  TWIPS_PER_POINT as aB,
42572
42631
  PX_PER_INCH as aC,
42573
42632
  TWIPS_PER_INCH as aD,
42574
- resolveEffectiveParagraphStyle as aE,
42575
- resolveEffectiveTextStyleForParagraph as aF,
42576
- EMU_PER_PT as aG,
42577
- EMU_PER_PX as aH,
42578
- getRunFootnoteReference as aI,
42579
- getRunEndnoteReference as aJ,
42580
- iterateFootnoteReferenceRuns as aK,
42581
- iterateEndnoteReferenceRuns as aL,
42582
- imageContentTypeDefaults as aM,
42583
- getRunFieldChar as aN,
42584
- getRunFieldInstruction as aO,
42585
- createEditorRun as aP,
42586
- JSZip as aQ,
42587
- imageExtensionFromMime as aR,
42588
- pxToPt as aS,
42589
- resolveFloatingObjectRect as aT,
42590
- getTextBoxFloatingGeometry as aU,
42591
- getPresetPathSegments as aV,
42592
- buildListLabels as aW,
42593
- getImageFloatingGeometry as aX,
42594
- textStyleToFontSizePt as aY,
42595
- PX_PER_POINT as aZ,
42596
- DEFAULT_FONT_SIZE_PX as a_,
42633
+ normalizeHex6 as aE,
42634
+ resolveEffectiveParagraphStyle as aF,
42635
+ resolveEffectiveTextStyleForParagraph as aG,
42636
+ EMU_PER_PT as aH,
42637
+ OOXML_ROTATION_UNITS as aI,
42638
+ OOXML_PERCENT_DENOMINATOR as aJ,
42639
+ parseHexColorToRgb255 as aK,
42640
+ EMU_PER_PX as aL,
42641
+ getRunFootnoteReference as aM,
42642
+ getRunEndnoteReference as aN,
42643
+ iterateFootnoteReferenceRuns as aO,
42644
+ iterateEndnoteReferenceRuns as aP,
42645
+ imageContentTypeDefaults as aQ,
42646
+ getRunFieldChar as aR,
42647
+ getRunFieldInstruction as aS,
42648
+ createEditorRun as aT,
42649
+ JSZip as aU,
42650
+ imageExtensionFromMime as aV,
42651
+ pxToPt as aW,
42652
+ resolveFloatingObjectRect as aX,
42653
+ getTextBoxFloatingGeometry as aY,
42654
+ getPresetPathSegments as aZ,
42655
+ buildListLabels as a_,
42597
42656
  CaretOverlay as aa,
42598
42657
  Show as ab,
42599
42658
  createRenderEffect as ac,
@@ -42621,128 +42680,133 @@ export {
42621
42680
  setPreciseFontPreference as ay,
42622
42681
  setWelcomeSeen as az,
42623
42682
  getPageBodyTop as b,
42624
- nextFontSizePt as b$,
42625
- isDoubleUnderlineStyle as b0,
42626
- isWavyUnderlineStyle as b1,
42627
- underlineStyleLineWidthPx as b2,
42628
- underlineStyleDashArray as b3,
42629
- resolveListLabel as b4,
42630
- getListLabelInset as b5,
42631
- getAlignedListLabelInset as b6,
42632
- getParagraphBorderInsets as b7,
42633
- buildSegmentTable as b8,
42634
- buildCanvasTableLayout as b9,
42635
- debounce as bA,
42636
- unwrap as bB,
42637
- perfTimer as bC,
42638
- getRunTextBox as bD,
42639
- createEditorDocument as bE,
42640
- resolveResizedDimensions as bF,
42641
- resolveTextBoxRenderHeight as bG,
42642
- getToolbarStyleState as bH,
42643
- getCachedCanvasImage as bI,
42644
- measureParagraphMinContentWidthPx as bJ,
42645
- getEditableBlocksForZone as bK,
42646
- findParagraphLocation as bL,
42647
- createSectionBoundaryParagraph as bM,
42648
- normalizePageSettings as bN,
42649
- DEFAULT_EDITOR_PAGE_SETTINGS as bO,
42650
- markStart as bP,
42651
- markEnd as bQ,
42652
- getParagraphEntries as bR,
42653
- getParagraphById as bS,
42654
- createEditorFootnote as bT,
42655
- createFootnoteReferenceRun as bU,
42656
- renumberFootnotes as bV,
42657
- getHeadingLevel as bW,
42658
- preciseFontModeVersion as bX,
42659
- isPreciseFontModeEnabled as bY,
42660
- resolveNamedTextStyle as bZ,
42661
- togglePreciseFontMode as b_,
42662
- resolveCanvasTableWidth as ba,
42663
- resolveFloatingTableRect as bb,
42664
- normalizeFamily as bc,
42665
- ROBOTO_FONT_FILES as bd,
42666
- loadFontAsset as be,
42667
- OFFICE_COMPAT_FONT_FAMILIES as bf,
42668
- BinaryReader as bg,
42669
- buildSfnt as bh,
42670
- defaultFontDecoderRegistry as bi,
42671
- SfntFontProgram as bj,
42672
- collectPdfFontFamilies as bk,
42673
- outlineFrom as bl,
42674
- getPageHeaderZoneTop as bm,
42675
- getPageColumnRects as bn,
42676
- findFootnoteReference as bo,
42677
- FOOTNOTE_MARKER_GUTTER_PX as bp,
42678
- resolveImporterForFile as bq,
42679
- getDocumentSectionsCanonical as br,
42680
- getDocumentParagraphsCanonical as bs,
42681
- getDocumentParagraphs as bt,
42682
- getDocumentPageSettings as bu,
42683
- getTableCellContentWidthForParagraph as bv,
42684
- layoutMetricsEpoch as bw,
42685
- bumpLayoutMetricsEpoch as bx,
42686
- createCanvasLayoutSnapshotProvider as by,
42687
- on as bz,
42683
+ getHeadingLevel as b$,
42684
+ textStyleToFontSizePt as b0,
42685
+ PX_PER_POINT as b1,
42686
+ DEFAULT_FONT_SIZE_PX as b2,
42687
+ resolveOpenTypeFeatureTags as b3,
42688
+ rgb255ToHex as b4,
42689
+ isDoubleUnderlineStyle as b5,
42690
+ isWavyUnderlineStyle as b6,
42691
+ underlineStyleLineWidthPx as b7,
42692
+ underlineStyleDashArray as b8,
42693
+ resolveListLabel as b9,
42694
+ getTableCellContentWidthForParagraph as bA,
42695
+ layoutMetricsEpoch as bB,
42696
+ bumpLayoutMetricsEpoch as bC,
42697
+ createCanvasLayoutSnapshotProvider as bD,
42698
+ on as bE,
42699
+ debounce as bF,
42700
+ unwrap as bG,
42701
+ perfTimer as bH,
42702
+ getRunTextBox as bI,
42703
+ createEditorDocument as bJ,
42704
+ resolveResizedDimensions as bK,
42705
+ resolveTextBoxRenderHeight as bL,
42706
+ getToolbarStyleState as bM,
42707
+ getCachedCanvasImage as bN,
42708
+ measureParagraphMinContentWidthPx as bO,
42709
+ getEditableBlocksForZone as bP,
42710
+ findParagraphLocation as bQ,
42711
+ createSectionBoundaryParagraph as bR,
42712
+ normalizePageSettings as bS,
42713
+ DEFAULT_EDITOR_PAGE_SETTINGS as bT,
42714
+ markStart as bU,
42715
+ markEnd as bV,
42716
+ getParagraphEntries as bW,
42717
+ getParagraphById as bX,
42718
+ createEditorFootnote as bY,
42719
+ createFootnoteReferenceRun as bZ,
42720
+ renumberFootnotes as b_,
42721
+ getListLabelInset as ba,
42722
+ getAlignedListLabelInset as bb,
42723
+ getParagraphBorderInsets as bc,
42724
+ buildSegmentTable as bd,
42725
+ buildCanvasTableLayout as be,
42726
+ resolveCanvasTableWidth as bf,
42727
+ resolveFloatingTableRect as bg,
42728
+ normalizeFamily as bh,
42729
+ ROBOTO_FONT_FILES as bi,
42730
+ loadFontAsset as bj,
42731
+ OFFICE_COMPAT_FONT_FAMILIES as bk,
42732
+ BinaryReader as bl,
42733
+ buildSfnt as bm,
42734
+ defaultFontDecoderRegistry as bn,
42735
+ SfntFontProgram as bo,
42736
+ collectPdfFontFamilies as bp,
42737
+ outlineFrom as bq,
42738
+ getPageHeaderZoneTop as br,
42739
+ getPageColumnRects as bs,
42740
+ findFootnoteReference as bt,
42741
+ FOOTNOTE_MARKER_GUTTER_PX as bu,
42742
+ resolveImporterForFile as bv,
42743
+ getDocumentSectionsCanonical as bw,
42744
+ getDocumentParagraphsCanonical as bx,
42745
+ getDocumentParagraphs as by,
42746
+ getDocumentPageSettings as bz,
42688
42747
  getPageBodyBottom as c,
42689
- previousFontSizePt as c0,
42690
- fontSizePtToPx as c1,
42691
- createDefaultToolbarPreset as c2,
42692
- MenuRegistry as c3,
42693
- createToolbarRegistry as c4,
42694
- Editor as c5,
42695
- resolveCommandRef as c6,
42696
- commandRefName as c7,
42697
- createOasisEditorClient as c8,
42698
- createEditorZoom as c9,
42699
- OasisEditorContainer as cA,
42700
- PluginCollection as cB,
42701
- Popover as cC,
42702
- RIBBON_TABS as cD,
42703
- Select as cE,
42704
- SelectField as cF,
42705
- Separator as cG,
42706
- SidePanel as cH,
42707
- SidePanelBody as cI,
42708
- SidePanelFooter as cJ,
42709
- SidePanelHeader as cK,
42710
- SplitButton as cL,
42711
- StyleGallery as cM,
42712
- TextField as cN,
42713
- Button$1 as cO,
42714
- buildRibbonTabDefinitions as cP,
42715
- createEditorCommandBus as cQ,
42716
- createOasisEditor as cR,
42717
- createOasisEditorContainer as cS,
42718
- mount as cT,
42719
- registerToolbarRenderer as cU,
42720
- startLongTaskObserver as ca,
42721
- installGlobalReport as cb,
42722
- applyStoredPreciseFontPreference as cc,
42723
- getWelcomeSeen as cd,
42724
- isLocalFontAccessSupported as ce,
42725
- EDITOR_SCROLL_PADDING_PX as cf,
42726
- Toolbar as cg,
42727
- OasisEditorLoading as ch,
42728
- I18nProvider as ci,
42729
- createTranslator as cj,
42730
- createEditorLogger as ck,
42731
- registerDomStatsSurface as cl,
42732
- Button as cm,
42733
- Checkbox as cn,
42734
- ColorPicker as co,
42735
- CommandRegistry as cp,
42736
- DEFAULT_PALETTE as cq,
42737
- DialogFooter as cr,
42738
- FloatingActionButton as cs,
42739
- GridPicker as ct,
42740
- IconButton as cu,
42741
- Menu as cv,
42742
- OASIS_BUILTIN_COMMANDS as cw,
42743
- OASIS_MENU_ITEMS as cx,
42744
- OASIS_TOOLBAR_ITEMS as cy,
42745
- OasisEditorAppLazy as cz,
42748
+ preciseFontModeVersion as c0,
42749
+ isPreciseFontModeEnabled as c1,
42750
+ resolveNamedTextStyle as c2,
42751
+ togglePreciseFontMode as c3,
42752
+ nextFontSizePt as c4,
42753
+ previousFontSizePt as c5,
42754
+ fontSizePtToPx as c6,
42755
+ createDefaultToolbarPreset as c7,
42756
+ MenuRegistry as c8,
42757
+ createToolbarRegistry as c9,
42758
+ Menu as cA,
42759
+ OASIS_BUILTIN_COMMANDS as cB,
42760
+ OASIS_MENU_ITEMS as cC,
42761
+ OASIS_TOOLBAR_ITEMS as cD,
42762
+ OasisEditorAppLazy as cE,
42763
+ OasisEditorContainer as cF,
42764
+ PluginCollection as cG,
42765
+ Popover as cH,
42766
+ RIBBON_TABS as cI,
42767
+ Select as cJ,
42768
+ SelectField as cK,
42769
+ Separator as cL,
42770
+ SidePanel as cM,
42771
+ SidePanelBody as cN,
42772
+ SidePanelFooter as cO,
42773
+ SidePanelHeader as cP,
42774
+ SplitButton as cQ,
42775
+ StyleGallery as cR,
42776
+ TextField as cS,
42777
+ Button$1 as cT,
42778
+ buildRibbonTabDefinitions as cU,
42779
+ createEditorCommandBus as cV,
42780
+ createOasisEditor as cW,
42781
+ createOasisEditorContainer as cX,
42782
+ mount as cY,
42783
+ registerToolbarRenderer as cZ,
42784
+ Editor as ca,
42785
+ resolveCommandRef as cb,
42786
+ commandRefName as cc,
42787
+ createOasisEditorClient as cd,
42788
+ createEditorZoom as ce,
42789
+ startLongTaskObserver as cf,
42790
+ installGlobalReport as cg,
42791
+ applyStoredPreciseFontPreference as ch,
42792
+ getWelcomeSeen as ci,
42793
+ isLocalFontAccessSupported as cj,
42794
+ EDITOR_SCROLL_PADDING_PX as ck,
42795
+ Toolbar as cl,
42796
+ OasisEditorLoading as cm,
42797
+ I18nProvider as cn,
42798
+ createTranslator as co,
42799
+ createEditorLogger as cp,
42800
+ registerDomStatsSurface as cq,
42801
+ Button as cr,
42802
+ Checkbox as cs,
42803
+ ColorPicker as ct,
42804
+ CommandRegistry as cu,
42805
+ DEFAULT_PALETTE as cv,
42806
+ DialogFooter as cw,
42807
+ FloatingActionButton as cx,
42808
+ GridPicker as cy,
42809
+ IconButton as cz,
42746
42810
  domTextMeasurer as d,
42747
42811
  estimateTableBlockHeight as e,
42748
42812
  getFootnoteDisplayMarker as f,