Skip to content

Commit

Permalink
Add warning for non-center strokes on shapes
Browse files Browse the repository at this point in the history
Issue #90
  • Loading branch information
gskinner committed Jan 22, 2021
1 parent f201a31 commit 529656c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/nodes/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ function _serializeSvgNode(xdNode, ctx) {
if (hasImageFill) {
ctx.log.warn('Image fills are not supported on shapes.', o);
}
if (o.strokePosition !== xd.GraphicNode.CENTER_STROKE) {
ctx.log.warn('Only center strokes are supported on shapes.', o);
}


let imagePath = hasImageFill ? getImagePath(o) : "";
let imageWidth = $.fix(hasImageFill ? o.fill.naturalWidth : 0);
let imageHeight = $.fix(hasImageFill ? o.fill.naturalHeight : 0);
Expand Down

0 comments on commit 529656c

Please sign in to comment.