mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Fix save work area.
Fix export graph with styles. Fix css packer.
This commit is contained in:
@@ -95,4 +95,9 @@ function getCanvasLogicWidth(canvas) {
|
||||
function getCanvasLogicHeight(canvas) {
|
||||
const dpr = window.devicePixelRatio || 1;
|
||||
return canvas.height / dpr;
|
||||
}
|
||||
|
||||
function getLogicToCanvasSize(size) {
|
||||
const dpr = window.devicePixelRatio || 1;
|
||||
return size * dpr;
|
||||
}
|
||||
Reference in New Issue
Block a user