Tags: apwide/vis-timeline
Tags
fix: add template functions can return HTMLElement (visjs#836) In my own use case, I'm trying to attach a Vue component containing an image. Some properties are computed against `scrollHeight` of this image, and this is 0 if the element is not attached to the DOM. So returning `outerHTML` is not the same thing as returning the element itself.
fix(timeline.setgroups): nested groups fold correcly when input is ar… …ray (visjs#718) * fix(timeline.setgroups): nested groups fold correcly when input is array Fixes visjs#113 * chore(examples.nestedgroups): add example to demonstrate fix of visjs#203 * chore(examples.nestedgroups): revert prev This reverts commit 1a8fd7e. Please squash this. Co-authored-by: Yotam Berkowitz <[email protected]>
feat(data): allow custom DataSet/View implementations (visjs#729) This tests that the methods and properties are implemented instead of checking the prototype. Thanks to this it is now possible to use a different DataSet or DataView without extending the Vis one. This also removes some interoperability issues of the standalone build when used toghether with other Vis family libraries.
fix(util.typecoercedataset): restore timeline.itemsData.clear accessor ( visjs#716) * fix(util.typecoercedataset): restore timeline.itemsData.clear accessor This bug was introduced in visjs#259 , and constituted a breaking change. This commit should fix visjs#715. * revert "fix(util.typecoercedataset): restore timeline.itemsData.clear accessor" This reverts commit ba888c7.
fix(util.convert): epoch times stored as strings convert correctly, u… …nit test fixup, parse iso dates in local tz (visjs#699) * fix: parse string dates directly with moment * fix: error for convert unknown to moment more specific Previously stated "Unable to convert to Date" Now states "Unable to convert to moment" * test: add html doc for testing offset behaviour * test: test string to date conversions more rigorously * refactor(utils.convert): remove repeated code, throw TypeErrors Previously, "Date" & "Moment" had identical switch branches, but each return statement in "Date" had `moment(...).toDate()`. Now, Date branch is just `convert(object, "Moment").toDate()`. Also, each now throw TypeErrors, & Date branch catches "TypeError" & rethrows its own. * test(util.convert): test for "TypeError" when testing throws * test(util.convert): more robust output checking for date conversion * fix(util.convert): convert epoch times in strings to number before converting to moment * test(util.convert): improve "testOffset" example * Delete testOffset.html as per review comment Co-authored-by: Yotam Berkowitz <[email protected]>
PreviousNext