Skip to content

Commit

Permalink
Remove all PNG parser boilerplate events and use CustomEvent.
Browse files Browse the repository at this point in the history
  • Loading branch information
codedread committed Jan 19, 2024
1 parent 17c58ec commit 1267691
Show file tree
Hide file tree
Showing 11 changed files with 499 additions and 233 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ All notable changes to this project will be documented in this file.

### Added

- image: Added PNG event-based parser.
- image: Added PNG event-based parser (all critical and most ancillary chunks).

### Changed

- io: Fix ByteStream bug where skip(0) did not return the ByteStream.

### Removed

- image: Removed all custom parser events and just use CustomEvent.

## [1.2.0] - 2024-01-15

### Added
Expand Down
8 changes: 0 additions & 8 deletions image/parsers/jpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@ export const JpegComponentType = {
* @property {Uint8Array} rawImageData
*/

export class JpegStartOfScanEvent extends Event {
constructor(sos) {
super(JpegParseEventType.START_OF_SCAN);
/** @type {JpegStartOfScan} */
this.sos = sos;
}
}

export class JpegParser extends EventTarget {
/**
* @type {ByteStream}
Expand Down
Loading

0 comments on commit 1267691

Please sign in to comment.