MCPcopy
hub / github.com/Yqnn/svg-path-editor / useAsOrigin

Method useAsOrigin

src/app/app.component.ts:383–388  ·  view source on GitHub ↗
(item: SvgItem, subpathOnly?: boolean)

Source from the content-addressed store, hash-verified

381 }
382
383 useAsOrigin(item: SvgItem, subpathOnly?: boolean) {
384 const idx = this.parsedPath.path.indexOf(item);
385 changePathOrigin(this.parsedPath, idx, subpathOnly);
386 this.afterModelChange();
387 this.focusedItem = null;
388 }
389
390 reverseSubPath(item: SvgItem) {
391 const idx = this.parsedPath.path.indexOf(item);

Callers

nothing calls this directly

Calls 2

afterModelChangeMethod · 0.95
changePathOriginFunction · 0.90

Tested by

no test coverage detected