Three/R168/Dragcontrols Getraycaster To Controls Raycaster

1.0.0Last update Sep 2, 2024
by@yugal41735

This codemod renames DragControls.getRaycaster() to controls.raycaster

Example

Before

taScene.dragcontrols.getRaycaster();

After

taScene.controls.raycaster;

Before

dragcontrols.getRaycaster();

After

controls.raycaster;

Before

if (something) {
anything.dragcontrols.getRaycaster();
}

After

if (something) {
anything.controls.raycaster;
}

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now