Esempio n. 1
0
 public DiagramService(
     [NotNull] IModel model,
     [NotNull] IConnectorTypeResolver connectorTypeResolver,
     double childrenAreaPadding = DefaultChildrenAreaPadding)
     : this(ImmutableDiagram.Create(model), connectorTypeResolver, childrenAreaPadding)
 {
 }
Esempio n. 2
0
        public DiagramEvent GetDiagramEvent()
        {
            var newDiagram = new ImmutableDiagram(
                _model,
                _nodes.ToImmutableDictionary(),
                _connectors.ToImmutableDictionary());

            return(new DiagramEvent(_initialDiagram, newDiagram, _shapeEvents));
        }
 public DiagramService(
     [NotNull] IModel model,
     [NotNull] IConnectorTypeResolver connectorTypeResolver,
     [NotNull] IModelRelationshipFeatureProvider modelRelationshipFeatureProvider,
     double childrenAreaPadding = DefaultChildrenAreaPadding)
     : this(
         ImmutableDiagram.Create(model, modelRelationshipFeatureProvider),
         connectorTypeResolver,
         modelRelationshipFeatureProvider,
         childrenAreaPadding)
 {
 }