GoJS 3.0.23 "ViewPoint" property of InputEvent as Readonly

Hello,

I’ve been working on upgrading our code to use the latest GoJS version. We are utilizing the Robot class for testing and it looks like it’s intention is to set “viewPoint” property of InputEvents directly; however, in version 3.0.23, that property is marked as “Readonly”. When looking at the property’s code comments though, the comments indicate that it should be settable. Has this intentionally changed in the latest version?

Thanks!

Where are you seeing it marked as Readonly?

https://gojs.net/latest/api/symbols/InputEvent.html#viewPoint

And in the .d.ts files:

    /**
     * Gets or sets the point at which this input event occurred.
     * The Point is in view coordinates within the viewport, not in document coordinates.
     * This should be valid for mouse events.
     * For keyboard events, this is the last available mouse point.
     * @see {@link documentPoint}
     * @see {@link Diagram.transformViewToDoc}
     * @see {@link Diagram.transformDocToView}
     */
    get viewPoint(): Point;
    set viewPoint(value: Point);

Ah, looks like I actually had an older version of gojs. It was only showing the getter and “copySelectionviewPoint”. Sorry about that!