public VectorRedactorRepository(Graphics canvas, Redactor redactor, VectorRedactorConfig config) { Canvas = canvas; _redactor = redactor; canvas.SmoothingMode = SmoothingMode.HighQuality; Layout = new Layout(canvas); WordConfig = new GlyphConfig(config.WordBrush, config.WordPen); LineConfig = new GlyphConfig(config.LineBrush, config.LinePen); RedactorState = RedactorStates.Default; MainGlyph = new CanvasGlyph(WordConfig) { Redactor = _redactor, ParentVectorRedactor = this }; MainGlyph.MainGlyph = MainGlyph; ActiveGlyph = MainGlyph; }
public PathGlyph(GlyphConfig config) { Config = config; Figure = new UnclosedPathFigure(); }
public CanvasGlyph(GlyphConfig config) { Config = config; Childs = new List <Glyph>(); }
public CanvasGlyph(GlyphConfig config) { Config = config; Childs = new List<Glyph>(); }