File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 28
28
this . _fabricjsOverlayInfo . _scale = options . scale ; // arbitrary scale for created fabric canvas
29
29
}
30
30
else {
31
- this . _fabricjsOverlayInfo . _scale = 1000 ;
31
+ this . _fabricjsOverlayInfo . _scale = 1 ;
32
32
}
33
33
34
34
return this . _fabricjsOverlayInfo ;
178
178
let viewportZoom = this . _viewer . viewport . getZoom ( true ) ;
179
179
this . _fabricCanvas . setWidth ( this . _containerWidth ) ;
180
180
this . _fabricCanvas . setHeight ( this . _containerHeight ) ;
181
- // let zoom = this._viewer.viewport._containerInnerSize.x * viewportZoom / this._scale;
182
- // this._fabricCanvas.setZoom(zoom);
183
- this . _fabricCanvas . setZoom ( viewportZoom ) ;
181
+ let zoom = this . _viewer . viewport . _containerInnerSize . x * viewportZoom / this . _scale ;
182
+ this . _fabricCanvas . setZoom ( zoom ) ;
184
183
let viewportWindowPoint = this . _viewer . viewport . viewportToWindowCoordinates ( origin ) ;
185
184
let x = Math . round ( viewportWindowPoint . x ) ;
186
185
let y = Math . round ( viewportWindowPoint . y ) ;
You can’t perform that action at this time.
0 commit comments