Lines Matching refs:attrs
54 private attrs?: TrackShellAttrs;
57 this.attrs = vnode.attrs;
60 view({attrs}: m.CVnode<TrackShellAttrs>) {
68 if (trackId === attrs.trackState.id) {
88 title: attrs.trackState.name,
90 attrs.trackState.name),
92 attrs.track.getTrackShellButtons(),
96 Actions.toggleTrackPinned({trackId: attrs.trackState.id}));
98 i: isPinned(attrs.trackState.id) ? STAR : STAR_BORDER,
99 tooltip: isPinned(attrs.trackState.id) ? 'Unpin' : 'Pin to top',
100 showButton: isPinned(attrs.trackState.id),
107 {id: attrs.trackState.id, isTrackGroup: false}));
110 i: isSelected(attrs.trackState.id) ? CHECKBOX : BLANK_CHECKBOX,
111 tooltip: isSelected(attrs.trackState.id) ?
130 dataTransfer.setData('perfetto/track', `${this.attrs!.trackState.id}`);
170 const dstId = this.attrs!.trackState.id;
182 view({attrs}: m.CVnode<TrackContentAttrs>) {
185 attrs.track.onMouseMove({x: e.layerX - TRACK_SHELL_WIDTH, y: e.layerY});
189 attrs.track.onMouseOut();
216 if (attrs.track.onMouseClick(
231 view({attrs}: m.CVnode<TrackComponentAttrs>) {
236 height: `${Math.max(24, attrs.track.getHeight())}px`,
238 id: 'track_' + attrs.trackState.id,
241 m(TrackShell, {track: attrs.track, trackState: attrs.trackState}),
242 m(TrackContent, {track: attrs.track})
246 oncreate({attrs}: m.CVnode<TrackComponentAttrs>) {
247 if (globals.frontendLocalState.scrollToTrackId === attrs.trackState.id) {
248 verticalScrollToTrack(attrs.trackState.id);
261 view({attrs}: m.CVnode<TrackButtonAttrs>) {
265 class: `${attrs.showButton ? 'show' : ''}`,
266 onclick: attrs.action,
267 title: attrs.tooltip,
269 attrs.i);
283 this.trackState = globals.state.tracks[vnode.attrs.id];