flekschas / piling.js

A general framework and library for exploring thousands of small multiples

Home Page:https://piling.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cover not updated as the texture is updated

flekschas opened this issue · comments

When the texture is updated, the cover is not updated too. This can lead to inconsistencies.

As the item texture is updated we should check if the items are part of a pile and then update the piles as well. I think the best place to check is https://github.com/flekschas/piling.js/blob/master/src/library.js#L3113

We could have yet another dictionary in which we store which piles are affected and then call the pile updater for those piles. In the updater, we really only need to check if the pile has a cover. If it has a cover we should update it.