Many games on BGA use stock component and most of these games use methods: addToStock/addToStockWithId and removeFromStock/removeFromStockById with optional parameter "from/to" for sliding of stock item from/to an Html element. Very often stock item (card, token, ...) is sliding under various game elements on game board, but it would have to slide above those game elements. This situation looks not very beautifully.
I offer to add two optional parameters to those methods: addToStock( type, from, zindex, duration ) and removeFromStock( type, to, zindex, duration ) and (too addToStockWithId/removeFromStockById)
Additional parameters:
zindex: OPTIONNAL: z-index of stock item sliding to/from an Html element. (Then we could manage z-index of stock item and it could slide above required game elements)
Available value: "PREV" - value by default for compatibility with previous version, "AUTO" - z-index of stock item equal z-index of Html element, any value for z-index of stock item.
duration: OPTIONNAL: duration of sliding of stock item to/from an Html element (msec). Value by default equal 1000 for compatibility with previous version.
I offer to add two optional parameters to those methods: addToStock( type, from, zindex, duration ) and removeFromStock( type, to, zindex, duration ) and (too addToStockWithId/removeFromStockById)
Additional parameters:
zindex: OPTIONNAL: z-index of stock item sliding to/from an Html element. (Then we could manage z-index of stock item and it could slide above required game elements)
Available value: "PREV" - value by default for compatibility with previous version, "AUTO" - z-index of stock item equal z-index of Html element, any value for z-index of stock item.
duration: OPTIONNAL: duration of sliding of stock item to/from an Html element (msec). Value by default equal 1000 for compatibility with previous version.