improve docs

This commit is contained in:
meganrogge
2022-01-31 14:24:24 -06:00
parent fc6245122d
commit 7d7726817a
2 changed files with 9 additions and 21 deletions
@@ -69,23 +69,22 @@ class BufferDecoration extends Disposable implements IDecoration {
private readonly _container: HTMLElement
) {
super();
this._marker = decorationOptions.marker;
const color = DefaultButton.COLOR;
this._element = document.createElement('menu');
this._element = document.createElement('div');
this._element.classList.add('button-buffer-decoration');
this._element.id = 'button-buffer-decoration-' + this._id;
this._element.style.background = color;
this._element.style.width = '1px';
this._element.style.height = '32px';
this._element.style.width = '24px';
this._element.style.height = '24px';
this._element.style.borderRadius = '64px';
this._element.style.border = `4px solid white`;
this._element.style.zIndex = '6';
this._element.style.position = 'absolute';
if (decorationOptions.anchor === 'right') {
this._element.style.right = '5px';
this._element.style.right = `${decorationOptions.x}px` || '5px';
} else {
this._element.style.left = '5px';
this._element.style.right = `${decorationOptions.x}px` || '5px';
}
if (this._container.parentElement && this._element) {
this._container.parentElement.append(this._element);