Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Bezkrovnyi committed Sep 12, 2021
1 parent 45ca880 commit 15583cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
pnpm install
pnpm -r build
pnpm -r test
# - name: Create tags
# pnpm -r --filter=image-q --no-bail exec "git tag $(node -e 'pj=require(\'./package.json\');console.log(pj.name+'@'+pj.version')"
# git push --follow-tags
- name: Publish
run: |
pnpm -r publish --no-git-checks --access=public
Expand Down
7 changes: 7 additions & 0 deletions packages/demo/src/controller/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ export class QuantizationUsage {
palette = paletteQuantizer.quantizeSync();
});

// window['xxx'] = !window['xxx'];
// const alpha = window['xxx'] ? 255 : 0;
// console.log('255,255,255,', alpha)
// palette = new iq.utils.Palette();
// palette.add(iq.utils.Point.createByRGBA(0, 0, 0, 255))
// palette.add(iq.utils.Point.createByRGBA(255, 255, 255, alpha))

this._timeMark('...dither', () => {
var distance: iq.distance.AbstractDistanceCalculator =
this._getColorDistanceCalculator(optionColorDistance);
Expand Down
4 changes: 2 additions & 2 deletions packages/image-q/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "image-q",
"version": "3.0.2",
"version": "3.0.3",
"description": "Image Quantization Library in **TypeScript** *(MIT Licensed)*",
"license": "MIT",
"contributors": [],
"homepage": "https://github.com/ibezkrovnyi/image-quantization/tree/main/packages/image-q",
"main": "dist/umd/image-q.js",
"module": "dist/esm/src/index.js",
"types": "dist/esm/src/index.d.ts",
"types": "dist/types/src/index.d.ts",
"exports": {
"import": "./dist/esm/src/index.js",
"require": "./dist/umd/image-q.js",
Expand Down
1 change: 1 addition & 0 deletions packages/image-q/tsconfig.build-esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/esm",
"declarationDir": "dist/types",
"module": "esnext",
"types": ["node"],
"tsBuildInfoFile": "./node_modules/.cache/tsc/tsconfig.build-esm.tsbuildinfo"
Expand Down

0 comments on commit 15583cb

Please sign in to comment.