How to freeze the diagram?

Is it possible to freeze the diagram that is to make all objects on diagram to be non-movable, non-resizable, non-editable, non-relinkable, etc.?

I’ve tried the following code, but it doesn’t work:

myDiagram = $(go.Diagram, "myDiagramDiv",
    initialContentAlignment: go.Spot.Center,
    allowDrop: true, // Nodes from the Palette can be dropped into the Diagram
    allowDelete: false,
    allowLink: false,
    allowMove: false,
    allowRelink: false,
    allowReshape: false,
    allowResize: false,
    allowSelect: false,
    allowTextEdit: false,

Either set Diagram.isEnabled to false or Diagram.isReadOnly to true.