demo/star: use new  snapping and restriction API