MCPcopy Index your code
hub / github.com/NikLever/ThreeJS-PathEditor / deletePath

Method deletePath

index.js:271–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 }
270
271 deletePath(){
272 if ( this.activePath == null ) return;
273
274 this.store.delete( this.activePath );
275 const names = this.store.getPathNames();
276 this.nameCtrl = this.nameCtrl.options( names );
277 this.nameCtrl.onChange( ( value ) => {
278 this.loadPath( value );
279 });
280
281 if ( names.length > 0) this.loadPath( names[0] );
282 this.updatePathNamesGUI();
283 }
284
285 export(){
286 let unitScalar, precision;

Callers 1

constructorMethod · 0.95

Calls 4

loadPathMethod · 0.95
updatePathNamesGUIMethod · 0.95
deleteMethod · 0.80
getPathNamesMethod · 0.80

Tested by

no test coverage detected