Skip to content

Disable resize for some shape #92

Answered by raminious
aheadweb asked this question in Q&A
Discussion options

You must be logged in to vote
const myRect = editor.shapes.rect.insert({
  x: 200,
  y: 200,
  width: 100,
  height: 80,
  fill: "blue"
});

myRect.config = {
  ...myRect.config,
  transformer: {
    enabledAnchors: []
  }
};

Working Example:

https://codesandbox.io/s/pikaso-selectable-example-t1pnig

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aheadweb
Comment options

Answer selected by aheadweb
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