Viewport Context Menu

Is it possible to add Right click event when drawing a line in floorplanner app.
I need to add Dragging feature on Right Click event in floorplanner app

I’m not sure what you mean. But yes, you can certainly implement a right-click (a.k.a. context-click) event handler.

Thanks walter.
Please see the below image hopefully i can explain you what i need.

Hi @Anupam. If you want to be able to use the Context Menu with a right click event event when you’re using in WallBuilding mode, don’t allow the WallBuildingTool to start unless diagram.lastInput.left is true (most recent input was a left click). Inside WallBuildingTool.js, replace the canStart function with

// Tool can start iff diagram exists, is editable, and tool is enabled
WallBuildingTool.prototype.canStart = function () {
    var diagram = this.diagram;
    if (diagram !== null && !diagram.isReadOnly && this.isEnabled && diagram.lastInput.left) return true;
    return false;
}

Thanks Ryanj.
It worked.