@univerjs/engine-render 0.10.12 → 0.10.13
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 +6 -2
- package/lib/index.js +6 -2
- package/lib/types/viewport.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
package/lib/es/index.js
CHANGED
|
@@ -44271,8 +44271,8 @@ function Ve(r, t) {
|
|
|
44271
44271
|
l && l.size > 0 && Py(e, l, u == null ? void 0 : u.top);
|
|
44272
44272
|
const d = o == null ? void 0 : o.paragraphStyle;
|
|
44273
44273
|
if (e.divides.length > 0) {
|
|
44274
|
-
const f = e.divides[e.divides.length - 1];
|
|
44275
|
-
|
|
44274
|
+
const f = e.divides[e.divides.length - 1], m = f.glyphGroup[f.glyphGroup.length - 1];
|
|
44275
|
+
(m == null ? void 0 : m.streamType) === J.PARAGRAPH && (d != null && d.borderBottom) && (e.borderBottom = d.borderBottom);
|
|
44276
44276
|
}
|
|
44277
44277
|
});
|
|
44278
44278
|
}
|
|
@@ -64046,6 +64046,10 @@ class tA {
|
|
|
64046
64046
|
*/
|
|
64047
64047
|
k(this, "bufferEdgeX", 0);
|
|
64048
64048
|
k(this, "bufferEdgeY", 0);
|
|
64049
|
+
/**
|
|
64050
|
+
* Used to store the requestAnimationFrame ID for scroll animation.
|
|
64051
|
+
*/
|
|
64052
|
+
k(this, "scrollAnimationFrameId", null);
|
|
64049
64053
|
k(this, "_isForceDirty", !0);
|
|
64050
64054
|
var s;
|
|
64051
64055
|
this._viewportKey = t, this._scene = e, this._scene.addViewport(this), this._active = o1.isDefine(a == null ? void 0 : a.active) ? a == null ? void 0 : a.active : !0, this.setViewportSize(a), this.initCacheCanvas(a, e), this._isWheelPreventDefaultX = (a == null ? void 0 : a.isWheelPreventDefaultX) || !1, this._isWheelPreventDefaultY = (a == null ? void 0 : a.isWheelPreventDefaultY) || !1, this.resetCanvasSizeAndUpdateScroll(), this.getBounding(), (s = this.scene.getEngine()) == null || s.onTransformChange$.subscribeEvent(() => {
|
package/lib/index.js
CHANGED
|
@@ -44271,8 +44271,8 @@ function Ve(r, t) {
|
|
|
44271
44271
|
l && l.size > 0 && Py(e, l, u == null ? void 0 : u.top);
|
|
44272
44272
|
const d = o == null ? void 0 : o.paragraphStyle;
|
|
44273
44273
|
if (e.divides.length > 0) {
|
|
44274
|
-
const f = e.divides[e.divides.length - 1];
|
|
44275
|
-
|
|
44274
|
+
const f = e.divides[e.divides.length - 1], m = f.glyphGroup[f.glyphGroup.length - 1];
|
|
44275
|
+
(m == null ? void 0 : m.streamType) === J.PARAGRAPH && (d != null && d.borderBottom) && (e.borderBottom = d.borderBottom);
|
|
44276
44276
|
}
|
|
44277
44277
|
});
|
|
44278
44278
|
}
|
|
@@ -64046,6 +64046,10 @@ class tA {
|
|
|
64046
64046
|
*/
|
|
64047
64047
|
k(this, "bufferEdgeX", 0);
|
|
64048
64048
|
k(this, "bufferEdgeY", 0);
|
|
64049
|
+
/**
|
|
64050
|
+
* Used to store the requestAnimationFrame ID for scroll animation.
|
|
64051
|
+
*/
|
|
64052
|
+
k(this, "scrollAnimationFrameId", null);
|
|
64049
64053
|
k(this, "_isForceDirty", !0);
|
|
64050
64054
|
var s;
|
|
64051
64055
|
this._viewportKey = t, this._scene = e, this._scene.addViewport(this), this._active = o1.isDefine(a == null ? void 0 : a.active) ? a == null ? void 0 : a.active : !0, this.setViewportSize(a), this.initCacheCanvas(a, e), this._isWheelPreventDefaultX = (a == null ? void 0 : a.isWheelPreventDefaultX) || !1, this._isWheelPreventDefaultY = (a == null ? void 0 : a.isWheelPreventDefaultY) || !1, this.resetCanvasSizeAndUpdateScroll(), this.getBounding(), (s = this.scene.getEngine()) == null || s.onTransformChange$.subscribeEvent(() => {
|
package/lib/types/viewport.d.ts
CHANGED
|
@@ -177,6 +177,10 @@ export declare class Viewport {
|
|
|
177
177
|
*/
|
|
178
178
|
bufferEdgeX: number;
|
|
179
179
|
bufferEdgeY: number;
|
|
180
|
+
/**
|
|
181
|
+
* Used to store the requestAnimationFrame ID for scroll animation.
|
|
182
|
+
*/
|
|
183
|
+
scrollAnimationFrameId: number | null;
|
|
180
184
|
constructor(viewportKey: string, scene: Scene, props?: IViewProps);
|
|
181
185
|
initCacheCanvas(props: IViewProps | undefined, scene: Scene): void;
|
|
182
186
|
get scene(): Scene;
|