Is the new floorplan control supported in 1.3.6?

Just saw the demo here and I’m thoroughly impressed with it.

Is this example supported in 1.3.6?

That is in 1.3.6. At the moment is the same as That can change, of course.

Great! thanks!

A little off topic, in this floorplan control, how can I add a background layer onto it, like a floorplan of an exhibition hall and still be able to overlay the grid ontop of the floorplan?

Did you want to do something like the Kitten Monitor sample,

As the Introduction to Layers notes,, the Grid layer is normally behind the Background layer. You can swap them by calling:
myDiagram.addLayerAfter(myDiagram.findLayer("Grid"), myDiagram.findLayer("Background"))

Yes, I’d like a background something like the one in the kitten monitor example. Ok thanks I’ll try it out

I tried this but I’m getting an error

        $$(go.Node, // this Part is not bound to any model data
                layerName: "Background",
                position: new go.Point(0, 0),
                selectable: false,
                pickable: false
            $$(go.Picture, "")), myDiagram.findLayer("Grid"));

Uncaught Error: Diagram.addLayer:layer value is not an instance of Layer: Node#1140

I tried this as well

                { layerName: "Background", position: new go.Point(0, 0), selectable: false, pickable: false },
                $$(go.Picture, "")));

    myDiagram.addLayerAfter(myDiagram.findLayer("Grid"), myDiagram.findLayer("Background"));

And got this error:

Uncaught Error: Cannot add layer with the name ‘Grid’, a layer of the same name is already present in this diagram.

Oops, that’s a bug. We’ll fix this soon, in version 1.3.8. Thanks for reporting the problem.

Ok thanks! Looking forward to the release. Is there an ETA?

No, but you can try the beta 1.3.8 that is now at
This relatively new sample might also be of interest.

Ah cool! Very nice sample!

Oh, another question. On the ExternalObjectsDropped listener, why do you reset the draggingTool?


Actually, that method is defined on the GuidedDraggingTool class, and it removes all guidelines from the diagram. In retrospect I think we could have chosen a more descriptive name for that method in that sample class.