utils.d.ts 839 B

1234567891011121314151617181920
  1. import { DrawPosterBuildOpts } from "./interface";
  2. /** 是否是base64本地地址 */
  3. export declare const isBaseUrl: (str: string) => boolean;
  4. /** 是否是小程序本地地址 */
  5. export declare const isTmpUrl: (str: string) => boolean;
  6. /** 是否是网络地址 */
  7. export declare const isNetworkUrl: (str: string) => boolean;
  8. /** 对象target挂载到对象current */
  9. export declare const extendMount: (current: Record<any, any>, target: Record<any, any>, handle?: (extend: Function, target?: Record<any, any> | undefined) => any) => void;
  10. /** 处理构建配置 */
  11. export declare const handleBuildOpts: (options: string | DrawPosterBuildOpts) => {
  12. selector: string;
  13. componentThis: any;
  14. type2d: boolean;
  15. loading: boolean;
  16. debugging: boolean;
  17. loadingText: string;
  18. createText: string;
  19. gcanvas: boolean;
  20. };