UNPKG

react-blueprint-svg

Version:

Pannable, zoomable SVG with menu of displaying options inspired by maker.js.

20 lines (19 loc) 762 B
import * as makerjs from 'makerjs'; import { RootState, ViewState } from './store/state'; export declare function getGridScale(view: ViewState): number; export declare function getCursorCoordinates(view: ViewState): makerjs.IPoint; export declare function naturalFit(state: RootState): ViewState; export declare function screenFit(state: RootState): ViewState; export declare function getNaturalSize(measure: makerjs.IMeasureWithCenter): number[]; export declare function renderOptions(view: ViewState, measurement: makerjs.IMeasureWithCenter | null): { origin: makerjs.IPoint; annotate: boolean; flow: { size: number; }; svgAttrs: { id: string; }; fontSize: string; useSvgPathOnly: boolean; };