MCPcopy
hub / github.com/alyssaxuu/motionity / toggleAnimationOrder

Function toggleAnimationOrder

src/js/ui.js:352–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350}
351
352function toggleAnimationOrder() {
353 var object = canvas.getActiveObject();
354 $('.order-toggle-item-active').removeClass(
355 'order-toggle-item-active'
356 );
357 if ($(this).attr('id') == 'order-backward') {
358 animatedtext
359 .find((x) => x.id == object.id)
360 .setProp({ order: 'backward' }, canvas);
361 } else if ($(this).attr('id') == 'order-forward') {
362 animatedtext
363 .find((x) => x.id == object.id)
364 .setProp({ order: 'forward' }, canvas);
365 }
366 $(this).addClass('order-toggle-item-active');
367 animate(currenttime, false);
368 save();
369}
370function toggleAnimationType() {
371 var object = canvas.getActiveObject();
372 $('.order-toggle-item-active-2').removeClass(

Callers

nothing calls this directly

Calls 4

animateFunction · 0.85
saveFunction · 0.85
setPropMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected