mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-10-20 07:24:21 +00:00
Fix save work area.
Fix export graph with styles. Fix css packer.
This commit is contained in:
1 parent
e276350318
commit
a139fbe6ec
10 files changed
+54
-47
No files matched your search
@@ -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