🚧 Pre work on offsets
This commit is contained in:
parent
f14ebb1e87
commit
be4e759c1a
5 changed files with 991 additions and 953 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue