arc: z-order in the slice engine + gitops collapse tune (shard and cluster nests)
This commit is contained in:
@@ -74,6 +74,7 @@ def emit(name, tag, spec):
|
||||
poly = poly[::k]
|
||||
parts.append(dict(
|
||||
name=part["name"], title=part["title"], blurb=part["blurb"],
|
||||
z=part.get("z", 0),
|
||||
points=[[round(float(x) / W * 100, 2), round(float(y) / h * 100, 2)] for x, y in poly],
|
||||
cx=round(float(np.mean(xs)) / W * 100, 2), cy=round(float(np.mean(ys)) / h * 100, 2)))
|
||||
ax, ay = next((p["cx"], p["cy"]) for p in parts if p["name"] == spec["anchor"])
|
||||
|
||||
Reference in New Issue
Block a user