摘要:        
创建 button 类: import { fabric } from 'fabric'; /** * 继承并扩展 rect ,实现:text + rect 的类 button 组 */ export class Button { button; constructor(config) { fabr    阅读全文
posted @ 2022-04-25 17:25
名字不好起啊
阅读(74)
评论(0)
推荐(0)
        
            
        
        
摘要:        
import { fabric } from 'fabric'; import { Rect } from './rect'; /** * 按钮 */ export class ContextMenu { // 测试调用方法 copy = 'copy'; isMenuShow = false; is    阅读全文
posted @ 2022-04-25 17:24
名字不好起啊
阅读(239)
评论(0)
推荐(0)
        
            
        
        
摘要:        
查了半天,没有直接的按钮,得自己画。。。 使用 rect + text ,组成 group 模拟按钮 import { fabric } from 'fabric'; /** * 按钮 */ export class Button { isScaling = false; constructor(c    阅读全文
posted @ 2022-04-25 17:24
名字不好起啊
阅读(71)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号