import { Texture } from 'fabric-texture'; const canvas = document.createElement('canvas'); const texture = new Texture(canvas); texture /*-canvas-render-*/ .useCanvasRender() /**/ /*-webgl-render-*/ .useWebGLRender() /**/ .setRenderOptions({ antialias: /*-antialias-*/ false /**/, // 是否应用抗锯齿 }) .create();