{"version":3,"file":"custom.mjs","sources":["../../../../../src/constants/provider/custom.ts"],"sourcesContent":["import { MyElement, ElementOption, PageUnit } from '@myprint/design/types/entity';\nimport { i18n } from '@myprint/design/locales';\n\nexport const customProvider = {\n    pageUnit: 'mm' as PageUnit,\n    elementList: [\n        {\n            'type': 'Text',\n            iconClass: 'iconfont icon-text',\n            'data': i18n('provider.text.default.data'),\n            'width': 50,\n            'height': 8\n        } as any,\n        {\n            'type': 'TextTime',\n            contentType: 'Text',\n            iconClass: 'iconfont-color icon-color-text-time',\n            option: { formatter: '{{yyyy-MM-dd hh:mm:ss}}' } as ElementOption,\n            'width': 43,\n            'height': 8\n        } as any,\n        {\n            'type': 'Image',\n            iconClass: 'iconfont-color icon-color-img',\n            'width': 50.25,\n            'height': 30\n        } as any,\n        {\n            'type': 'HorizontalLine',\n            iconClass: 'iconfont-color icon-color-vertical_solidline',\n            'width': 30.25,\n            'option': {\n                lineWidth: 0.3\n            } as ElementOption\n        } as any,\n        {\n            'type': 'VerticalLine',\n            iconClass: 'iconfont-color icon-color-crossrange_solidline',\n            'height': 21,\n            'option': {\n                lineWidth: 0.3\n            } as ElementOption\n        } as any,\n        {\n            'type': 'DottedHorizontalLine',\n            iconClass: 'iconfont-color icon-color-vertical_dottedline',\n            'width': 21,\n            'option': {\n                lineWidth: 0.3\n            } as ElementOption\n        } as any,\n        {\n            'type': 'DottedVerticalLine',\n            iconClass: 'iconfont-color icon-color-crossrange_dottedline',\n            'height': 21,\n            option: {\n                lineWidth: 0.3\n            } as ElementOption\n        } as any,\n        {\n            type: 'Rect',\n            iconClass: 'iconfont icon-rectangle_solidline',\n            'width': 30,\n            'height': 30,\n            option: {\n                lineWidth: 0.3\n            } as ElementOption\n        } as any,\n        {\n            type: 'Container',\n            iconClass: 'iconfont-color icon-color-container',\n            'width': 70,\n            'height': 70\n        } as any,\n        {\n            type: 'PageHeader',\n            iconClass: 'iconfont-color icon-color-page_header',\n            'height': 30\n        } as any,\n        {\n            type: 'PageFooter',\n            iconClass: 'iconfont-color icon-color-page_footer',\n            'height': 30\n        } as any,\n        {\n            type: 'PageNum',\n            contentType: 'Text',\n            iconClass: 'iconfont-color icon-color-page',\n            option: {\n                formatter: '第{{pageIndex::1}}页/共{{pageSize::1}}页',\n                textAlign: 'end',\n                verticalAlign: 'center',\n                fixed: true\n            } as ElementOption,\n\n            width: 30,\n            height: 6\n        } as any,\n        {\n            field: '',\n            type: 'SvgPolygonLine',\n            data: '{\"points\":[{\"x\": 0,\"y\": 0},{\"x\": 30,\"y\": 0},{\"x\": 30,\"y\": 30},{\"x\": 0,\"y\": 30}]}',\n            iconClass: 'iconfont-color icon-color-svg-rect',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any,\n        {\n            field: '',\n            type: 'SvgCircle',\n            iconClass: 'iconfont-color icon-color-svg-circle',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any,\n        {\n            field: '',\n            type: 'SvgEllipse',\n            iconClass: 'iconfont-color icon-color-svg-ellipse',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any,\n        {\n            field: '',\n            type: 'DrawPanel',\n            iconClass: 'iconfont-color icon-color-shouxieqianming-icon',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any,\n        {\n            field: '',\n            type: 'SvgLine',\n            data: '{\"points\":[{\"x\": 0,\"y\": 0},{\"x\": 30,\"y\": 30}]}',\n            iconClass: 'iconfont-color icon-color-svg-line',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any,\n        {\n            field: '',\n            type: 'SvgBezierCurve',\n            data: '{\"points\":[{\"x\": 0,\"y\": 0},{\"x\": 30,\"y\": 0}],\"controlPoints\":[{\"x\": 15,\"y\": 50}]}',\n            iconClass: 'iconfont-color icon-color-svg-bezier2',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any,\n        {\n            field: '',\n            type: 'SvgBezierCurveThree',\n            data: '{\"points\":[{\"x\": 0,\"y\": 15},{\"x\": 30,\"y\": 15}],\"controlPoints\":[{\"x\": 10,\"y\": 30},{\"x\": 20,\"y\": 0}]}',\n            iconClass: 'iconfont-color icon-color-svg-bezier3',\n            width: 30,\n            'option': {\n                borderWidth: 0.3\n            } as ElementOption,\n            height: 30\n        } as any\n    ] as MyElement[]\n};\n"],"names":[],"mappings":";;AAGO,MAAM,cAAiB,GAAA;AAAA,EAC1B,QAAU,EAAA,IAAA;AAAA,EACV,WAAa,EAAA;AAAA,IACT;AAAA,MACI,MAAQ,EAAA,MAAA;AAAA,MACR,SAAW,EAAA,oBAAA;AAAA,MACX,MAAA,EAAQ,KAAK,4BAA4B,CAAA;AAAA,MACzC,OAAS,EAAA,EAAA;AAAA,MACT,QAAU,EAAA,CAAA;AAAA,KACd;AAAA,IACA;AAAA,MACI,MAAQ,EAAA,UAAA;AAAA,MACR,WAAa,EAAA,MAAA;AAAA,MACb,SAAW,EAAA,qCAAA;AAAA,MACX,MAAA,EAAQ,EAAE,SAAA,EAAW,yBAA0B,EAAA;AAAA,MAC/C,OAAS,EAAA,EAAA;AAAA,MACT,QAAU,EAAA,CAAA;AAAA,KACd;AAAA,IACA;AAAA,MACI,MAAQ,EAAA,OAAA;AAAA,MACR,SAAW,EAAA,+BAAA;AAAA,MACX,OAAS,EAAA,KAAA;AAAA,MACT,QAAU,EAAA,EAAA;AAAA,KACd;AAAA,IACA;AAAA,MACI,MAAQ,EAAA,gBAAA;AAAA,MACR,SAAW,EAAA,8CAAA;AAAA,MACX,OAAS,EAAA,KAAA;AAAA,MACT,QAAU,EAAA;AAAA,QACN,SAAW,EAAA,GAAA;AAAA,OACf;AAAA,KACJ;AAAA,IACA;AAAA,MACI,MAAQ,EAAA,cAAA;AAAA,MACR,SAAW,EAAA,gDAAA;AAAA,MACX,QAAU,EAAA,E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