Skip to content

Commit

Permalink
chore(release): 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed Jul 9, 2024
1 parent b25f982 commit 94806cd
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 41 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## [3.0.1](https://github.com/pex-gl/pex-gui/compare/v3.0.0...v3.0.1) (2024-07-09)



# [3.0.0](https://github.com/pex-gl/pex-gui/compare/v3.0.0-alpha.3...v3.0.0) (2024-02-05)


Expand Down
76 changes: 39 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,37 +185,32 @@ gui.addStats("Object stats", {
</dd>
</dl>

## Functions

<dl>
<dt><a href="#exp_module_pex-gui--createGUI">createGUI(ctx, opts)</a> ⇒ <code><a href="#GUI">GUI</a></code> ⏏</dt>
<dd></dd>
</dl>

## Typedefs

<dl>
<dt><a href="#GUIControlOptions">GUIControlOptions</a> : <code>object</code></dt>
<dd></dd>
<dt><a href="#GUIOptions">GUIOptions</a> : <code>object</code></dt>
<dd></dd>
<dt><a href="#ctx">ctx</a> : <code>module:pex-context~ctx</code></dt>
<dd></dd>
</dl>

<a name="module_pex-gui"></a>

## pex-gui

**Summary**: Export a factory function for creating a GUI instance.
<a name="exp_module_pex-gui--createGUI"></a>
<a name="module_pex-gui.default"></a>

### createGUI(ctx, opts) ⇒ [<code>GUI</code>](#GUI)
### pex-gui.default(ctx, opts) ⇒ [<code>GUI</code>](#GUI)

**Kind**: global method of [<code>pex-gui</code>](#module_pex-gui)
**Kind**: static method of [<code>pex-gui</code>](#module_pex-gui)

| Param | Type |
| ----- | ---------------------------------------------------------------------------- |
| ctx | <code>module:pex-context~ctx</code> \| <code>CanvasRenderingContext2D</code> |
| opts | <code>module:pex~GUIOptions</code> |
| Param | Type |
| ----- | ----------------------------------------------------------------- |
| ctx | [<code>ctx</code>](#ctx) \| <code>CanvasRenderingContext2D</code> |
| opts | [<code>GUIOptions</code>](#GUIOptions) |

<a name="GUI"></a>

Expand Down Expand Up @@ -257,10 +252,10 @@ GUI controls for PEX.

Creates an instance of GUI.

| Param | Type |
| ----- | ---------------------------------------------------------------------------- |
| ctx | <code>module:pex-context~ctx</code> \| <code>CanvasRenderingContext2D</code> |
| opts | <code>module:pex~GUIOptions</code> |
| Param | Type |
| ----- | ----------------------------------------------------------------- |
| ctx | [<code>ctx</code>](#ctx) \| <code>CanvasRenderingContext2D</code> |
| opts | [<code>GUIOptions</code>](#GUIOptions) |

<a name="GUI+addTab"></a>

Expand All @@ -270,13 +265,13 @@ Add a tab control.

**Kind**: instance method of [<code>GUI</code>](#GUI)

| Param | Type | Default |
| ------------- | ----------------------------------------- | --------------- |
| title | <code>string</code> | |
| contextObject | <code>object</code> | |
| attributeName | <code>string</code> | |
| [options] | <code>module:pex~GUIControlOptions</code> | <code>{}</code> |
| onChange | <code>function</code> | |
| Param | Type | Default |
| ------------- | ---------------------------------------------------- | --------------- |
| title | <code>string</code> | |
| contextObject | <code>object</code> | |
| attributeName | <code>string</code> | |
| [options] | [<code>GUIControlOptions</code>](#GUIControlOptions) | <code>{}</code> |
| onChange | <code>function</code> | |

<a name="GUI+addColumn"></a>

Expand Down Expand Up @@ -336,13 +331,13 @@ Add a generic parameter control.

**Kind**: instance method of [<code>GUI</code>](#GUI)

| Param | Type | Default |
| ------------- | ----------------------------------------- | --------------- |
| title | <code>string</code> | |
| contextObject | <code>object</code> | |
| attributeName | <code>string</code> | |
| [options] | <code>module:pex~GUIControlOptions</code> | <code>{}</code> |
| onChange | <code>function</code> | |
| Param | Type | Default |
| ------------- | ---------------------------------------------------- | --------------- |
| title | <code>string</code> | |
| contextObject | <code>object</code> | |
| attributeName | <code>string</code> | |
| [options] | [<code>GUIControlOptions</code>](#GUIControlOptions) | <code>{}</code> |
| onChange | <code>function</code> | |

**Example**

Expand Down Expand Up @@ -456,7 +451,7 @@ Notes: texture cannot be updated once created.
| ------- | ------------------------------------------------------------------------- |
| title | <code>string</code> |
| texture | <code>module:pex-context~texture</code> \| <code>CanvasImageSource</code> |
| options | <code>module:pex~GUIControlOptions</code> |
| options | [<code>GUIControlOptions</code>](#GUIControlOptions) |

**Example**

Expand Down Expand Up @@ -493,10 +488,10 @@ Add a XY graph visualiser from the control values.

**Kind**: instance method of [<code>GUI</code>](#GUI)

| Param | Type |
| ------- | ----------------------------------------- |
| title | <code>string</code> |
| options | <code>module:pex~GUIControlOptions</code> |
| Param | Type |
| ------- | ---------------------------------------------------- |
| title | <code>string</code> |
| options | [<code>GUIControlOptions</code>](#GUIControlOptions) |

**Example**

Expand Down Expand Up @@ -578,6 +573,7 @@ Remove events listeners, empty list of controls and dispose of the gui's resourc
| [min] | <code>number</code> | <code>0</code> | |
| [max] | <code>number</code> | <code>0</code> | |
| [type] | <code>&quot;color&quot;</code> | | Interpret an array as color. |
| [colorSpace] | <code>string</code> | | Display a color as values of a pex-color color space. |
| [alpha] | <code>boolean</code> | | Add a 4th slider for colors. |
| [palette] | <code>HTMLImageElement</code> | | Draw a palette image as color picker. |
| [flipEnvMap] | <code>boolean</code> | | Should be 1 for dynamic cubemaps and -1 for cubemaps from file with X axis flipped. |
Expand All @@ -598,6 +594,12 @@ Remove events listeners, empty list of controls and dispose of the gui's resourc
| [scale] | <code>number</code> | <code>1</code> | |
| [responsive] | <code>boolean</code> | <code>true</code> | Adapts to canvas dimension. |

<a name="ctx"></a>

## ctx : <code>module:pex-context~ctx</code>

**Kind**: global typedef

<!-- api-end -->

## License
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pex-gui",
"version": "3.0.0",
"version": "3.0.1",
"description": "GUI controls for PEX.",
"keywords": [
"pex",
Expand All @@ -13,7 +13,10 @@
],
"homepage": "https://github.com/pex-gl/pex-gui",
"bugs": "https://github.com/pex-gl/pex-gui/issues",
"repository": "pex-gl/pex-gui",
"repository": {
"type": "git",
"url": "git+https://github.com/pex-gl/pex-gui.git"
},
"license": "MIT",
"author": "Marcin Ignac <[email protected]> (http://marcinignac.com)",
"contributors": [
Expand Down

0 comments on commit 94806cd

Please sign in to comment.