/** * Created by guopeng on 16/8/10. */ // 已废弃, 请使用 design/Paper和 configs/papers import {Unit} from "../drawing/Unit"; // /** // * 预定义纸张 // * @type {{}} // */ // const size = { // [PaperTypeEnum.A4]: {width:210, height:297}, // [PaperTypeEnum.A5]: {width:148, height:210}, // [PaperTypeEnum.A8]: {width:52, height:74}, // [PaperTypeEnum.B4]: {width:250, height:353}, // [PaperTypeEnum.B5]: {width:176, height:250}, // [PaperTypeEnum.B8]: {width:62, height:88}, // }; // /** // * 自定义纸张 // * @type {{width: number; height: number}} // */ // export var PaperCustom = { // width: 0, // height: 0 // } // export function getPaperSize(type: PaperTypeEnum){ // // let current = {}; // if(type === PaperTypeEnum.Custom){ // current = PaperCustom; // }else{ // current = size[type]; // } // return { // width: Unit.mm(current["width"]), // height: Unit.mm(current["height"]) // }; // // }