Add shapeWillChanged callback.