MCPcopy Create free account
hub / github.com/PageBot/PageBot / _get_front

Method _get_front

Lib/pagebot/elements/element.py:2725–2731  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2723 # layers.
2724
2725 def _get_front(self):
2726 zAlign = self.css('zAlign')
2727 if zAlign == MIDDLE:
2728 return self.z - self.d/2
2729 if zAlign == BACK:
2730 return self.z - self.d
2731 return self.z
2732 def _set_front(self, z):
2733 zAlign = self.css('zAlign')
2734 if zAlign == MIDDLE:

Callers

nothing calls this directly

Calls 1

cssMethod · 0.95

Tested by

no test coverage detected