You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the scale in DiceBox configuration has no effect...
To replicate this issue, just use the kitchen sink demo you published to CodeSandbox, change the scale to something other than the default (e.g. 9) like so:
let Box = new DiceBox("#dice-box", {
assetPath: "/public/assets/dice-box/",
theme: "default",
offscreen: true,
scale: 9
});
Notice that the scale is NOT applied and there's no visual difference from the default of 6.
IF however you change the scale via the Box Controls to a value of 9 then you can clearly see the size difference.
It would appear therefore that the scale config parameter is ignored.
The text was updated successfully, but these errors were encountered:
I have discovered that this is due to the BoxControl not respecting the config passed in respecting scale instead it always default. A pull request to fix this to follow shortly...
Setting the scale in DiceBox configuration has no effect...
To replicate this issue, just use the kitchen sink demo you published to CodeSandbox, change the scale to something other than the default (e.g. 9) like so:
Notice that the scale is NOT applied and there's no visual difference from the default of 6.
IF however you change the scale via the Box Controls to a value of 9 then you can clearly see the size difference.
It would appear therefore that the scale config parameter is ignored.
The text was updated successfully, but these errors were encountered: