合并画布
This commit is contained in:
@@ -12,12 +12,11 @@
|
||||
* - https://mrdoob.com/projects/harmony/
|
||||
* - http://perfectionkills.com/exploring-canvas-drawing-techniques/
|
||||
*/
|
||||
import { fabric } from "fabric-with-all";
|
||||
import { sprayBrushDataUrl } from "./data/sprayBrushData.js";
|
||||
|
||||
(function (fabric) {
|
||||
/**
|
||||
* Trim a canvas. Returns the lezft-top coordinate where trimming began.
|
||||
* Trim a canvas. Returns the left-top coordinate where trimming began.
|
||||
* @param {canvas} canvas A canvas element to trim. This element will be trimmed (reference).
|
||||
* @returns {Object} Left-top coordinate of trimmed area. Example: {x:65, y:104}
|
||||
* @see: https://stackoverflow.com/a/22267731/3360038
|
||||
@@ -1744,5 +1743,4 @@ import { sprayBrushDataUrl } from "./data/sprayBrushData.js";
|
||||
|
||||
_render: function () {},
|
||||
}); // End WebBrush
|
||||
})(fabric);
|
||||
// })(typeof fabric !== "undefined" ? fabric : require("fabric").fabric);
|
||||
})(typeof fabric !== "undefined" ? fabric : require("fabric").fabric);
|
||||
|
||||
Reference in New Issue
Block a user