Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Nov 5, 2023
1 parent caca534 commit e0dca4b
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/DoubleSlider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ export class DoubleSlider extends SliderBase
}
}

/**
* Sets width of a Sliders background and fill.
* If nineSlicePlane is set, then width will be set to nineSlicePlane.
* If nineSlicePlane is not set, then width will control components width as Container.
* @param value - Width value.
*/
override set width(value: number)
{
super.width = value;
Expand All @@ -272,11 +278,18 @@ export class DoubleSlider extends SliderBase
this.updateSlider2();
}

/** Gets width of a Slider. */
override get width(): number
{
return super.width;
}

/**
* Sets height of a Sliders background and fill.
* If nineSlicePlane is set, then height will be set to nineSlicePlane.
* If nineSlicePlane is not set, then height will control components height as Container.
* @param value - Height value.
*/
override set height(value: number)
{
super.height = value;
Expand All @@ -285,6 +298,7 @@ export class DoubleSlider extends SliderBase
this.updateSlider2();
}

/** Gets height of a Slider. */
override get height(): number
{
return super.height;
Expand Down
14 changes: 14 additions & 0 deletions src/FancyButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,12 @@ export class FancyButton extends ButtonContainer
return this._textOffset;
}

/**
* Sets width of a FancyButtons state views.
* If nineSlicePlane is set, then width will be set to nineSlicePlanes of a views.
* If nineSlicePlane is not set, then width will control components width as Container.
* @param value - Width value.

Check warning on line 802 in src/FancyButton.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "width". Got "value"

Check warning on line 802 in src/FancyButton.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "width". Got "value"
*/
override set width(width: number)
{
if (this.options?.nineSlicePlane)
Expand Down Expand Up @@ -826,11 +832,18 @@ export class FancyButton extends ButtonContainer
}
}

/** Gets width of a FancyButton. */
override get width(): number
{
return super.width;
}

/**
* Sets height of a FancyButtons state views.
* If nineSlicePlane is set, then height will be set to nineSlicePlanes of a views.
* If nineSlicePlane is not set, then height will control components height as Container.
* @param value - Height value.

Check warning on line 845 in src/FancyButton.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "height". Got "value"

Check warning on line 845 in src/FancyButton.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "height". Got "value"
*/
override set height(height: number)
{
if (this.options?.nineSlicePlane)
Expand Down Expand Up @@ -862,6 +875,7 @@ export class FancyButton extends ButtonContainer
}
}

/** Gets height of a FancyButton. */
override get height(): number
{
return super.height;
Expand Down
14 changes: 14 additions & 0 deletions src/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,12 @@ export class Input extends Container
super.destroy(options);
}

/**
* Sets width of a Input.
* If nineSlicePlane is set, then width will be set to nineSlicePlane.
* If nineSlicePlane is not set, then width will control components width as Container.
* @param value - Width value.

Check warning on line 529 in src/Input.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "width". Got "value"

Check warning on line 529 in src/Input.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "width". Got "value"
*/
override set width(width: number)
{
if (this.options?.nineSlicePlane)
Expand All @@ -545,11 +551,18 @@ export class Input extends Container
}
}

/** Gets width of Input. */
override get width(): number
{
return super.width;
}

/**
* Sets height of a Input.
* If nineSlicePlane is set, then height will be set to nineSlicePlane.
* If nineSlicePlane is not set, then height will control components height as Container.
* @param value - Height value.

Check warning on line 564 in src/Input.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "height". Got "value"

Check warning on line 564 in src/Input.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "height". Got "value"
*/
override set height(height: number)
{
if (this.options?.nineSlicePlane)
Expand All @@ -573,6 +586,7 @@ export class Input extends Container
}
}

/** Gets height of Input. */
override get height(): number
{
return super.height;
Expand Down
14 changes: 14 additions & 0 deletions src/ProgressBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ export class ProgressBar extends Container
return this._progress;
}

/**
* Sets width of a ProgressBars background and fill.
* If nineSlicePlane is set, then width will be set to nineSlicePlane.
* If nineSlicePlane is not set, then width will control components width as Container.
* @param value - Width value.

Check warning on line 236 in src/ProgressBar.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "width". Got "value"

Check warning on line 236 in src/ProgressBar.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "width". Got "value"
*/
override set width(width: number)
{
if (this.options?.nineSlicePlane)
Expand All @@ -255,11 +261,18 @@ export class ProgressBar extends Container
}
}

/** Gets width of a ProgressBar. */
override get width(): number
{
return super.width;
}

/**
* Sets height of a ProgressBars background and fill.
* If nineSlicePlane is set, then height will be set to nineSlicePlane.
* If nineSlicePlane is not set, then height will control components height as Container.
* @param value - Height value.

Check warning on line 274 in src/ProgressBar.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "height". Got "value"

Check warning on line 274 in src/ProgressBar.ts

View workflow job for this annotation

GitHub Actions / build

Expected @param names to be "height". Got "value"
*/
override set height(height: number)
{
if (this.options?.nineSlicePlane)
Expand All @@ -286,6 +299,7 @@ export class ProgressBar extends Container
}
}

/** Gets height of a ProgressBar. */
override get height(): number
{
return super.height;
Expand Down
14 changes: 14 additions & 0 deletions src/Slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,39 @@ export class Slider extends SliderBase
}
}

/**
* Sets width of a Sliders background and fill.
* If nineSlicePlane is set, then width will be set to nineSlicePlane.
* If nineSlicePlane is not set, then width will control components width as Container.
* @param value - Width value.
*/
override set width(value: number)
{
super.width = value;

this.updateSlider();
}

/** Gets width of a Slider. */
override get width(): number
{
return super.width;
}

/**
* Sets height of a Sliders background and fill.
* If nineSlicePlane is set, then height will be set to nineSlicePlane.
* If nineSlicePlane is not set, then height will control components height as Container.
* @param value - Height value.
*/
override set height(value: number)
{
super.height = value;

this.updateSlider();
}

/** Gets height of a Slider. */
override get height(): number
{
return super.height;
Expand Down

0 comments on commit e0dca4b

Please sign in to comment.