merge CanvasTool.ts