Skip to content

Commit bcbe628

Browse files
committed
chore(colorfilter): build fix
1 parent 326cf1e commit bcbe628

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/image-colorfilter/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1919
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
21-
<h1 align="center">@nativescript-community/ui-zoomimage</h1>
21+
<h1 align="center">@nativescript-community/ui-image-colorfilter</h1>
2222
<p align="center">
23-
<a href="https://npmcharts.com/compare/@nativescript-community/ui-zoomimage?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-zoomimage.svg" height="20"/></a>
24-
<a href="https://www.npmjs.com/package/@nativescript-community/ui-zoomimage"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/ui-zoomimage.svg" height="20"/></a>
23+
<a href="https://npmcharts.com/compare/@nativescript-community/ui-image-colorfilter?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-image-colorfilter.svg" height="20"/></a>
24+
<a href="https://www.npmjs.com/package/@nativescript-community/ui-image-colorfilter"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/ui-image-colorfilter.svg" height="20"/></a>
2525
</p>
2626

2727
<p align="center">
28-
<b>Zoomable image view based on @nativescript-community/ui-image</b></br>
28+
<b>color matrix filters for @nativescript-community/ui-image</b></br>
2929
<sub><sub>
3030
</p>
3131

@@ -56,23 +56,23 @@
5656
## Installation
5757
Run the following command from the root of your project:
5858

59-
`ns plugin add @nativescript-community/ui-zoomimage`
59+
`ns plugin add @nativescript-community/ui-image-colorfilter`
6060

6161

6262
[](#setup)
6363

6464
## setup
6565

66-
```javascript
67-
import imageModule = require("@nativescript-community/ui-zoomimage");
66+
```typescript
67+
import { installMixins } from "@nativescript-community/ui-image-colorfilter";
6868

6969
//do this before creating any image view
70-
imageModule.initialize({ isDownsampleEnabled: true });
70+
installMixins();
7171
```
7272

73-
This component directly inherint `@nativescript-community/ui-image` so you can find the doc [here]()
7473

75-
It adds a few properties
74+
It adds one property `colorMatrix` which is a `number[]`
75+
You can find samples color matrix [here](https://github.com/skratchdot/color-matrix)
7676

7777

7878
[](#demos)
@@ -100,7 +100,7 @@ $ ns run ios|android
100100
To run the demos, you must clone this repo **recursively**.
101101

102102
```
103-
git clone https://github.com/@nativescript-community/ui-zoomimage.git --recursive
103+
git clone https://github.com/@nativescript-community/ui-image-colorfilter.git --recursive
104104
```
105105

106106
**Install Dependencies:**

packages/image-colorfilter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"typings": "./index.d.ts",
88
"scripts": {
99
"build": "npm run tsc && npm run readme",
10-
"build.all": "npm run build && npm run build.angular",
10+
"build.all": "npm run build",
1111
"readme": "../../node_modules/.bin/readme generate -c ../../tools/readme/blueprint.json",
1212
"tsc": "../../node_modules/.bin/cpy '**/*.d.ts' '../../packages/image-colorfilter' --parents --cwd=../../src/image-colorfilter && ../../node_modules/.bin/tsc -skipLibCheck -d",
1313
"clean": "../../node_modules/.bin/rimraf ./*.d.ts ./*.js ./*.js.map"

0 commit comments

Comments
 (0)