Cleanup and improve JSDoc typing
This commit is contained in:
parent
718bd8398d
commit
0972a0491f
2 changed files with 8 additions and 4 deletions
|
|
@ -4,6 +4,8 @@ import { StyledShadowElement } from "./mixins/Styles.mjs";
|
||||||
Attributes:
|
Attributes:
|
||||||
@property {string} name - The name of the icon, takes precedence over the path
|
@property {string} name - The name of the icon, takes precedence over the path
|
||||||
@property {string} path - The path of the icon file
|
@property {string} path - The path of the icon file
|
||||||
|
|
||||||
|
@extends {HTMLElement}
|
||||||
*/
|
*/
|
||||||
export class DotDungeonIcon extends StyledShadowElement(HTMLElement) {
|
export class DotDungeonIcon extends StyledShadowElement(HTMLElement) {
|
||||||
static elementName = `dd-icon`;
|
static elementName = `dd-icon`;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ Attributes:
|
||||||
Styling:
|
Styling:
|
||||||
- `--height`: Controls the height of the element + the width of the buttons (default: 1.25rem)
|
- `--height`: Controls the height of the element + the width of the buttons (default: 1.25rem)
|
||||||
- `--width`: Controls the width of the number input (default 50px)
|
- `--width`: Controls the width of the number input (default 50px)
|
||||||
|
|
||||||
|
@extends {HTMLElement}
|
||||||
*/
|
*/
|
||||||
export class DotDungeonIncrementer
|
export class DotDungeonIncrementer
|
||||||
extends StyledShadowElement(
|
extends StyledShadowElement(
|
||||||
|
|
@ -42,14 +44,14 @@ extends StyledShadowElement(
|
||||||
|
|
||||||
get form() {
|
get form() {
|
||||||
return this._internals.form;
|
return this._internals.form;
|
||||||
}
|
};
|
||||||
|
|
||||||
get name() {
|
get name() {
|
||||||
return this.getAttribute(`name`);
|
return this.getAttribute(`name`);
|
||||||
}
|
};
|
||||||
set name(value) {
|
set name(value) {
|
||||||
this.setAttribute(`name`, value);
|
this.setAttribute(`name`, value);
|
||||||
}
|
};
|
||||||
|
|
||||||
get value() {
|
get value() {
|
||||||
return this.getAttribute(`value`);
|
return this.getAttribute(`value`);
|
||||||
|
|
@ -60,7 +62,7 @@ extends StyledShadowElement(
|
||||||
|
|
||||||
get type() {
|
get type() {
|
||||||
return `number`;
|
return `number`;
|
||||||
}
|
};
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue