Skip to content

Commit

Permalink
prettier (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky authored Aug 21, 2024
1 parent f0df8ea commit 34953cb
Show file tree
Hide file tree
Showing 61 changed files with 27,414 additions and 19,858 deletions.
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
index.js
index.umd.js
demo/index.js
src/index.js
dist/
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"bracketSpacing": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.enable": true,
"eslint.validate": ["javascript"]
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.enable": true,
"eslint.validate": ["javascript"]
}
178 changes: 89 additions & 89 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,206 +1,206 @@
### 0.10.0 (2024-08-20)

*New:*
_New:_

- Added a `dist/index.cjs` distribution.
- Replaced `index.js` with `src/index.js`.
- Added a `dist/index.cjs` distribution.
- Replaced `index.js` with `src/index.js`.

*Fixed:*
_Fixed:_

- Fixed `extends` property of type `Attribute`.
- Fixed `extends` property of type `Attribute`.

*Breaking:*
_Breaking:_

- `main` field in `package.json` now points to `dist/index.cjs`.
- `main` field in `package.json` now points to `dist/index.cjs`.

### 0.9.2 (2024-08-20)

*New:*
_New:_

- Added a `types.d.ts` module.
- Added a `types.d.ts` module.

### 0.9.1 (2024-08-13)

*New:*
_New:_

- Added `kaleidoscope` effect.
- Added `kaleidoscope` effect.

### 0.9.0 (2024-08-13)

*New:*
_New:_

- Added `afterDraw` callback to kampos config. Used to pass a function that will be called after each draw call.
- Added optional function argument `afterDraw` to `kampos#play()` method to be dynamically set to `kampos.config.afterDraw`.
- Added optional boolean argument `skipTextureCreation` to `kampos#setSource()` method to skip texture creation for the source
media. useful for cases where using an OffscreenCanvas as a source for multiple programs and need to switch between them.
- Added `afterDraw` callback to kampos config. Used to pass a function that will be called after each draw call.
- Added optional function argument `afterDraw` to `kampos#play()` method to be dynamically set to `kampos.config.afterDraw`.
- Added optional boolean argument `skipTextureCreation` to `kampos#setSource()` method to skip texture creation for the source
media. useful for cases where using an OffscreenCanvas as a source for multiple programs and need to switch between them.

### 0.8.0 (2023-04-01)

*Breaking:*
_Breaking:_

- `index.js` now uses ES modules. For a UMD distribution please use `index.umd.js`
- `index.js` now uses ES modules. For a UMD distribution please use `index.umd.js`

*Fixed:*
_Fixed:_

- Fixed URLs of docs & demos.
- Rewrote Floss tests to run with Ava.
- Fixed URLs of docs & demos.
- Rewrote Floss tests to run with Ava.

### 0.7.1 (2023-02-13)

*Fixed:*
_Fixed:_

- Ignore test files from NPM that contain invalid characters on Windows systems.
- Ignore test files from NPM that contain invalid characters on Windows systems.

### 0.7.0 (2021-10-16)

*New:*
_New:_

- `transitions.dissolve` now has support for transitioning into a color by disabling the target media with `extureEnabled: false`. `color` argument is used to control the color and defaults to transparent black: `[0, 0, 0, 0]`.
- `transitions.dissolve` now has support for transitioning into a color by disabling the target media with `extureEnabled: false`. `color` argument is used to control the color and defaults to transparent black: `[0, 0, 0, 0]`.

### 0.6.1 (2021-10-14)

*Fixed:*
_Fixed:_

- Fixed dissolve transition to take alpha channel progress from the luminance of the map.
- Fixed dissolve transition to take alpha channel progress from the luminance of the map.

### 0.6.0 (2021-06-29)

*New:*
_New:_

- Added support for simple plane geometry using new `plane: {segments: number | {x: number, y: number}}`config.
- Added `extends: string` property to attribute config which takes a name of an attribute to extend its properties for simplifying coords attribute creation.
- Added support for simple plane geometry using new `plane: {segments: number | {x: number, y: number}}`config.
- Added `extends: string` property to attribute config which takes a name of an attribute to extend its properties for simplifying coords attribute creation.

*Fixed:*
_Fixed:_

- Fixed shader error reporting to correctly report vertex shader errors.
- Fixed shader error reporting to correctly report vertex shader errors.

### 0.5.2 (2021-05-07)

*Fixed:*
_Fixed:_

- Fixed error when called `desotry()` more than once.
- Fixed error when called `desotry()` more than once.

### 0.5.1 (2021-03-26)

*New:*
_New:_

- Added usage of the `OES_vertex_array_object` extension for improved drawing performance.
- Added usage of the `OES_vertex_array_object` extension for improved drawing performance.

### 0.5.0 (2021-03-04)

*New:*
_New:_

