MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setMarginPercent

Method setMarginPercent

src/native-ts/yoga-layout/index.ts:826–831  ·  view source on GitHub ↗
(edge: Edge, v: number)

Source from the content-addressed store, hash-verified

824 this.markDirty()
825 }
826 setMarginPercent(edge: Edge, v: number): void {
827 this.style.margin[edge] = percentValue(v)
828 this._hasAutoMargin = hasAnyAutoEdge(this.style.margin)
829 this._hasMargin = true
830 this.markDirty()
831 }
832 setMarginAuto(edge: Edge): void {
833 this.style.margin[edge] = AUTO_VALUE
834 this._hasAutoMargin = true

Callers

nothing calls this directly

Calls 3

markDirtyMethod · 0.95
percentValueFunction · 0.85
hasAnyAutoEdgeFunction · 0.85

Tested by

no test coverage detected