Add supporting themes required for Lotusdocs
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// @flow
|
||||
import type { Rect, ClientRectObject } from '../types';
|
||||
|
||||
export default function rectToClientRect(rect: Rect): ClientRectObject {
|
||||
return {
|
||||
...rect,
|
||||
left: rect.x,
|
||||
top: rect.y,
|
||||
right: rect.x + rect.width,
|
||||
bottom: rect.y + rect.height,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user