|
|
|
|
|
|
{ |
|
|
|
public MaterialGraphView() |
|
|
|
{ |
|
|
|
RegisterCallback<MouseUpEvent>(DoContextMenu, Capture.Capture); |
|
|
|
this.AddManipulator(new ContentZoomer()); |
|
|
|
this.AddManipulator(new ContentDragger()); |
|
|
|
this.AddManipulator(new RectangleSelector()); |
|
|
|
|
|
|
Insert(0, new GridBackground()); |
|
|
|
|
|
|
|
RegisterCallback<MouseUpEvent>(DoContextMenu); |
|
|
|
|
|
|
|
typeFactory[typeof(MaterialNodePresenter)] = typeof(MaterialNodeView); |
|
|
|
typeFactory[typeof(GraphAnchorPresenter)] = typeof(NodeAnchor); |
|
|
|