43d588cce6
- Turbolizer highlights input and output nodes on hover. - The three panes support resizing now (snap to side still works). Bug: Change-Id: Ida1513fd714a02ab772885ea1fdf6d9da8d540f6 Reviewed-on: https://chromium-review.googlesource.com/837068 Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Reviewed-by: Daniel Clifford <danno@chromium.org> Cr-Commit-Position: refs/heads/master@{#50523}
34 lines
786 B
JavaScript
34 lines
786 B
JavaScript
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
"use strict";
|
|
|
|
class View {
|
|
constructor(id, broker) {
|
|
this.divElement = d3.select("#" + id);
|
|
this.divNode = this.divElement[0][0];
|
|
this.parentNode = this.divNode.parentNode;
|
|
}
|
|
|
|
isScrollable() {
|
|
return false;
|
|
}
|
|
|
|
show(data, rememberedSelection) {
|
|
this.parentNode.appendChild(this.divElement[0][0]);
|
|
this.initializeContent(data, rememberedSelection);
|
|
this.divElement.attr(VISIBILITY, 'visible');
|
|
}
|
|
|
|
hide() {
|
|
this.divElement.attr(VISIBILITY, 'hidden');
|
|
this.deleteContent();
|
|
this.parentNode.removeChild(this.divNode);
|
|
}
|
|
|
|
detachSelection() {
|
|
return null;
|
|
}
|
|
}
|