File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ class CanvasRuler {
157
157
* 显示全部辅助线
158
158
*/
159
159
public showGuideline ( ) {
160
- this . options . canvas . getObjects ( fabric . GuideLine . prototype . type ) . forEach ( ( guideLine ) => {
160
+ this ? .options ? .canvas ? .getObjects ( fabric . GuideLine . prototype . type ) . forEach ( ( guideLine ) => {
161
161
guideLine . set ( 'visible' , true ) ;
162
162
} ) ;
163
- this . options . canvas . renderAll ( ) ;
163
+ this ? .options ? .canvas ? .renderAll ( ) ;
164
164
}
165
165
166
166
/**
Original file line number Diff line number Diff line change 2
2
* @Author: 秦少卫
3
3
* @Date: 2022-09-03 19:16:55
4
4
* @LastEditors: 秦少卫
5
- * @LastEditTime: 2024-08-16 17:47:21
5
+ * @LastEditTime: 2025-03-18 19:01:39
6
6
* @Description: 导入模板
7
7
-->
8
8
@@ -98,7 +98,7 @@ const {
98
98
fields: [' name' ],
99
99
});
100
100
101
- typeValue .value = 4 ;
101
+ typeValue .value = 20 ;
102
102
103
103
// 替换提示
104
104
const beforeClearTip = (info ) => {
You can’t perform that action at this time.
0 commit comments