daybrush / scenejs

🎬 Scene.js is JavaScript & CSS timeline-based animation library

Home Page:https://daybrush.com/scenejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In timeLine , i want to delete designated node what can i do?

qikong333 opened this issue · comments

In timeLine
i want to delete designated node what can i do?

.on('select', (e: SelectEvent) => {
     console.log(e.selectedItem);
   });

it only get the track,it can not get node in the track. I want to get the node and controll it

@qikong333
Try code:

scene.removeItem(id);
timeline.update();

image
could it have some callbalk fucntion when i chick it?

@qikong333

keydown backspace key

@qikong333

keydown backspace key

I mean the white dots should have functions such as dragging and editing

image
E.g
use item.get can help me to get the keyframe , i can't get this time when i click the white dots.
I can do more operations if I can

@qikong333

SelectEvent has selectedTime

item.remove(selectedTime);

And let's check the timeline. Or I will add a function.