1using System.Threading.Tasks;
22 : base(Document, Parent)
37 set => this.scaleX = value;
46 set => this.scaleY = value;
53 public override Task
FromXml(XmlElement Input)
58 return base.FromXml(Input);
67 base.ExportAttributes(Output);
69 this.scaleX?.
Export(Output);
70 this.scaleY?.
Export(Output);
81 return new Scale(Document, Parent);
90 base.CopyContents(Destination);
92 if (Destination is
Scale Dest)
105 await base.AfterMeasureDimensions(State);
107 this.sx = await this.scaleX.Evaluate(State.
Session, 1);
108 this.sy = await this.scaleY.Evaluate(State.
Session, 1);
123 SKMatrix M = State.
Canvas.TotalMatrix;
126 await base.Draw(State);
128 State.
Canvas.SetMatrix(M);
137 base.ExportStateAttributes(Output);
Contains a 2D layout document.
void Export(XmlWriter Output)
Exports the attribute.
void ExportState(XmlWriter Output)
Exports the state of the attribute.
Floating point (Single) attribute
FloatAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
SKCanvas Canvas
Current drawing canvas.
Variables Session
Current session.
Layout2DDocument Document
Layout document.
void TransformBoundingBox(SKMatrix M)
Transforms the measured bounding box.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.