Skip to content
Discussion options

You must be logged in to vote

Hello, thank you for the question. When calling Element.position({}) with a single argument, it acts as a getter with the single argument being options:

class Element<A extends ObjectHash = Element.Attributes, S extends mvc.ModelSetOptions = dia.ModelSetOptions> extends Cell<A, S> {

   // ...

    position(opt?: Element.PositionOptions): g.Point;
    position(x: number, y: number, opt?: Element.PositionOptions): this;

   // ...
}

No position is updated so no change:position event gets fired.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pfalcon64
Comment options

You must be logged in to vote
0 replies
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