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