Skip to content

Commit 1267691

Browse files
committed
Remove all PNG parser boilerplate events and use CustomEvent.
1 parent 17c58ec commit 1267691

File tree

11 files changed

+499
-233
lines changed

11 files changed

+499
-233
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

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

1111
### Changed
1212

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

15+
### Removed
16+
17+
- image: Removed all custom parser events and just use CustomEvent.
18+
1519
## [1.2.0] - 2024-01-15
1620

1721
### Added

image/parsers/jpeg.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,6 @@ export const JpegComponentType = {
159159
* @property {Uint8Array} rawImageData
160160
*/
161161

162-
export class JpegStartOfScanEvent extends Event {
163-
constructor(sos) {
164-
super(JpegParseEventType.START_OF_SCAN);
165-
/** @type {JpegStartOfScan} */
166-
this.sos = sos;
167-
}
168-
}
169-
170162
export class JpegParser extends EventTarget {
171163
/**
172164
* @type {ByteStream}

0 commit comments

Comments
 (0)