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

Method refreshAbsolutePositions

src/lib/svg.ts:677–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

675
676
677 refreshAbsolutePositions() {
678 let previous: SvgItem | null = null;
679 let origin = new Point(0, 0);
680 for (const item of this.path) {
681 item.refresh(origin, previous);
682
683 if (item instanceof MoveTo || item instanceof ClosePath) {
684 origin = item.targetLocation();
685 }
686 previous = item;
687 }
688 }
689}

Callers 13

constructorMethod · 0.95
translateMethod · 0.95
scaleMethod · 0.95
rotateMethod · 0.95
setRelativeMethod · 0.95
deleteMethod · 0.95
insertMethod · 0.95
changeTypeMethod · 0.95
setLocationMethod · 0.95
reversePathFunction · 0.80
changePathOriginFunction · 0.80
optimizePathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected