File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/platforms/vue2/src/core4vue Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ export default {
68
68
return {
69
69
' width' : ` ${this .options .canvasSize .width }px ` ,
70
70
' height' : ` ${this .options .canvasSize .height }px ` ,
71
- ' margin-left' : ` ${this .options .canvasOffset .x }px ` ,
72
- ' margin-top' : ` ${this .options .canvasOffset .y }px ` ,
71
+ // 'margin-left': `${this.options.canvasOffset.x }px`,
72
+ // 'margin-top': `${this.options.canvasOffset.y }px`,
73
73
' background-color' : ' transparent' ,
74
- ' transform' : ` scale(${ this .options .canvasZoom / 100 },${ this .options .canvasZoom / 100 }) `
74
+ ' transform' : ` translate(${ this . options . canvasOffset . x }px, ${ this . options . canvasOffset . y }px) scale(${ this .options .canvasZoom / 100 },${ this .options .canvasZoom / 100 })`
75
75
// 'transform-origin': (this.options.canvasOffset.zoom_buff_x * 100).toFixed(2) + '% ' + (this.options.canvasOffset.zoom_buff_y * 100).toFixed(2) + '%'
76
76
};
77
77
}
You can’t perform that action at this time.
0 commit comments