Modify the thickness of the edge of a shape in 2 steps:
Select a 2D TextureMask...
... applied to a Function
It creates automatically a Position in Shape
Example of different functions used for edge thickness. Here, the Position In Shape of the modifier is set to Along Edge