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

Method copy

store.js:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 copy(){
57 let name = this.read( 'activePath' );
58 if (name){
59 const path = this.read( name );
60 if (path){
61 name = this.nextPathName;
62 path.config.name = name;
63 this.write( path.config, path.nodes );
64 return name;
65 }
66 }
67 }
68
69 get nextPathName(){
70 const names = this.getPathNames();

Callers 1

copyPathMethod · 0.80

Calls 2

readMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected