-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ import { | |
dataToEditorY, | ||
editorToDataX, | ||
editorToDataY, | ||
fontSizeFromData, | ||
fontSizeFromEditor, | ||
getBox, | ||
} from './dimensions'; | ||
|
||
|
@@ -44,6 +46,8 @@ function UnitsProvider({ pageSize, children }) { | |
dataToEditorY: (y) => dataToEditorY(y, pageHeight), | ||
editorToDataX: (x) => editorToDataX(x, pageWidth), | ||
editorToDataY: (y) => editorToDataY(y, pageHeight), | ||
fontSizeFromData: (size) => fontSizeFromData(size), | ||
fontSizeFromEditor: (size) => fontSizeFromEditor(size), | ||
This comment has been minimized.
Sorry, something went wrong.
barklund
Contributor
|
||
getBox: (element) => getBox(element, pageWidth, pageHeight), | ||
}, | ||
}), | ||
|
Preset should be in exactly the same measurement system as data, imho.