Path-drawing reveal
For a draw-in animation the tool sets stroke-dasharray to the path's total length and animates stroke-dashoffset from that length down to 0, so the stroke appears to trace the outline as it plays. For straight segments the length comes from the exact coordinates; for curves it is approximated by sampling points along the path, since there is no closed-form length formula for arbitrary Beziers.