-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
156 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# [Eigen](https://eigen.tuxfamily.org/index.php?title=Main_Page) | ||
> 矩阵库 | ||
- [Eigen document](https://eigen.tuxfamily.org/dox/) | ||
|
||
## [Storage orders](https://eigen.tuxfamily.org/dox/group__TopicStorageOrders.html) | ||
|
||
All Eigen matrices default to column-major storage order, but this can be changed to row-major |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# png | ||
|
||
## nodejs | ||
```shell | ||
npm install tiff.js | ||
``` | ||
|
||
```js | ||
fetch('static/test.tif').then(res=>res.arrayBuffer()).then(buffer=>{ | ||
const tiff = new Tiff({buffer: xhr.response}); | ||
const canvas = tiff.toCanvas(); | ||
this.src = canvas.toDataURL(); | ||
}) | ||
// tiff.js默认只能转换小于10M的文件,超过10M的文件需要设置内存 | ||
Tiff.initialize({TOTAL_MEMORY :50 * 1024 * 1024}); | ||
// 超过40M的文件,建议按照插件并使用object标签展示 | ||
``` | ||
|
||
## 参考 | ||
- [A small, fast and advanced PNG / APNG encoder and decoder](https://github.com/photopea/UPNG.js) | ||
- [Photopea.com is a free online tool for editing raster and vector graphics with support for PSD, AI, and Sketch files](https://www.photopea.com/) | ||
- [纹理工具A fast, tiny tool for working with compressed textures (DDS etc.)](https://github.com/photopea/UTEX.js/blob/master/UTEX.js) | ||
- [upng online tool](http://upng.photopea.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# tiff | ||
|
||
## nodejs | ||
```shell | ||
npm install tiff.js | ||
``` | ||
|
||
```js | ||
fetch('static/test.tif').then(res=>res.arrayBuffer()).then(buffer=>{ | ||
const tiff = new Tiff({buffer: xhr.response}); | ||
const canvas = tiff.toCanvas(); | ||
this.src = canvas.toDataURL(); | ||
}) | ||
// tiff.js默认只能转换小于10M的文件,超过10M的文件需要设置内存 | ||
Tiff.initialize({TOTAL_MEMORY :50 * 1024 * 1024}); | ||
// 超过40M的文件,建议按照插件并使用object标签展示 | ||
``` | ||
|
||
|
||
|
||
## 参考 | ||
- [TIFF image decoder written entirely in JavaScript.](https://github.com/image-js/tiff) | ||
- [A small, fast and advanced TIFF / EXIF (+ DNG, CR2, NEF and other TIFF-ish files) decoder and encoder. It is the main TIFF library for Photopea image editor](https://github.com/photopea/UTIF.js) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Rxjs](https://rxjs.dev/) | ||
> Reactive Extensions Library for JavaScript, RxJS is a library for reactive programming using Observables, to make it easier to compose asynchronous or callback-based code | ||
[github](https://github.com/ReactiveX/RxJS) | ||
|
||
## jszip | ||
|
||
```js | ||
fromEvent(el, 'click').piep(throttleTime(3000)).subscribe(()=>{ | ||
console.log(el); | ||
}) | ||
``` | ||
|
||
## 参考 | ||
|
||
- [rxjs 源码分析1-(fromEvent)](https://juejin.cn/post/6844903730425364494) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters