@univerjs/engine-render 0.1.4 → 0.1.5
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/cjs/index.js +1 -1
- package/lib/es/index.js +83 -66
- package/lib/types/base-object.d.ts +7 -23
- package/lib/types/basics/cell-data.d.ts +2 -16
- package/lib/types/basics/document-node-tools.d.ts +4 -18
- package/lib/types/basics/draw.d.ts +5 -20
- package/lib/types/basics/font-cache.d.ts +4 -18
- package/lib/types/basics/i-document-skeleton-cached.d.ts +2 -16
- package/lib/types/basics/i-events.d.ts +2 -16
- package/lib/types/basics/interfaces.d.ts +5 -19
- package/lib/types/basics/path2.d.ts +2 -16
- package/lib/types/basics/position.d.ts +3 -17
- package/lib/types/basics/quick-event.d.ts +3 -17
- package/lib/types/basics/range.d.ts +2 -16
- package/lib/types/basics/text-rotation.d.ts +2 -16
- package/lib/types/basics/tools.d.ts +6 -20
- package/lib/types/basics/transform.d.ts +3 -17
- package/lib/types/basics/vector2.d.ts +2 -16
- package/lib/types/basics/viewport-subtract.d.ts +2 -16
- package/lib/types/canvas.d.ts +1 -15
- package/lib/types/components/component.d.ts +5 -19
- package/lib/types/components/docs/doc-component.d.ts +8 -23
- package/lib/types/components/docs/doc-extension.d.ts +3 -17
- package/lib/types/components/docs/document.d.ts +9 -26
- package/lib/types/components/docs/extensions/background.d.ts +4 -18
- package/lib/types/components/docs/extensions/border.d.ts +4 -18
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +4 -18
- package/lib/types/components/docs/extensions/line.d.ts +4 -18
- package/lib/types/components/docs/layout/block/paragraph/bullet-ruler.d.ts +1 -15
- package/lib/types/components/docs/layout/block/paragraph/bullet.d.ts +3 -17
- package/lib/types/components/docs/layout/block/paragraph/inline-drawing.d.ts +4 -18
- package/lib/types/components/docs/layout/block/paragraph/language-ruler.d.ts +9 -23
- package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +3 -17
- package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +5 -19
- package/lib/types/components/docs/layout/block/paragraph/line-adjustment.d.ts +3 -17
- package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +6 -20
- package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +6 -20
- package/lib/types/components/docs/layout/block/section.d.ts +5 -19
- package/lib/types/components/docs/layout/doc-skeleton.d.ts +7 -22
- package/lib/types/components/docs/layout/linebreak/extensions/tab-linebreak-extension.d.ts +2 -16
- package/lib/types/components/docs/layout/linebreak/linebreaker.d.ts +2 -16
- package/lib/types/components/docs/layout/model/column.d.ts +3 -18
- package/lib/types/components/docs/layout/model/glyph.d.ts +3 -18
- package/lib/types/components/docs/layout/model/line.d.ts +2 -16
- package/lib/types/components/docs/layout/model/page.d.ts +3 -18
- package/lib/types/components/docs/layout/model/section.d.ts +3 -18
- package/lib/types/components/docs/layout/tools.d.ts +7 -22
- package/lib/types/components/docs/liquid.d.ts +2 -17
- package/lib/types/components/docs/text-selection/convert-cursor.d.ts +6 -20
- package/lib/types/components/docs/text-selection/text-range.d.ts +10 -25
- package/lib/types/components/docs/text-selection/text-selection-render-manager.d.ts +12 -27
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +2 -17
- package/lib/types/components/docs/view-model/document-view-model.d.ts +8 -23
- package/lib/types/components/extension.d.ts +5 -20
- package/lib/types/components/sheets/column-header.d.ts +5 -19
- package/lib/types/components/sheets/extensions/background.d.ts +4 -18
- package/lib/types/components/sheets/extensions/border.d.ts +4 -18
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +4 -18
- package/lib/types/components/sheets/extensions/font.d.ts +4 -18
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +4 -18
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +4 -18
- package/lib/types/components/sheets/interfaces.d.ts +4 -18
- package/lib/types/components/sheets/row-header.d.ts +5 -19
- package/lib/types/components/sheets/sheet-component.d.ts +6 -20
- package/lib/types/components/sheets/sheet-skeleton.d.ts +8 -23
- package/lib/types/components/sheets/spreadsheet.d.ts +8 -22
- package/lib/types/components/skeleton.d.ts +2 -16
- package/lib/types/components/slides/slide.d.ts +5 -20
- package/lib/types/custom/custom-object.d.ts +3 -17
- package/lib/types/engine.d.ts +7 -19
- package/lib/types/group.d.ts +4 -19
- package/lib/types/layer.d.ts +4 -18
- package/lib/types/render-engine.d.ts +4 -18
- package/lib/types/render-manager.service.d.ts +9 -23
- package/lib/types/scene-viewer.d.ts +7 -21
- package/lib/types/scene.d.ts +14 -29
- package/lib/types/scene.input-manager.d.ts +3 -17
- package/lib/types/scene.transformer.d.ts +5 -20
- package/lib/types/scroll-timer.d.ts +4 -18
- package/lib/types/services/object-transform-manager.service.d.ts +4 -18
- package/lib/types/shape/base-scroll-bar.d.ts +7 -21
- package/lib/types/shape/circle.d.ts +3 -18
- package/lib/types/shape/path.d.ts +3 -18
- package/lib/types/shape/picture.d.ts +4 -19
- package/lib/types/shape/rect.d.ts +3 -18
- package/lib/types/shape/regular-polygon.d.ts +5 -20
- package/lib/types/shape/rich-text.d.ts +4 -18
- package/lib/types/shape/scroll-bar.d.ts +6 -21
- package/lib/types/shape/shape.d.ts +5 -19
- package/lib/types/thin-engine.d.ts +6 -21
- package/lib/types/thin-scene.d.ts +8 -24
- package/lib/types/viewport.d.ts +9 -25
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/es/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var mt = Object.defineProperty;
|
|
2
2
|
var Ft = (r, e, t) => e in r ? mt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var h = (r, e, t) => (Ft(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { Tools as y1, FontStyleType as W2, BaselineOffset as b2, Observable as j, requestImmediateMacroTask as Ct, checkParagraphHasIndentByStyle as Et, DataStreamTreeTokenType as Y, BorderStyleTypes as m1, BooleanNumber as K, DisposableCollection as bt, toDisposable as
|
|
4
|
+
import { Tools as y1, FontStyleType as W2, BaselineOffset as b2, Observable as j, requestImmediateMacroTask as Ct, checkParagraphHasIndentByStyle as Et, DataStreamTreeTokenType as Y, BorderStyleTypes as m1, BooleanNumber as K, DisposableCollection as bt, toDisposable as O1, sortRules as L1, Registry as D6, Rectangle as y6, numberToABC as vt, ObjectMatrix as T1, GridType as S1, NumberUnitType as St, SpacingRule as X6, AlignTypeH as e2, ObjectRelativeFromH as e1, ObjectRelativeFromV as n1, AlignTypeV as T2, LocaleService as h4, Disposable as c2, ColumnSeparatorType as t6, BulletAlignment as B6, PageOrientType as n7, PositionedObjectLayoutType as z1, WrapTextType as V2, GlyphType as g2, numberToListABC as D4, HorizontalAlign as V, DataStreamTreeNodeType as a1, SectionType as Y6, PRESET_LIST_TYPE as yt, VerticalAlign as i2, WrapStrategy as F1, insertTextToContent as Bt, horizontalLineSegmentsSubtraction as Tt, deleteContent as wt, DocumentDataModel as e6, searchArray as U1, extractPureTextFromCell as Ot, CellValueType as I2, isEmptyCell as v7, isNullCell as At, getColorStyle as a2, isWhiteColor as S7, IContextService as It, DEFAULT_EMPTY_DOCUMENT_VALUE as _4, TextDecoration as I1, COLORS as C2, sortRulesByDesc as y7, Plugin as xt, PluginType as Rt, RxDisposable as Mt, ILogService as Pt } from "@univerjs/core";
|
|
5
5
|
import { Inject as i7, createIdentifier as r7, Injector as Lt } from "@wendellhu/redi";
|
|
6
|
-
import { startWith as $t, distinctUntilChanged as Nt, BehaviorSubject as
|
|
6
|
+
import { startWith as $t, distinctUntilChanged as Nt, BehaviorSubject as R1, Subject as T6, fromEvent as V1 } from "rxjs";
|
|
7
7
|
var d4 = /* @__PURE__ */ ((r) => (r.RECT = "rect", r.CIRCLE = "circle", r.PATH = "path", r))(d4 || {}), X1 = /* @__PURE__ */ ((r) => (r.PointerMove = "PointerMove", r.PointerDown = "PointerDown", r.PointerUp = "PointerUp", r.PointerOut = "PointerOut", r.PointerLeave = "PointerLeave", r.PointerOver = "PointerOver", r.PointerEnter = "PointerEnter", r.wheel = "MouseWheel", r.KeyDown = "KeyDown", r.KeyUp = "KeyUp", r))(X1 || {}), kt = /* @__PURE__ */ ((r) => (r[r.XY = 0] = "XY", r[r.X = 1] = "X", r[r.Y = 2] = "Y", r))(kt || {});
|
|
8
8
|
const f4 = 1, o7 = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif', g4 = {
|
|
9
9
|
lines: [],
|
|
@@ -3961,7 +3961,7 @@ class P4 extends Z1 {
|
|
|
3961
3961
|
const s = new bt();
|
|
3962
3962
|
for (const n of t)
|
|
3963
3963
|
n.parent = this, this._extensions.set(n.uKey, n), s.add(
|
|
3964
|
-
|
|
3964
|
+
O1(() => {
|
|
3965
3965
|
this._extensions.delete(n.uKey);
|
|
3966
3966
|
})
|
|
3967
3967
|
);
|
|
@@ -11702,14 +11702,17 @@ function Fd(r) {
|
|
|
11702
11702
|
}
|
|
11703
11703
|
function Cd(r) {
|
|
11704
11704
|
for (const e of r.divides) {
|
|
11705
|
-
const t = e.glyphGroup
|
|
11706
|
-
if (
|
|
11707
|
-
|
|
11708
|
-
|
|
11705
|
+
const t = e.glyphGroup.length;
|
|
11706
|
+
if (t < 2)
|
|
11707
|
+
continue;
|
|
11708
|
+
const s = e.glyphGroup[0], n = e.glyphGroup[t - 1];
|
|
11709
|
+
if (c7(s.content)) {
|
|
11710
|
+
const i = s.adjustability.shrinkability[0];
|
|
11711
|
+
s.width -= i, s.adjustability.shrinkability[0] -= i, s.xOffset -= i;
|
|
11709
11712
|
}
|
|
11710
|
-
if (u7(
|
|
11711
|
-
const
|
|
11712
|
-
|
|
11713
|
+
if (u7(n.content)) {
|
|
11714
|
+
const i = n.adjustability.shrinkability[1];
|
|
11715
|
+
n.width -= i, n.adjustability.shrinkability[1] -= i;
|
|
11713
11716
|
}
|
|
11714
11717
|
}
|
|
11715
11718
|
}
|
|
@@ -14015,7 +14018,7 @@ class jd extends F6 {
|
|
|
14015
14018
|
} = this.extensionOffset, { left: F, width: m } = s, { centerAngle: E = 0, vertexAngle: b = 0 } = p, v = W1(E), y = W1(b);
|
|
14016
14019
|
t.save(), t.translateWithPrecisionRatio(_1, _1), t.beginPath();
|
|
14017
14020
|
const B = (l === K.TRUE ? a2((D = s.ts) == null ? void 0 : D.cl) : a2(c)) || u2;
|
|
14018
|
-
t.strokeStyle = B, this._setLineType(t, u ||
|
|
14021
|
+
t.strokeStyle = B, this._setLineType(t, u || I1.SINGLE);
|
|
14019
14022
|
const S = o6(
|
|
14020
14023
|
d.addByPoint(F, i),
|
|
14021
14024
|
A.create(0, 0),
|
|
@@ -14033,7 +14036,7 @@ class jd extends F6 {
|
|
|
14033
14036
|
}
|
|
14034
14037
|
}
|
|
14035
14038
|
_setLineType(t, s) {
|
|
14036
|
-
s ===
|
|
14039
|
+
s === I1.DASH_DOT_DOT_HEAVY || s === I1.DOT_DOT_DASH ? t.setLineDash([2, 2, 5, 2, 2]) : s === I1.DASH_DOT_HEAVY || s === I1.DOT_DASH ? t.setLineDash([2, 5, 2]) : s === I1.DOTTED || s === I1.DOTTED_HEAVY ? t.setLineDash([2]) : s === I1.DASH || s === I1.DASHED_HEAVY ? t.setLineDash([3]) : s === I1.DASH_LONG || s === I1.DASH_LONG_HEAVY ? t.setLineDash([6]) : t.setLineDash([0]);
|
|
14037
14040
|
}
|
|
14038
14041
|
}
|
|
14039
14042
|
k2.add(new jd());
|
|
@@ -14563,7 +14566,7 @@ class vg extends k4 {
|
|
|
14563
14566
|
if (!t || this._cacheCanvas == null)
|
|
14564
14567
|
return;
|
|
14565
14568
|
const { width: s, height: n } = t;
|
|
14566
|
-
this._cacheCanvas.setSize(s, n), this.
|
|
14569
|
+
this._cacheCanvas.setSize(s, n), this.makeForceDirty(!0);
|
|
14567
14570
|
}
|
|
14568
14571
|
_applyCache(t, s = 0, n = 0, i = 0, o = 0, a = 0, c = 0, u = 0, l = 0) {
|
|
14569
14572
|
if (!t)
|
|
@@ -15721,6 +15724,7 @@ class q6 extends Zd {
|
|
|
15721
15724
|
h(this, "_requestNewFrameHandler", -1);
|
|
15722
15725
|
h(this, "_frameId", -1);
|
|
15723
15726
|
h(this, "_usingSafari", xh());
|
|
15727
|
+
h(this, "_resizeObserver");
|
|
15724
15728
|
// FPS
|
|
15725
15729
|
h(this, "_fps", 60);
|
|
15726
15730
|
h(this, "_deltaTime", 0);
|
|
@@ -15744,7 +15748,7 @@ class q6 extends Zd {
|
|
|
15744
15748
|
width: t,
|
|
15745
15749
|
height: s,
|
|
15746
15750
|
pixelRatio: n
|
|
15747
|
-
}), this._canvasEle = this._canvas.getCanvasEle(), this._handleKeyboardAction(), this._handlePointerAction();
|
|
15751
|
+
}), this._canvasEle = this._canvas.getCanvasEle(), this._handleKeyboardAction(), this._handlePointerAction(), this._matchMediaHandler();
|
|
15748
15752
|
}
|
|
15749
15753
|
get width() {
|
|
15750
15754
|
return this._canvas.getWidth();
|
|
@@ -15789,17 +15793,18 @@ class q6 extends Zd {
|
|
|
15789
15793
|
return this._canvas.getPixelRatio();
|
|
15790
15794
|
}
|
|
15791
15795
|
setContainer(t, s = !0) {
|
|
15796
|
+
var n;
|
|
15792
15797
|
if (this._container = t, this._container.appendChild(this._canvasEle), s) {
|
|
15793
|
-
this.resize();
|
|
15794
|
-
let
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
this.resize(),
|
|
15798
|
+
this.resize(), (n = this._resizeObserver) == null || n.unobserve(this._container);
|
|
15799
|
+
let i;
|
|
15800
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
15801
|
+
i || (i = window.requestIdleCallback(() => {
|
|
15802
|
+
this.resize(), i = void 0;
|
|
15798
15803
|
}));
|
|
15799
|
-
})
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15804
|
+
}), this._resizeObserver.observe(this._container), this.disposeWithMe(
|
|
15805
|
+
O1(() => {
|
|
15806
|
+
var o;
|
|
15807
|
+
(o = this._resizeObserver) == null || o.unobserve(this._container);
|
|
15803
15808
|
})
|
|
15804
15809
|
);
|
|
15805
15810
|
}
|
|
@@ -15976,6 +15981,18 @@ class q6 extends Zd {
|
|
|
15976
15981
|
let s = w1.Mouse;
|
|
15977
15982
|
return (t.pointerType === "touch" || t.pointerType === "pen" || t.touches) && (s = w1.Touch), s;
|
|
15978
15983
|
}
|
|
15984
|
+
_matchMediaHandler() {
|
|
15985
|
+
if (!(window != null && window.matchMedia))
|
|
15986
|
+
return;
|
|
15987
|
+
const t = window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`), s = () => {
|
|
15988
|
+
this.resize();
|
|
15989
|
+
};
|
|
15990
|
+
t.addEventListener("change", s), this.disposeWithMe(
|
|
15991
|
+
O1(() => {
|
|
15992
|
+
t.removeEventListener("change", s);
|
|
15993
|
+
})
|
|
15994
|
+
);
|
|
15995
|
+
}
|
|
15979
15996
|
}
|
|
15980
15997
|
class qd extends Z1 {
|
|
15981
15998
|
constructor(t, ...s) {
|
|
@@ -16176,7 +16193,7 @@ class Qd extends c2 {
|
|
|
16176
16193
|
}
|
|
16177
16194
|
_layerBehavior(t) {
|
|
16178
16195
|
this.disposeWithMe(
|
|
16179
|
-
|
|
16196
|
+
O1(
|
|
16180
16197
|
t.onTransformChangeObservable.add(() => {
|
|
16181
16198
|
this.makeDirty(!0);
|
|
16182
16199
|
})
|
|
@@ -16185,7 +16202,7 @@ class Qd extends c2 {
|
|
|
16185
16202
|
}
|
|
16186
16203
|
_initialCacheCanvas() {
|
|
16187
16204
|
this._cacheCanvas = new N2(), this.disposeWithMe(
|
|
16188
|
-
|
|
16205
|
+
O1(
|
|
16189
16206
|
this._scene.getEngine().onTransformChangeObservable.add(() => {
|
|
16190
16207
|
this._resizeCacheCanvas();
|
|
16191
16208
|
})
|
|
@@ -16291,7 +16308,7 @@ class $2 {
|
|
|
16291
16308
|
}
|
|
16292
16309
|
}
|
|
16293
16310
|
const ef = ["radius"];
|
|
16294
|
-
class
|
|
16311
|
+
class A1 extends Y2 {
|
|
16295
16312
|
constructor(t, s) {
|
|
16296
16313
|
super(t, s);
|
|
16297
16314
|
h(this, "_radius", 0);
|
|
@@ -16320,7 +16337,7 @@ class O1 extends Y2 {
|
|
|
16320
16337
|
};
|
|
16321
16338
|
}
|
|
16322
16339
|
_draw(t) {
|
|
16323
|
-
|
|
16340
|
+
A1.drawWith(t, this);
|
|
16324
16341
|
}
|
|
16325
16342
|
}
|
|
16326
16343
|
const sf = [
|
|
@@ -16395,7 +16412,7 @@ class nf extends c2 {
|
|
|
16395
16412
|
attachTo(t) {
|
|
16396
16413
|
if (t.isTransformer)
|
|
16397
16414
|
return this.hoverEnabled && (this.hoverEnterFunc && t.onPointerEnterObserver.add(this.hoverEnterFunc), this.hoverLeaveFunc && t.onPointerLeaveObserver.add(this.hoverLeaveFunc)), this.disposeWithMe(
|
|
16398
|
-
|
|
16415
|
+
O1(
|
|
16399
16416
|
t.onPointerDownObserver.add((s, n) => {
|
|
16400
16417
|
const { offsetX: i, offsetY: o } = s;
|
|
16401
16418
|
this._startOffsetX = i, this._startOffsetY = o;
|
|
@@ -16503,7 +16520,7 @@ class nf extends c2 {
|
|
|
16503
16520
|
}
|
|
16504
16521
|
_attachEventToAnchor(t, s = "__SpreadsheetTransformerResizeLT__") {
|
|
16505
16522
|
this.disposeWithMe(
|
|
16506
|
-
|
|
16523
|
+
O1(
|
|
16507
16524
|
t.onPointerDownObserver.add((n, i) => {
|
|
16508
16525
|
const { offsetX: o, offsetY: a } = n;
|
|
16509
16526
|
this._startOffsetX = o, this._startOffsetY = a;
|
|
@@ -16534,7 +16551,7 @@ class nf extends c2 {
|
|
|
16534
16551
|
}
|
|
16535
16552
|
_attachEventToRotate(t) {
|
|
16536
16553
|
this.disposeWithMe(
|
|
16537
|
-
|
|
16554
|
+
O1(
|
|
16538
16555
|
t.onPointerDownObserver.add((s, n) => {
|
|
16539
16556
|
const { offsetX: i, offsetY: o } = s;
|
|
16540
16557
|
this._startOffsetX = i, this._startOffsetY = o;
|
|
@@ -16629,7 +16646,7 @@ class nf extends c2 {
|
|
|
16629
16646
|
};
|
|
16630
16647
|
}
|
|
16631
16648
|
_createResizeAnchor(t, s, n) {
|
|
16632
|
-
const { height: i, width: o, scaleX: a, scaleY: c } = s.getState(), { left: u, top: l } = this._getRotateAnchorPosition(t, i, o), D = this._getRotateAnchorCursor(t), d = new
|
|
16649
|
+
const { height: i, width: o, scaleX: a, scaleY: c } = s.getState(), { left: u, top: l } = this._getRotateAnchorPosition(t, i, o), D = this._getRotateAnchorCursor(t), d = new A1(`${t}_${n}`, {
|
|
16633
16650
|
zIndex: n - 1,
|
|
16634
16651
|
fill: this.anchorFill,
|
|
16635
16652
|
stroke: this.anchorStroke,
|
|
@@ -16723,13 +16740,13 @@ class nf extends c2 {
|
|
|
16723
16740
|
}
|
|
16724
16741
|
_attachHover(t, s, n) {
|
|
16725
16742
|
this.disposeWithMe(
|
|
16726
|
-
|
|
16743
|
+
O1(
|
|
16727
16744
|
t.onPointerEnterObserver.add(() => {
|
|
16728
16745
|
t.cursor = s;
|
|
16729
16746
|
})
|
|
16730
16747
|
)
|
|
16731
16748
|
), this.disposeWithMe(
|
|
16732
|
-
|
|
16749
|
+
O1(
|
|
16733
16750
|
t.onPointerLeaveObserver.add(() => {
|
|
16734
16751
|
t.cursor = n;
|
|
16735
16752
|
})
|
|
@@ -16744,7 +16761,7 @@ class nf extends c2 {
|
|
|
16744
16761
|
_createControl(t) {
|
|
16745
16762
|
const { left: s, top: n, height: i, width: o, angle: a, scaleX: c, scaleY: u, skewX: l, skewY: D, flipX: d, flipY: g } = t.getState(), p = t.oKey, F = this._selectedObjectMap.size, m = [];
|
|
16746
16763
|
if (this.borderEnabled) {
|
|
16747
|
-
const v = new
|
|
16764
|
+
const v = new A1(`__SpreadsheetTransformerOutline___${F}`, {
|
|
16748
16765
|
zIndex: F - 1,
|
|
16749
16766
|
evented: !1,
|
|
16750
16767
|
strokeWidth: this.borderStrokeWidth,
|
|
@@ -16758,7 +16775,7 @@ class nf extends c2 {
|
|
|
16758
16775
|
"__SpreadsheetTransformerRotateLine__",
|
|
16759
16776
|
i,
|
|
16760
16777
|
o
|
|
16761
|
-
), B = new
|
|
16778
|
+
), B = new A1(`__SpreadsheetTransformerRotateLine___${F}`, {
|
|
16762
16779
|
zIndex: F - 1,
|
|
16763
16780
|
evented: !1,
|
|
16764
16781
|
left: v,
|
|
@@ -16770,7 +16787,7 @@ class nf extends c2 {
|
|
|
16770
16787
|
}), { left: S, top: w } = this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__", i, o), T = this._getRotateAnchorCursor(
|
|
16771
16788
|
"__SpreadsheetTransformerRotate__"
|
|
16772
16789
|
/* ROTATE */
|
|
16773
|
-
), I = new
|
|
16790
|
+
), I = new A1(`__SpreadsheetTransformerRotate___${F}`, {
|
|
16774
16791
|
zIndex: F - 1,
|
|
16775
16792
|
left: S,
|
|
16776
16793
|
top: w,
|
|
@@ -16820,7 +16837,7 @@ class nf extends c2 {
|
|
|
16820
16837
|
});
|
|
16821
16838
|
}
|
|
16822
16839
|
}
|
|
16823
|
-
const
|
|
16840
|
+
const x1 = class x1 extends c2 {
|
|
16824
16841
|
constructor(t) {
|
|
16825
16842
|
super();
|
|
16826
16843
|
/** This is a defensive check to not allow control attachment prior to an already active one. If already attached, previous control is unattached before attaching the new one. */
|
|
@@ -16892,7 +16909,7 @@ const I1 = class I1 extends c2 {
|
|
|
16892
16909
|
const l = u;
|
|
16893
16910
|
u.deviceType === w1.Keyboard && (u.currentState === 1 && this._onKeyDown(l), u.currentState === 0 && this._onKeyUp(l)), (u.deviceType === w1.Mouse || u.deviceType === w1.Touch) && (t && u.inputIndex >= x.LeftClick && u.inputIndex <= x.RightClick && u.currentState === 1 && this._onPointerDown(l), s && u.inputIndex >= x.LeftClick && u.inputIndex <= x.RightClick && u.currentState === 0 && this._onPointerUp(l), n && (u.inputIndex === x.Horizontal || u.inputIndex === x.Vertical || u.inputIndex === x.DeltaHorizontal || u.inputIndex === x.DeltaVertical) ? this._onPointerMove(l) : i && (u.inputIndex === x.MouseWheelX || u.inputIndex === x.MouseWheelY || u.inputIndex === x.MouseWheelZ) ? this._onMouseWheel(l) : o && u.currentState === 2 ? this._onPointerEnter(l) : a && u.currentState === 3 && this._onPointerLeave(l));
|
|
16894
16911
|
}), this.disposeWithMe(
|
|
16895
|
-
|
|
16912
|
+
O1(
|
|
16896
16913
|
this._onInputObserver
|
|
16897
16914
|
)
|
|
16898
16915
|
), this._alreadyAttached = !0);
|
|
@@ -16925,31 +16942,31 @@ const I1 = class I1 extends c2 {
|
|
|
16925
16942
|
* @returns Boolean if delta for pointer exceeds drag movement threshold
|
|
16926
16943
|
*/
|
|
16927
16944
|
_isPointerSwiping(t, s) {
|
|
16928
|
-
return Math.abs(this._startingPosition.x - t) >
|
|
16945
|
+
return Math.abs(this._startingPosition.x - t) > x1.DragMovementThreshold || Math.abs(this._startingPosition.y - s) > x1.DragMovementThreshold;
|
|
16929
16946
|
}
|
|
16930
16947
|
_prePointerDoubleOrTripleClick(t) {
|
|
16931
16948
|
var o, a, c, u;
|
|
16932
16949
|
const { clientX: s, clientY: n } = t;
|
|
16933
16950
|
this._isPointerSwiping(s, n) && this._resetDoubleClickParam(), this._delayedTimeout = setTimeout(() => {
|
|
16934
16951
|
this._resetDoubleClickParam();
|
|
16935
|
-
},
|
|
16952
|
+
}, x1.DoubleClickDelay), this._doubleClickOccurred += 1, this._tripleClickState && ((a = (o = this._scene) == null ? void 0 : o.pick(A.FromArray([t.offsetX, t.offsetY]))) == null || a.triggerTripleClick(t), this._scene.onTripleClickObserver.hasObservers() && this._scene.onTripleClickObserver.notifyObservers(t)), this._doubleClickOccurred === 2 && ((u = (c = this._scene) == null ? void 0 : c.pick(A.FromArray([t.offsetX, t.offsetY]))) == null || u.triggerDblclick(t), this._scene.onDblclickObserver.hasObservers() && this._scene.onDblclickObserver.notifyObservers(t), this._resetDoubleClickParam(), this._tripleClickState = !0, clearTimeout(this._delayedTripeTimeout), this._delayedTripeTimeout = setTimeout(() => {
|
|
16936
16953
|
this._tripleClickState = !1;
|
|
16937
|
-
},
|
|
16954
|
+
}, x1.TripleClickDelay)), this._startingPosition.x = s, this._startingPosition.y = n;
|
|
16938
16955
|
}
|
|
16939
16956
|
_resetDoubleClickParam() {
|
|
16940
16957
|
this._doubleClickOccurred = 0, clearTimeout(this._delayedTimeout);
|
|
16941
16958
|
}
|
|
16942
16959
|
};
|
|
16943
16960
|
/** The distance in pixel that you have to move to prevent some events */
|
|
16944
|
-
h(
|
|
16961
|
+
h(x1, "DragMovementThreshold", 2), // in pixels
|
|
16945
16962
|
/** Time in milliseconds to wait to raise long press events if button is still pressed */
|
|
16946
|
-
h(
|
|
16963
|
+
h(x1, "LongPressDelay", 500), // in milliseconds
|
|
16947
16964
|
/** Time in milliseconds with two consecutive clicks will be considered as a double or triple click */
|
|
16948
|
-
h(
|
|
16949
|
-
h(
|
|
16965
|
+
h(x1, "DoubleClickDelay", 500), // in milliseconds
|
|
16966
|
+
h(x1, "TripleClickDelay", 300), // in milliseconds
|
|
16950
16967
|
/** If you need to check double click without raising a single click at first click, enable this flag */
|
|
16951
|
-
h(
|
|
16952
|
-
let Q6 =
|
|
16968
|
+
h(x1, "ExclusiveDoubleClickMode", !1);
|
|
16969
|
+
let Q6 = x1;
|
|
16953
16970
|
class rf extends c2 {
|
|
16954
16971
|
constructor(t) {
|
|
16955
16972
|
super();
|
|
@@ -17116,7 +17133,7 @@ class of extends rf {
|
|
|
17116
17133
|
h(this, "_viewports", []);
|
|
17117
17134
|
h(this, "_cursor", u1.DEFAULT);
|
|
17118
17135
|
h(this, "_defaultCursor", u1.DEFAULT);
|
|
17119
|
-
h(this, "_addObject$", new
|
|
17136
|
+
h(this, "_addObject$", new R1(this));
|
|
17120
17137
|
h(this, "addObject$", this._addObject$.asObservable());
|
|
17121
17138
|
/**
|
|
17122
17139
|
* Transformer constructor. Transformer is a special type of group that allow you transform
|
|
@@ -17133,7 +17150,7 @@ class of extends rf {
|
|
|
17133
17150
|
} else
|
|
17134
17151
|
this._parent.classType === k.SCENE_VIEWER && this._parent.addSubScene(this);
|
|
17135
17152
|
this.disposeWithMe(
|
|
17136
|
-
|
|
17153
|
+
O1(
|
|
17137
17154
|
(i = this._parent) == null ? void 0 : i.onTransformChangeObservable.add((o) => {
|
|
17138
17155
|
this._setTransForm();
|
|
17139
17156
|
})
|
|
@@ -17611,9 +17628,9 @@ class cf {
|
|
|
17611
17628
|
h(this, "_defaultEngine");
|
|
17612
17629
|
h(this, "_currentUnitId", "");
|
|
17613
17630
|
h(this, "_renderMap", /* @__PURE__ */ new Map());
|
|
17614
|
-
h(this, "_currentRender$", new
|
|
17631
|
+
h(this, "_currentRender$", new R1(this._currentUnitId));
|
|
17615
17632
|
h(this, "currentRender$", this._currentRender$.asObservable());
|
|
17616
|
-
h(this, "_createRender$", new
|
|
17633
|
+
h(this, "_createRender$", new R1(this._currentUnitId));
|
|
17617
17634
|
h(this, "createRender$", this._createRender$.asObservable());
|
|
17618
17635
|
}
|
|
17619
17636
|
get defaultEngine() {
|
|
@@ -18199,21 +18216,21 @@ class ht extends Ff {
|
|
|
18199
18216
|
})));
|
|
18200
18217
|
}
|
|
18201
18218
|
_initialScrollRect() {
|
|
18202
|
-
this.enableHorizontal && (this.horizonBarRect = new
|
|
18219
|
+
this.enableHorizontal && (this.horizonBarRect = new A1("__horizonBarRect__", {
|
|
18203
18220
|
fill: this.barBackgroundColor,
|
|
18204
18221
|
strokeWidth: this.barBorder,
|
|
18205
18222
|
stroke: this.barBorderColor
|
|
18206
|
-
}), this.horizonThumbRect = new
|
|
18223
|
+
}), this.horizonThumbRect = new A1("__horizonThumbRect__", {
|
|
18207
18224
|
radius: 6,
|
|
18208
18225
|
fill: this.thumbBackgroundColor
|
|
18209
|
-
})), this.enableVertical && (this.verticalBarRect = new
|
|
18226
|
+
})), this.enableVertical && (this.verticalBarRect = new A1("__verticalBarRect__", {
|
|
18210
18227
|
fill: this.barBackgroundColor,
|
|
18211
18228
|
strokeWidth: this.barBorder,
|
|
18212
18229
|
stroke: this.barBorderColor
|
|
18213
|
-
}), this.verticalThumbRect = new
|
|
18230
|
+
}), this.verticalThumbRect = new A1("__verticalThumbRect__", {
|
|
18214
18231
|
radius: 6,
|
|
18215
18232
|
fill: this.thumbBackgroundColor
|
|
18216
|
-
})), this.enableHorizontal && this.enableVertical && (this.placeholderBarRect = new
|
|
18233
|
+
})), this.enableHorizontal && this.enableVertical && (this.placeholderBarRect = new A1("__placeholderBarRect__", {
|
|
18217
18234
|
fill: this.barBackgroundColor,
|
|
18218
18235
|
strokeWidth: this.barBorder,
|
|
18219
18236
|
stroke: this.barBorderColor
|
|
@@ -19230,7 +19247,7 @@ class s7 {
|
|
|
19230
19247
|
this._anchorShape.transformByState({ left: i + t, top: o + s, height: a }), this._anchorShape.show();
|
|
19231
19248
|
return;
|
|
19232
19249
|
}
|
|
19233
|
-
const c = new
|
|
19250
|
+
const c = new A1(yf + y1.generateRandomId(a4), {
|
|
19234
19251
|
left: i + t,
|
|
19235
19252
|
top: o + s,
|
|
19236
19253
|
height: a,
|
|
@@ -19291,23 +19308,23 @@ function c4(r) {
|
|
|
19291
19308
|
let l4 = class extends Mt {
|
|
19292
19309
|
constructor(e) {
|
|
19293
19310
|
super();
|
|
19294
|
-
h(this, "_onInputBefore$", new
|
|
19311
|
+
h(this, "_onInputBefore$", new R1(null));
|
|
19295
19312
|
h(this, "onInputBefore$", this._onInputBefore$.asObservable());
|
|
19296
|
-
h(this, "_onKeydown$", new
|
|
19313
|
+
h(this, "_onKeydown$", new R1(null));
|
|
19297
19314
|
h(this, "onKeydown$", this._onKeydown$.asObservable());
|
|
19298
|
-
h(this, "_onInput$", new
|
|
19315
|
+
h(this, "_onInput$", new R1(null));
|
|
19299
19316
|
h(this, "onInput$", this._onInput$.asObservable());
|
|
19300
|
-
h(this, "_onCompositionstart$", new
|
|
19317
|
+
h(this, "_onCompositionstart$", new R1(null));
|
|
19301
19318
|
h(this, "onCompositionstart$", this._onCompositionstart$.asObservable());
|
|
19302
|
-
h(this, "_onCompositionupdate$", new
|
|
19319
|
+
h(this, "_onCompositionupdate$", new R1(null));
|
|
19303
19320
|
h(this, "onCompositionupdate$", this._onCompositionupdate$.asObservable());
|
|
19304
|
-
h(this, "_onCompositionend$", new
|
|
19321
|
+
h(this, "_onCompositionend$", new R1(null));
|
|
19305
19322
|
h(this, "onCompositionend$", this._onCompositionend$.asObservable());
|
|
19306
|
-
h(this, "_onSelectionStart$", new
|
|
19323
|
+
h(this, "_onSelectionStart$", new R1(null));
|
|
19307
19324
|
h(this, "onSelectionStart$", this._onSelectionStart$.asObservable());
|
|
19308
19325
|
h(this, "_onPaste$", new T6());
|
|
19309
19326
|
h(this, "onPaste$", this._onPaste$.asObservable());
|
|
19310
|
-
h(this, "_textSelectionInner$", new
|
|
19327
|
+
h(this, "_textSelectionInner$", new R1(null));
|
|
19311
19328
|
h(this, "textSelectionInner$", this._textSelectionInner$.asObservable());
|
|
19312
19329
|
h(this, "_onFocus$", new T6());
|
|
19313
19330
|
h(this, "onFocus$", this._onFocus$.asObservable());
|
|
@@ -19831,7 +19848,7 @@ export {
|
|
|
19831
19848
|
k as RENDER_CLASS_TYPE,
|
|
19832
19849
|
wd as RENDER_RAW_FORMULA_KEY,
|
|
19833
19850
|
r4 as RICHTEXT_OBJECT_ARRAY,
|
|
19834
|
-
|
|
19851
|
+
A1 as Rect,
|
|
19835
19852
|
m7 as RegularPolygon,
|
|
19836
19853
|
P4 as RenderComponent,
|
|
19837
19854
|
cf as RenderManagerService,
|
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';
|
|
17
|
-
import { Observable } from '@univerjs/core';
|
|
18
|
-
import type { EVENT_TYPE } from './basics/const';
|
|
19
|
-
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
20
|
-
import type { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
21
|
-
import type { IObjectFullState, ITransformChangeState } from './basics/interfaces';
|
|
1
|
+
import { UniverRenderingContext } from './context';
|
|
2
|
+
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
22
3
|
import { Transform } from './basics/transform';
|
|
23
|
-
import
|
|
24
|
-
import
|
|
4
|
+
import { IObjectFullState, ITransformChangeState } from './basics/interfaces';
|
|
5
|
+
import { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
6
|
+
import { EVENT_TYPE, CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
7
|
+
import { EventState, IKeyValue, Nullable, Observer, Observable } from '@univerjs/core';
|
|
8
|
+
|
|
25
9
|
export declare const BASE_OBJECT_ARRAY: string[];
|
|
26
10
|
export declare abstract class BaseObject {
|
|
27
11
|
groupKey?: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { ICellData, IStyleData } from '@univerjs/core';
|
|
1
|
+
import { ICellData, IStyleData } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ITempCellData extends ICellData {
|
|
18
4
|
style: IStyleData;
|
|
19
5
|
prefix: string[];
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IDocumentBody, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IDocumentSkeletonGlyph } from './i-document-skeleton-cached';
|
|
1
|
+
import { IDocumentSkeletonGlyph } from './i-document-skeleton-cached';
|
|
2
|
+
import { IDocumentBody, Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare function hasListGlyph(glyph: Nullable<IDocumentSkeletonGlyph>): boolean;
|
|
19
5
|
export declare function isIndentByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): boolean;
|
|
20
6
|
export declare function isLastGlyph(glyph: Nullable<IDocumentSkeletonGlyph>): boolean;
|
|
21
7
|
export declare function isFirstGlyph(glyph: Nullable<IDocumentSkeletonGlyph>): boolean;
|
|
22
|
-
export declare function getParagraphByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): import(
|
|
8
|
+
export declare function getParagraphByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): import('@univerjs/core').IParagraph | undefined;
|
|
23
9
|
export declare function isPlaceholderOrSpace(glyph: Nullable<IDocumentSkeletonGlyph>): boolean;
|
|
24
10
|
export declare function isSameLine(glyph1: Nullable<IDocumentSkeletonGlyph>, glyph2: Nullable<IDocumentSkeletonGlyph>): boolean;
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IPosition } from '@univerjs/core';
|
|
17
|
-
import { BorderStyleTypes } from '@univerjs/core';
|
|
18
|
-
import type { UniverRenderingContext } from '../context';
|
|
19
|
-
import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
|
|
20
|
-
import type { IDocumentSkeletonLine } from './i-document-skeleton-cached';
|
|
21
1
|
import { Vector2 } from './vector2';
|
|
2
|
+
import { IDocumentSkeletonLine } from './i-document-skeleton-cached';
|
|
3
|
+
import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
|
|
4
|
+
import { UniverRenderingContext } from '../context';
|
|
5
|
+
import { IPosition, BorderStyleTypes } from '@univerjs/core';
|
|
6
|
+
|
|
22
7
|
export interface IContext2D extends CanvasRenderingContext2D {
|
|
23
8
|
webkitBackingStorePixelRatio: number;
|
|
24
9
|
mozBackingStorePixelRatio: number;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './i-document-skeleton-cached';
|
|
18
|
-
import type { IMeasureTextCache } from './interfaces';
|
|
1
|
+
import { IMeasureTextCache } from './interfaces';
|
|
2
|
+
import { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './i-document-skeleton-cached';
|
|
3
|
+
import { Nullable } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class FontCache {
|
|
20
6
|
private static _getTextHeightCache;
|
|
21
7
|
private static _context;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
1
|
+
import { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IDocumentSkeletonCached extends ISkeletonResourceReference {
|
|
18
4
|
pages: IDocumentSkeletonPage[];
|
|
19
5
|
left: number;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { Nullable } from '@univerjs/core';
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* Alias type for number that are floats
|
|
19
5
|
*/
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core';
|
|
17
|
-
import type { DocumentViewModel } from '../components/docs/view-model/document-view-model';
|
|
18
|
-
import type { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonGlyph, IDocumentSkeletonHeader } from './i-document-skeleton-cached';
|
|
19
|
-
import type { Vector2 } from './vector2';
|
|
1
|
+
import { Vector2 } from './vector2';
|
|
2
|
+
import { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonGlyph, IDocumentSkeletonHeader } from './i-document-skeleton-cached';
|
|
3
|
+
import { DocumentViewModel } from '../components/docs/view-model/document-view-model';
|
|
4
|
+
import { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface IObjectFullState extends ITransformState {
|
|
21
7
|
strokeWidth?: number;
|
|
22
8
|
zIndex?: number;
|