Is the new floorplan control supported in 1.3.6?

Just saw the demo here http://www.gojs.net/beta/extensions/FloorPlanEditor.html# and I’m thoroughly impressed with it.

Is this example supported in 1.3.6?

That is in 1.3.6. At the moment gojs.net/beta is the same as gojs.net/latest. 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, http://www.gojs.net/latest/samples/kittenMonitor.html?

As the Introduction to Layers notes, http://www.gojs.net/latest/intro/layers.html, 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

    myDiagram.addLayerBefore(
        $$(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, "http://upload.wikimedia.org/wikipedia/commons/9/9a/Sample_Floorplan.jpg")), myDiagram.findLayer("Grid"));

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

I tried this as well

    myDiagram.add(
            $$(go.Node,
                { layerName: "Background", position: new go.Point(0, 0), selectable: false, pickable: false },
                $$(go.Picture, "http://upload.wikimedia.org/wikipedia/commons/9/9a/Sample_Floorplan.jpg")));

    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 http://gojs.net/beta

http://www.gojs.net/latest/samples/seatingChart.html
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?

myDiagram.toolManager.draggingTool.reset();

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.