1
0
Fork 0

🚧 Pre work on offsets

This commit is contained in:
joostdecock 2018-07-26 13:43:12 +00:00
parent f14ebb1e87
commit be4e759c1a
5 changed files with 991 additions and 953 deletions

View file

@ -1,4 +1,5 @@
import attributes from "./attributes";
import { pathOffset } from "./utils";
function path() {
this.render = true;
@ -69,4 +70,12 @@ path.prototype.asPathstring = function() {
return d;
};
/** Returns this path as a Bezier object */
path.prototype.asBezier = function() {};
/** Returns offset of this path as a new path */
path.prototype.offset = function(distance) {
return pathOffset(this, distance);
};
export default path;