fix bb layer position error
This commit is contained in:
parent
c1b3dfbfff
commit
ac033a3ae3
|
@ -145,13 +145,12 @@ def buildBlock(exDb, deDb, target, currentGraphBlockCell):
|
||||||
else:
|
else:
|
||||||
layer_height[curLayer] = max(layer_height.get(curLayer, 0), bbResult[i].height)
|
layer_height[curLayer] = max(layer_height.get(curLayer, 0), bbResult[i].height)
|
||||||
layer_height[arrangedLayer] = layer_height.get(arrangedLayer, 0) # make sure misc bb height exist
|
layer_height[arrangedLayer] = layer_height.get(arrangedLayer, 0) # make sure misc bb height exist
|
||||||
for i in occupiedLayerCountForSpecificBB.keys(): # add oper occipation
|
|
||||||
layer_height[i] += (occupiedLayerCountForSpecificBB[i] + 1) * dcv.GRAPH_SPAN_BB_POPER
|
|
||||||
|
|
||||||
# calc bb Y
|
# calc bb Y
|
||||||
baseY = dcv.GRAPH_CONTENTOFFSET_Y
|
baseY = dcv.GRAPH_CONTENTOFFSET_Y
|
||||||
for i in range(arrangedLayer + 1):
|
for i in range(arrangedLayer + 1):
|
||||||
baseY += layer_height[i] + dcv.GRAPH_LAYER_SPAN
|
baseY += layer_height[i] + dcv.GRAPH_LAYER_SPAN
|
||||||
|
baseY += occupiedLayerCountForSpecificBB.get(i, 0) * dcv.GRAPH_SPAN_BB_POPER # add oper occipation
|
||||||
layer_y[i] = baseY
|
layer_y[i] = baseY
|
||||||
for i in bbResult.keys():
|
for i in bbResult.keys():
|
||||||
cache = bbResult[i]
|
cache = bbResult[i]
|
||||||
|
|
|
@ -4,7 +4,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# debug use
|
# debug use
|
||||||
# os.remove('decorate.db')
|
os.remove('decorate.db')
|
||||||
|
|
||||||
print('Super Script View')
|
print('Super Script View')
|
||||||
if not os.path.isfile("decorate.db"):
|
if not os.path.isfile("decorate.db"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user