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
I upgraded plotly.js from 1.17.1 to 1.25.2 and started facing strange behavior when adding shapes into graph programmatically (after newPlot()).
I use Typescript and the shape object I pass into relayout() function is defined as a class in Typescript. The details are not much relevant, I put together a sample to reproduce the misbehavior by simply wrapping the object with Object.create() (Actually it is for images, not shapes, but id does not matter). Please see here http://codepen.io/exavier/pen/RpzRJY?editors=0011
In relayout() it comes to check manageArrays.isAddVal(vi), which in turn does check isPlainObject(val) where the failing check is Object.getPrototypeOf(obj) === Object.prototype.
The text was updated successfully, but these errors were encountered:
Thanks.
Just to choose right workaround - as #1405 status is 'discussion needed' since Feb 22, am I right thinking it is not going to be fixed anytime soon?
I upgraded plotly.js from 1.17.1 to 1.25.2 and started facing strange behavior when adding shapes into graph programmatically (after newPlot()).
I use Typescript and the shape object I pass into relayout() function is defined as a class in Typescript. The details are not much relevant, I put together a sample to reproduce the misbehavior by simply wrapping the object with
Object.create()
(Actually it is forimages
, notshapes
, but id does not matter). Please see here http://codepen.io/exavier/pen/RpzRJY?editors=0011In
relayout()
it comes to checkmanageArrays.isAddVal(vi)
, which in turn does checkisPlainObject(val)
where the failing check isObject.getPrototypeOf(obj) === Object.prototype
.The text was updated successfully, but these errors were encountered: