public ArtboardSnapping(ArtboardSnapSourcePrimitive sourcePrimitive, ArtboardSnapTargetPrimitive targetPrimitive) { SourcePrimitive = sourcePrimitive; TargetPrimitive = targetPrimitive; }
public override bool CanSnap(ArtboardSnapSourcePrimitive sourcePrimitive) { return((sourcePrimitive is ArtboardSnapSourceLine sourceLine && Axis == sourceLine.Axis || sourcePrimitive is ArtboardSnapSourcePoint) && CanSnapCore(sourcePrimitive)); }
protected virtual bool CanSnapCore(ArtboardSnapSourcePrimitive sourcePrimitive) { return(true); }
public abstract bool CanSnap(ArtboardSnapSourcePrimitive sourcePrimitive);