We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f239943 commit 25aa59bCopy full SHA for 25aa59b
2 files changed
packages/simple-notation/src/layout/builder.ts
@@ -81,11 +81,6 @@ export class SNLayoutBuilder {
81
// 启用分页:使用页面尺寸
82
effectiveWidth = pageConfig.size.width;
83
effectiveHeight = pageConfig.size.height;
84
- } else {
85
- // 未启用分页:页面尺寸 = 画布尺寸
86
- // 如果画布未指定,使用页面默认尺寸作为参考
87
- effectiveWidth = canvasWidth ?? pageConfig.size.width;
88
- effectiveHeight = canvasHeight ?? pageConfig.size.height;
89
}
90
91
// 设置根节点的布局属性
packages/simple-notation/src/sn.ts
@@ -133,7 +133,6 @@ export class SimpleNotation {
133
if (!this.mounted) {
134
throw new Error('SimpleNotation instance is not mounted');
135
136
-
137
try {
138
// 1. 解析数据
139
const parseResult = this.dataManager.processData(data, type);
0 commit comments