Skip to content

Can Children on path be broken apart? #607

Discussion options

You must be logged in to vote

Yes, you can get characters of a Text model by their index. I've added this to the end of the function:

This gets the first character by [0] , gets its bounding box, then creates a rectangle of it:

  const m = makerjs.measure.modelExtents(this.models.topText.models[0]);
  const bbox = new makerjs.models.Rectangle(m);
  this.models.bbox = bbox;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mcdonaldzachary
Comment options

@danmarshall
Comment options

Answer selected by mcdonaldzachary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants