@univerjs/engine-render 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119
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 +2 -2
package/lib/es/index.js
CHANGED
|
@@ -44680,8 +44680,8 @@ function Ve(r, t) {
|
|
|
44680
44680
|
l && l.size > 0 && az(e, l, u == null ? void 0 : u.top);
|
|
44681
44681
|
const d = o == null ? void 0 : o.paragraphStyle;
|
|
44682
44682
|
if (e.divides.length > 0) {
|
|
44683
|
-
const f = e.divides[e.divides.length - 1];
|
|
44684
|
-
|
|
44683
|
+
const f = e.divides[e.divides.length - 1], m = f.glyphGroup[f.glyphGroup.length - 1];
|
|
44684
|
+
(m == null ? void 0 : m.streamType) === J.PARAGRAPH && (d != null && d.borderBottom) && (e.borderBottom = d.borderBottom);
|
|
44685
44685
|
}
|
|
44686
44686
|
});
|
|
44687
44687
|
}
|
|
@@ -64455,6 +64455,10 @@ class vA {
|
|
|
64455
64455
|
*/
|
|
64456
64456
|
k(this, "bufferEdgeX", 0);
|
|
64457
64457
|
k(this, "bufferEdgeY", 0);
|
|
64458
|
+
/**
|
|
64459
|
+
* Used to store the requestAnimationFrame ID for scroll animation.
|
|
64460
|
+
*/
|
|
64461
|
+
k(this, "scrollAnimationFrameId", null);
|
|
64458
64462
|
k(this, "_isForceDirty", !0);
|
|
64459
64463
|
var s;
|
|
64460
64464
|
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
|
@@ -44680,8 +44680,8 @@ function Ve(r, t) {
|
|
|
44680
44680
|
l && l.size > 0 && az(e, l, u == null ? void 0 : u.top);
|
|
44681
44681
|
const d = o == null ? void 0 : o.paragraphStyle;
|
|
44682
44682
|
if (e.divides.length > 0) {
|
|
44683
|
-
const f = e.divides[e.divides.length - 1];
|
|
44684
|
-
|
|
44683
|
+
const f = e.divides[e.divides.length - 1], m = f.glyphGroup[f.glyphGroup.length - 1];
|
|
44684
|
+
(m == null ? void 0 : m.streamType) === J.PARAGRAPH && (d != null && d.borderBottom) && (e.borderBottom = d.borderBottom);
|
|
44685
44685
|
}
|
|
44686
44686
|
});
|
|
44687
44687
|
}
|
|
@@ -64455,6 +64455,10 @@ class vA {
|
|
|
64455
64455
|
*/
|
|
64456
64456
|
k(this, "bufferEdgeX", 0);
|
|
64457
64457
|
k(this, "bufferEdgeY", 0);
|
|
64458
|
+
/**
|
|
64459
|
+
* Used to store the requestAnimationFrame ID for scroll animation.
|
|
64460
|
+
*/
|
|
64461
|
+
k(this, "scrollAnimationFrameId", null);
|
|
64458
64462
|
k(this, "_isForceDirty", !0);
|
|
64459
64463
|
var s;
|
|
64460
64464
|
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;
|