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

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