MCPcopy Create free account
hub / github.com/material-shell/material-shell / updateBorders

Method updateBorders

src/layout/msWorkspace/portion.ts:73–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 updateBorders() {
74 this.borders = [];
75 if (this.children.length < 2) {
76 return;
77 }
78 for (let i = 0; i < this.children.length - 1; i++) {
79 const [firstPortion, secondPortion] = this.children.slice(i, i + 2);
80
81 this.borders.push(
82 new PortionBorder(firstPortion, secondPortion, this)
83 );
84 }
85 }
86
87 hasPortion(portion: Portion) {
88 for (let i = 0; i < this.children.length; i++) {

Callers 7

stateMethod · 0.95
insertMethod · 0.95
pushMethod · 0.95
shiftMethod · 0.95
popMethod · 0.95
rotateRightMethod · 0.95
rotateLeftMethod · 0.95

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected