@univerjs/engine-render 0.16.1-insiders.20260311-074e8ca → 0.17.0

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/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var M8 = Object.defineProperty;
2
2
  var I8 = (r, t, e) => t in r ? M8(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var k = (r, t, e) => I8(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { Tools as d1, Rectangle as R3, DEFAULT_STYLES as d2, FontStyleType as Se, BaselineOffset as m3, ColorKit as d4, getCellInfoInMergeData as L8, checkParagraphHasIndentByStyle as P8, DataStreamTreeTokenType as t1, BorderStyleTypes as l1, Disposable as D2, BooleanNumber as r1, EventSubject as i1, DisposableCollection as N8, toDisposable as K1, sortRules as g2, Registry as w0, Range as H3, numberToABC as $8, HorizontalAlign as k1, VerticalAlign as m2, CellValueType as A2, TextDecoration as u1, insertTextToContent as U8, horizontalLineSegmentsSubtraction as H8, deleteContent as G8, DataStreamTreeNodeType as G1, GridType as U1, BulletAlignment as L0, TableTextWrapType as Qe, PositionedObjectLayoutType as Z1, WrapTextType as Ye, ColumnSeparatorType as de, TableRowHeightRule as ie, VerticalAlignmentType as V2, TableAlignmentType as P0, NAMED_STYLE_SPACE_MAP as q8, ObjectRelativeFromV as _1, SpacingRule as e0, CustomDecorationType as W8, CustomRangeType as N0, ObjectMatrix as X1, SectionType as t0, NumberUnitType as Y8, DocumentFlavor as u7, WrapStrategy as M1, PageOrientType as $4, NAMED_STYLE_MAP as X8, mergeWith as b6, AlignTypeH as l3, ObjectRelativeFromH as j1, AlignTypeV as J3, ListGlyphType as S3, numberToListABC as d7, Skeleton as V8, PRESET_LIST_TYPE as K8, DocumentDataModel as c4, DEFAULT_EMPTY_DOCUMENT_VALUE as c7, Inject as b3, LocaleService as Z8, Injector as C0, SheetSkeleton as J8, extractPureTextFromCell as g7, addLinkToDocumentModel as Q8, searchArray as Te, isNullCell as ea, getColorStyle as y3, isWhiteColor as y6, IContextService as ta, IConfigService as h7, requestImmediateMacroTask as k7, COLORS as z6, createIdentifier as U4, ThemeService as m7, invertColorByMatrix as aa, MOVE_BUFFER_VALUE as _6, sortRulesByDesc as D6, isClassDependencyItem as ra, remove as j6, UniverInstanceType as sa, IUniverInstanceService as na, Plugin as ia, merge as oa, registerDependencies as la } from "@univerjs/core";
4
+ import { Tools as d1, DEFAULT_STYLES as d2, FontStyleType as Se, BaselineOffset as m3, getCellInfoInMergeData as L8, Rectangle as R3, ColorKit as d4, checkParagraphHasIndentByStyle as P8, DataStreamTreeTokenType as t1, BorderStyleTypes as l1, Disposable as D2, BooleanNumber as r1, EventSubject as i1, DisposableCollection as N8, toDisposable as K1, sortRules as g2, Registry as w0, Range as H3, numberToABC as $8, HorizontalAlign as k1, VerticalAlign as m2, CellValueType as A2, TextDecoration as u1, insertTextToContent as U8, horizontalLineSegmentsSubtraction as H8, deleteContent as G8, DataStreamTreeNodeType as G1, GridType as U1, BulletAlignment as L0, TableTextWrapType as Qe, PositionedObjectLayoutType as Z1, WrapTextType as Ye, ColumnSeparatorType as de, TableRowHeightRule as ie, VerticalAlignmentType as V2, TableAlignmentType as P0, NAMED_STYLE_SPACE_MAP as q8, ObjectRelativeFromV as _1, SpacingRule as e0, CustomDecorationType as W8, CustomRangeType as N0, ObjectMatrix as X1, SectionType as t0, NumberUnitType as Y8, DocumentFlavor as u7, WrapStrategy as M1, PageOrientType as $4, NAMED_STYLE_MAP as X8, mergeWith as b6, AlignTypeH as l3, ObjectRelativeFromH as j1, AlignTypeV as J3, ListGlyphType as S3, numberToListABC as d7, Skeleton as V8, PRESET_LIST_TYPE as K8, DocumentDataModel as c4, DEFAULT_EMPTY_DOCUMENT_VALUE as c7, Inject as b3, LocaleService as Z8, IContextService as J8, IConfigService as g7, Injector as C0, SheetSkeleton as Q8, extractPureTextFromCell as h7, addLinkToDocumentModel as ea, searchArray as Te, isNullCell as ta, getColorStyle as y3, isWhiteColor as y6, requestImmediateMacroTask as k7, COLORS as z6, createIdentifier as U4, ThemeService as m7, invertColorByMatrix as aa, MOVE_BUFFER_VALUE as _6, sortRulesByDesc as D6, isClassDependencyItem as ra, IUniverInstanceService as sa, remove as j6, UniverInstanceType as na, Plugin as ia, merge as oa, registerDependencies as la } from "@univerjs/core";
5
5
  import { BehaviorSubject as I3, Subject as $1, startWith as ua, distinctUntilChanged as p7, Subscription as da, Observable as f7, shareReplay as ca, debounceTime as ga } from "rxjs";
6
6
  class ha {
7
7
  isEmpty() {
@@ -56561,7 +56561,7 @@ const Z5 = {
56561
56561
  l: 2,
56562
56562
  r: 2
56563
56563
  }, Bx = "RENDER_RAW_FORMULA", Ge = 100;
56564
- let J5 = class extends J8 {
56564
+ let J5 = class extends Q8 {
56565
56565
  constructor(t, e, a, s, n, i) {
56566
56566
  super(t, e, a, s, n, i);
56567
56567
  /**
@@ -57133,14 +57133,14 @@ let J5 = class extends J8 {
57133
57133
  } else if (t.v != null) {
57134
57134
  const m = K5(i);
57135
57135
  l = c3(m).fontCache;
57136
- let v = g7(t);
57136
+ let v = h7(t);
57137
57137
  t.t === A2.FORCE_STRING && s && (v = `'${v}`), o = Ue(v, m, {
57138
57138
  ...u,
57139
57139
  textRotation: d,
57140
57140
  cellValueType: t.t
57141
57141
  });
57142
57142
  }
57143
- return o && t.linkUrl && t.linkId && Q8(o, t.linkUrl, t.linkId), {
57143
+ return o && t.linkUrl && t.linkId && ea(o, t.linkUrl, t.linkId), {
57144
57144
  documentModel: o,
57145
57145
  fontString: l,
57146
57146
  textRotation: d,
@@ -57300,7 +57300,7 @@ let J5 = class extends J8 {
57300
57300
  }
57301
57301
  _setFontStylesCache(t, e, a, s) {
57302
57302
  var g;
57303
- if (ea(a)) return;
57303
+ if (ta(a)) return;
57304
57304
  let n = {
57305
57305
  cellData: a,
57306
57306
  imageCacheMap: this._imageCacheMap
@@ -57469,8 +57469,8 @@ let J5 = class extends J8 {
57469
57469
  };
57470
57470
  J5 = Tx([
57471
57471
  He(2, b3(Z8)),
57472
- He(3, ta),
57473
- He(4, h7),
57472
+ He(3, J8),
57473
+ He(4, g7),
57474
57474
  He(5, b3(C0))
57475
57475
  ], J5);
57476
57476
  function lA(r, t, e) {
@@ -57732,7 +57732,7 @@ class Mx extends C3 {
57732
57732
  if (!o) return;
57733
57733
  const l = (S = (x = o.style) == null ? void 0 : x.pd) != null ? S : h2, u = (F = l.l) != null ? F : h2.l, d = (T = l.r) != null ? T : h2.r, g = (R = l.t) != null ? R : h2.t, c = (B = l.b) != null ? B : h2.b, { vertexAngle: h = 0, wrapStrategy: p, cellData: f } = o;
57734
57734
  if ((f == null ? void 0 : f.v) === void 0 || (f == null ? void 0 : f.v) === null) return;
57735
- const m = g7(f), { startX: v, startY: b, endX: z, endY: _ } = n, j = z - v - u - d, w = _ - b - g - c;
57735
+ const m = h7(f), { startX: v, startY: b, endX: z, endY: _ } = n, j = z - v - u - d, w = _ - b - g - c;
57736
57736
  let C = o.horizontalAlign;
57737
57737
  o.horizontalAlign === k1.UNSPECIFIED && (f.t === A2.NUMBER || !d1.isDefine(f.t) && typeof f.v == "number" ? C = k1.RIGHT : f.t === A2.BOOLEAN && (C = k1.CENTER)), J4.drawWith(e, {
57738
57738
  text: m,
@@ -62170,7 +62170,7 @@ let ye = class extends D2 {
62170
62170
  ye = OE([
62171
62171
  ME(2, A8)
62172
62172
  ], ye);
62173
- const IE = "@univerjs/engine-render", LE = "0.16.1-insiders.20260311-074e8ca", n7 = {
62173
+ const IE = "@univerjs/engine-render", LE = "0.17.0", n7 = {
62174
62174
  name: IE,
62175
62175
  version: LE
62176
62176
  }, PE = "engine-render.config", i7 = {}, b2 = class b2 extends D2 {
@@ -64545,7 +64545,7 @@ let N4 = class extends D2 {
64545
64545
  } else
64546
64546
  d = {
64547
64547
  isThumbNail: !0,
64548
- type: sa.UNIVER_SLIDE,
64548
+ type: na.UNIVER_SLIDE,
64549
64549
  unitId: t,
64550
64550
  engine: e,
64551
64551
  scene: l,
@@ -64596,7 +64596,7 @@ let N4 = class extends D2 {
64596
64596
  };
64597
64597
  N4 = QE([
64598
64598
  u4(0, b3(C0)),
64599
- u4(1, na),
64599
+ u4(1, sa),
64600
64600
  u4(2, b3(m7))
64601
64601
  ], N4);
64602
64602
  const aF = U4("engine-render.render-manager.service");
@@ -64658,7 +64658,7 @@ let l7 = (ae = class extends ia {
64658
64658
  }, k(ae, "pluginName", uF), k(ae, "packageName", n7.name), k(ae, "version", n7.version), ae);
64659
64659
  l7 = oF([
64660
64660
  o7(1, b3(C0)),
64661
- o7(2, h7)
64661
+ o7(2, g7)
64662
64662
  ], l7);
64663
64663
  function dF(r, t) {
64664
64664
  if (t.startRow >= r.endRow || t.endRow <= r.startRow || t.startColumn >= r.endColumn || t.endColumn <= r.startColumn)
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var M8 = Object.defineProperty;
2
2
  var I8 = (r, t, e) => t in r ? M8(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var k = (r, t, e) => I8(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { Tools as d1, Rectangle as R3, DEFAULT_STYLES as d2, FontStyleType as Se, BaselineOffset as m3, ColorKit as d4, getCellInfoInMergeData as L8, checkParagraphHasIndentByStyle as P8, DataStreamTreeTokenType as t1, BorderStyleTypes as l1, Disposable as D2, BooleanNumber as r1, EventSubject as i1, DisposableCollection as N8, toDisposable as K1, sortRules as g2, Registry as w0, Range as H3, numberToABC as $8, HorizontalAlign as k1, VerticalAlign as m2, CellValueType as A2, TextDecoration as u1, insertTextToContent as U8, horizontalLineSegmentsSubtraction as H8, deleteContent as G8, DataStreamTreeNodeType as G1, GridType as U1, BulletAlignment as L0, TableTextWrapType as Qe, PositionedObjectLayoutType as Z1, WrapTextType as Ye, ColumnSeparatorType as de, TableRowHeightRule as ie, VerticalAlignmentType as V2, TableAlignmentType as P0, NAMED_STYLE_SPACE_MAP as q8, ObjectRelativeFromV as _1, SpacingRule as e0, CustomDecorationType as W8, CustomRangeType as N0, ObjectMatrix as X1, SectionType as t0, NumberUnitType as Y8, DocumentFlavor as u7, WrapStrategy as M1, PageOrientType as $4, NAMED_STYLE_MAP as X8, mergeWith as b6, AlignTypeH as l3, ObjectRelativeFromH as j1, AlignTypeV as J3, ListGlyphType as S3, numberToListABC as d7, Skeleton as V8, PRESET_LIST_TYPE as K8, DocumentDataModel as c4, DEFAULT_EMPTY_DOCUMENT_VALUE as c7, Inject as b3, LocaleService as Z8, Injector as C0, SheetSkeleton as J8, extractPureTextFromCell as g7, addLinkToDocumentModel as Q8, searchArray as Te, isNullCell as ea, getColorStyle as y3, isWhiteColor as y6, IContextService as ta, IConfigService as h7, requestImmediateMacroTask as k7, COLORS as z6, createIdentifier as U4, ThemeService as m7, invertColorByMatrix as aa, MOVE_BUFFER_VALUE as _6, sortRulesByDesc as D6, isClassDependencyItem as ra, remove as j6, UniverInstanceType as sa, IUniverInstanceService as na, Plugin as ia, merge as oa, registerDependencies as la } from "@univerjs/core";
4
+ import { Tools as d1, DEFAULT_STYLES as d2, FontStyleType as Se, BaselineOffset as m3, getCellInfoInMergeData as L8, Rectangle as R3, ColorKit as d4, checkParagraphHasIndentByStyle as P8, DataStreamTreeTokenType as t1, BorderStyleTypes as l1, Disposable as D2, BooleanNumber as r1, EventSubject as i1, DisposableCollection as N8, toDisposable as K1, sortRules as g2, Registry as w0, Range as H3, numberToABC as $8, HorizontalAlign as k1, VerticalAlign as m2, CellValueType as A2, TextDecoration as u1, insertTextToContent as U8, horizontalLineSegmentsSubtraction as H8, deleteContent as G8, DataStreamTreeNodeType as G1, GridType as U1, BulletAlignment as L0, TableTextWrapType as Qe, PositionedObjectLayoutType as Z1, WrapTextType as Ye, ColumnSeparatorType as de, TableRowHeightRule as ie, VerticalAlignmentType as V2, TableAlignmentType as P0, NAMED_STYLE_SPACE_MAP as q8, ObjectRelativeFromV as _1, SpacingRule as e0, CustomDecorationType as W8, CustomRangeType as N0, ObjectMatrix as X1, SectionType as t0, NumberUnitType as Y8, DocumentFlavor as u7, WrapStrategy as M1, PageOrientType as $4, NAMED_STYLE_MAP as X8, mergeWith as b6, AlignTypeH as l3, ObjectRelativeFromH as j1, AlignTypeV as J3, ListGlyphType as S3, numberToListABC as d7, Skeleton as V8, PRESET_LIST_TYPE as K8, DocumentDataModel as c4, DEFAULT_EMPTY_DOCUMENT_VALUE as c7, Inject as b3, LocaleService as Z8, IContextService as J8, IConfigService as g7, Injector as C0, SheetSkeleton as Q8, extractPureTextFromCell as h7, addLinkToDocumentModel as ea, searchArray as Te, isNullCell as ta, getColorStyle as y3, isWhiteColor as y6, requestImmediateMacroTask as k7, COLORS as z6, createIdentifier as U4, ThemeService as m7, invertColorByMatrix as aa, MOVE_BUFFER_VALUE as _6, sortRulesByDesc as D6, isClassDependencyItem as ra, IUniverInstanceService as sa, remove as j6, UniverInstanceType as na, Plugin as ia, merge as oa, registerDependencies as la } from "@univerjs/core";
5
5
  import { BehaviorSubject as I3, Subject as $1, startWith as ua, distinctUntilChanged as p7, Subscription as da, Observable as f7, shareReplay as ca, debounceTime as ga } from "rxjs";
6
6
  class ha {
7
7
  isEmpty() {
@@ -56561,7 +56561,7 @@ const Z5 = {
56561
56561
  l: 2,
56562
56562
  r: 2
56563
56563
  }, Bx = "RENDER_RAW_FORMULA", Ge = 100;
56564
- let J5 = class extends J8 {
56564
+ let J5 = class extends Q8 {
56565
56565
  constructor(t, e, a, s, n, i) {
56566
56566
  super(t, e, a, s, n, i);
56567
56567
  /**
@@ -57133,14 +57133,14 @@ let J5 = class extends J8 {
57133
57133
  } else if (t.v != null) {
57134
57134
  const m = K5(i);
57135
57135
  l = c3(m).fontCache;
57136
- let v = g7(t);
57136
+ let v = h7(t);
57137
57137
  t.t === A2.FORCE_STRING && s && (v = `'${v}`), o = Ue(v, m, {
57138
57138
  ...u,
57139
57139
  textRotation: d,
57140
57140
  cellValueType: t.t
57141
57141
  });
57142
57142
  }
57143
- return o && t.linkUrl && t.linkId && Q8(o, t.linkUrl, t.linkId), {
57143
+ return o && t.linkUrl && t.linkId && ea(o, t.linkUrl, t.linkId), {
57144
57144
  documentModel: o,
57145
57145
  fontString: l,
57146
57146
  textRotation: d,
@@ -57300,7 +57300,7 @@ let J5 = class extends J8 {
57300
57300
  }
57301
57301
  _setFontStylesCache(t, e, a, s) {
57302
57302
  var g;
57303
- if (ea(a)) return;
57303
+ if (ta(a)) return;
57304
57304
  let n = {
57305
57305
  cellData: a,
57306
57306
  imageCacheMap: this._imageCacheMap
@@ -57469,8 +57469,8 @@ let J5 = class extends J8 {
57469
57469
  };
57470
57470
  J5 = Tx([
57471
57471
  He(2, b3(Z8)),
57472
- He(3, ta),
57473
- He(4, h7),
57472
+ He(3, J8),
57473
+ He(4, g7),
57474
57474
  He(5, b3(C0))
57475
57475
  ], J5);
57476
57476
  function lA(r, t, e) {
@@ -57732,7 +57732,7 @@ class Mx extends C3 {
57732
57732
  if (!o) return;
57733
57733
  const l = (S = (x = o.style) == null ? void 0 : x.pd) != null ? S : h2, u = (F = l.l) != null ? F : h2.l, d = (T = l.r) != null ? T : h2.r, g = (R = l.t) != null ? R : h2.t, c = (B = l.b) != null ? B : h2.b, { vertexAngle: h = 0, wrapStrategy: p, cellData: f } = o;
57734
57734
  if ((f == null ? void 0 : f.v) === void 0 || (f == null ? void 0 : f.v) === null) return;
57735
- const m = g7(f), { startX: v, startY: b, endX: z, endY: _ } = n, j = z - v - u - d, w = _ - b - g - c;
57735
+ const m = h7(f), { startX: v, startY: b, endX: z, endY: _ } = n, j = z - v - u - d, w = _ - b - g - c;
57736
57736
  let C = o.horizontalAlign;
57737
57737
  o.horizontalAlign === k1.UNSPECIFIED && (f.t === A2.NUMBER || !d1.isDefine(f.t) && typeof f.v == "number" ? C = k1.RIGHT : f.t === A2.BOOLEAN && (C = k1.CENTER)), J4.drawWith(e, {
57738
57738
  text: m,
@@ -62170,7 +62170,7 @@ let ye = class extends D2 {
62170
62170
  ye = OE([
62171
62171
  ME(2, A8)
62172
62172
  ], ye);
62173
- const IE = "@univerjs/engine-render", LE = "0.16.1-insiders.20260311-074e8ca", n7 = {
62173
+ const IE = "@univerjs/engine-render", LE = "0.17.0", n7 = {
62174
62174
  name: IE,
62175
62175
  version: LE
62176
62176
  }, PE = "engine-render.config", i7 = {}, b2 = class b2 extends D2 {
@@ -64545,7 +64545,7 @@ let N4 = class extends D2 {
64545
64545
  } else
64546
64546
  d = {
64547
64547
  isThumbNail: !0,
64548
- type: sa.UNIVER_SLIDE,
64548
+ type: na.UNIVER_SLIDE,
64549
64549
  unitId: t,
64550
64550
  engine: e,
64551
64551
  scene: l,
@@ -64596,7 +64596,7 @@ let N4 = class extends D2 {
64596
64596
  };
64597
64597
  N4 = QE([
64598
64598
  u4(0, b3(C0)),
64599
- u4(1, na),
64599
+ u4(1, sa),
64600
64600
  u4(2, b3(m7))
64601
64601
  ], N4);
64602
64602
  const aF = U4("engine-render.render-manager.service");
@@ -64658,7 +64658,7 @@ let l7 = (ae = class extends ia {
64658
64658
  }, k(ae, "pluginName", uF), k(ae, "packageName", n7.name), k(ae, "version", n7.version), ae);
64659
64659
  l7 = oF([
64660
64660
  o7(1, b3(C0)),
64661
- o7(2, h7)
64661
+ o7(2, g7)
64662
64662
  ], l7);
64663
64663
  function dF(r, t) {
64664
64664
  if (t.startRow >= r.endRow || t.endRow <= r.startRow || t.startColumn >= r.endColumn || t.endColumn <= r.startColumn)