fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c

This commit is contained in:
Daniel Buchele
2018-06-12 03:39:09 -07:00
parent 1cc2d46be9
commit f7d487dd76
42 changed files with 1100 additions and 1080 deletions

View File

@@ -1,9 +1,10 @@
/**
* Copyright 2004-present Facebook.
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import {exec as opensslWithCallback} from 'openssl-wrapper';
export function openssl(action: string, options: {}): Promise<string> {

View File

@@ -10,7 +10,7 @@ import type {Rect} from './geometry.js';
export const SNAP_SIZE = 16;
export function snapGrid(val: number): number {
return val - val % SNAP_SIZE;
return val - (val % SNAP_SIZE);
}
export function getPossibleSnappedPosition(