how to force update of data primitive ?

78 views
Skip to first unread message

math...@gmail.com

unread,
May 10, 2017, 8:29:46 AM5/10/17
to MathBox
is there a way to request a data primitive like interval to update (i.e. have its expr called) even if its width etc are unchanged ? Because my expr function is statefull & could return different data on a given event. I don't want to set live to true as I understand that slows things down

math...@gmail.com

unread,
May 13, 2017, 2:35:43 AM5/13/17
to MathBox

Alexander Mordvintsev

unread,
May 14, 2017, 9:45:55 PM5/14/17
to MathBox, math...@gmail.com
How are you doing it with bind? I though this particular use case was missing from MathBox and was planning to fix it.

суббота, 13 мая 2017 г., 2:35:43 UTC-4 пользователь math...@gmail.com написал:

math...@gmail.com

unread,
May 15, 2017, 3:05:47 AM5/15/17
to MathBox, math...@gmail.com
e.g.

newElement.bind("width", function(t d){...});

with live: true means it's always updated

Blake La Pierre

unread,
Jul 28, 2017, 9:17:02 PM7/28/17
to MathBox, math...@gmail.com
It would be nice to be able to schedule an update without setting live: true, since the values may not change for long periods of time.

Christopher Chudzicki

unread,
Oct 16, 2018, 9:00:22 PM10/16/18
to MathBox
To force an interval to update without setting { live: true }, I believe that it suffices to update the expr property. So in the past I've just reassigned expr to its current value.
Reply all
Reply to author
Forward
0 new messages