- `beforeDraw` callback now takes an argument `time` that will get the timestamp param of rAF injected into it.
- All effects and transitions now take `params` argument, an `Object` that contains initial values to set.
- `turbulence` effect now takes a new argument `params.output` which results in a code injected to the fragment shader for controlling the output of the effect. You can use the static properties of the effect:
- `turbulence.COLOR`: render the result value as a grayscale vector into `color`.
- `turbulence.ALPHA`: render the result value into `alpha`.
- `beforeDraw` callback now takes an argument `time` that will get the timestamp param of rAF injected into it.
- All effects and transitions now take `params` argument, an `Object` that contains initial values to set.
- `turbulence` effect now takes a new argument `params.output` which results in a code injected to the fragment shader for controlling the output of the effect. You can use the static properties of the effect:
- `turbulence.COLOR`: render the result value as a grayscale vector into `color`.
- `turbulence.ALPHA`: render the result value into `alpha`.

*Breaking:*
_Breaking:_

- `blend` effect now takes `noise` as a property of `params` object.
- `displacement` effect now takes `wrap` as a property of `params` object, which are now static properties of the effect:
- `displacement.CLAMP`
- `displacement.DISCARD`
- `displacement.WRAP`
- `tubulence` effect now takes the noise string argument as a property of `params`, as in: `params.noise`.
- `blend` effect now takes `noise` as a property of `params` object.
- `displacement` effect now takes `wrap` as a property of `params` object, which are now static properties of the effect:
- `displacement.CLAMP`
- `displacement.DISCARD`
- `displacement.WRAP`
- `tubulence` effect now takes the noise string argument as a property of `params`, as in: `params.noise`.

### 0.4.0 (2021-02-08)

*New:*
_New:_

- Dissolve transition.
- Dissolve transition.

### 0.3.7 (2021-02-07)

*New:*
_New:_

- Added cellular noise.
- `brightnessContrast` and `hueSaturation` effects now have initial default values in factory.
- Added cellular noise.
- `brightnessContrast` and `hueSaturation` effects now have initial default values in factory.

### 0.3.6 (2021-01-13)

*New:*
_New:_

- Initial work on `blend` effect.
- Initial work on `blend` effect.

*Fixed:*
_Fixed:_

- Fixed Travis build.
- Fixed Travis build.

### 0.3.5 (2019-11-09)

*Fixed:*
_Fixed:_

- Fixed noise rendering on mobile with changing `percision` to `highp`.
- Fixed noise rendering on mobile with changing `percision` to `highp`.

### 0.3.4 (2019-10-22)

*New:*
_New:_

- Added wrapping methods for `displacement` effect: `CLAMP`, `DISCARD`, `WRAP`.
- Added wrapping methods for `displacement` effect: `CLAMP`, `DISCARD`, `WRAP`.

*Fixed:*
_Fixed:_

- Fixed usage of `sourceCoords` in `displacement` transition.
- Fixed usage of `sourceCoords` in `displacement` transition.

### 0.3.3 (2019-10-20)

*New:*
_New:_

- Added simplex 3D noise.
- Added simplex 3D noise.

### 0.3.2 (2019-09-28)

*Fixed:*
_Fixed:_

- Fixed handling `noSource` and multiple textures in draw loop.
- Fixed handling `noSource` and multiple textures in draw loop.

### 0.3.1 (2019-09-25)

*Fixed:*
_Fixed:_

- Updated docs & README.
- Updated docs & README.

### 0.3.0 (2019-09-24)

*New:*
_New:_

- Added suport for `noSource` argument for rendering without a media source.
- Implemented `turbulence` effect.
- `alphaMask` effect now supports luminance mode via `isLuminance` getter/setter.
- Added `beforeDraw` callback to kampos config.
- Added perlin 3D noise.
- Added suport for `noSource` argument for rendering without a media source.
- Implemented `turbulence` effect.
- `alphaMask` effect now supports luminance mode via `isLuminance` getter/setter.
- Added `beforeDraw` callback to kampos config.
- Added perlin 3D noise.

*Fixed:*
_Fixed:_

- CI build fixes.
- CI build fixes.

### 0.2.3 (2019-08-22)

*Fixed:*
_Fixed:_

- Docs fixes.
- Integrate with Travis CI.
- Docs fixes.
- Integrate with Travis CI.

### 0.2.2 (2019-08-07)

*Fixed:*
_Fixed:_

- Added missing `progress` getter/setter for `fade` transition.
- Added missing `progress` getter/setter for `fade` transition.

### 0.2.1 (2019-08-07)

*Fixed:*
_Fixed:_

- kampos is not dependent on `Ticker`.
- kampos is not dependent on `Ticker`.

*New:*
_New:_

- Published transpiled source.
- Published transpiled source.

### 0.2.0 (2019-07-25)

*New:*
_New:_

- Initial public release.
- Initial public release.
Loading

0 comments on commit 34953cb

Please sign in to comment.