MCPcopy Create free account
hub / github.com/breck7/scroll / getPositionAndDimensions

Method getPositionAndDimensions

external/.scrollLibs.js:23535–23544  ·  view source on GitHub ↗
(gridSize = 1)

Source from the content-addressed store, hash-verified

23533 return this.getShadowStumpParticle().parent.getShadow()
23534 }
23535 getPositionAndDimensions(gridSize = 1) {
23536 const offset = this.getShadowOffset()
23537 const parentOffset = this.getShadowParent().getShadowOffset()
23538 return {
23539 left: Math.floor((offset.left - parentOffset.left) / gridSize),
23540 top: Math.floor((offset.top - parentOffset.top) / gridSize),
23541 width: Math.floor(this.getShadowWidth() / gridSize),
23542 height: Math.floor(this.getShadowHeight() / gridSize)
23543 }
23544 }
23545 shadowHasClass(name) {
23546 return false
23547 }

Callers

nothing calls this directly

Calls 5

getShadowOffsetMethod · 0.95
getShadowParentMethod · 0.95
getShadowWidthMethod · 0.95
getShadowHeightMethod · 0.95
getShadowOffsetMethod · 0.45

Tested by

no test coverage detected