add osnap when inserting component.