|  |  |  | 
|---|
|  |  |  | import './plugin/fabric-history'; | 
|---|
|  |  |  | import { MyHistoryPlugin } from './plugin/MyHistoryPlugin'; | 
|---|
|  |  |  | import { TemplateParamExtensionKey } from './customObject'; | 
|---|
|  |  |  | import { CanvasHeight, CanvasWidth } from './constants'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const route = useRoute(); | 
|---|
|  |  |  | const id = (route.params.id as string) ?? ''; | 
|---|
|  |  |  | 
|---|
|  |  |  | controlsAboveOverlay: true, // 超出clipPath后仍然展示控制条 | 
|---|
|  |  |  | // imageSmoothingEnabled: false, // 解决文字导出后不清晰问题 | 
|---|
|  |  |  | preserveObjectStacking: true, // 当选择画布中的对象时,让对象不在顶层。 | 
|---|
|  |  |  | width: 595, | 
|---|
|  |  |  | height: 842, | 
|---|
|  |  |  | width: CanvasWidth, | 
|---|
|  |  |  | height: CanvasHeight, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | console.log('canvas: ', canvas); | 
|---|
|  |  |  |  | 
|---|