绿满眶商城微信小程序-uniapp
xiangpei
2025-05-09 c3e6cdbb29580e77444541c7953aca33581a4267
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import * as dfucs from "./extends/draw-function/index";
import DrawPoster from "./draw-poster";
import drawQrCode from "./extends/draw-qr-code/index";
import createFromList from './extends/create-from-list/index';
import drawPainter from './extends/draw-painter/index';
DrawPoster.useCtx(dfucs.drawImage);
DrawPoster.useCtx(dfucs.fillWarpText);
DrawPoster.useCtx(dfucs.roundRect);
DrawPoster.useCtx(dfucs.fillRoundRect);
DrawPoster.useCtx(dfucs.strokeRoundRect);
DrawPoster.useCtx(dfucs.drawRoundImage);
DrawPoster.useCtx(dfucs.drawImageFit);
const useDrawPoster = async (options) => {
    const dp = await DrawPoster.build(options);
    return dp;
};
const useDrawPosters = async (optionsAll) => {
    const dps = await DrawPoster.buildAll(optionsAll);
    return dps;
};
export { DrawPoster, useDrawPoster, useDrawPosters, drawQrCode, drawPainter, createFromList };
export default DrawPoster;