Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Apr 18, 2024
1 parent 895201b commit 1e147a9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
5 changes: 2 additions & 3 deletions index/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- [build System](../dev-note/buildSystem.md)
- [debug](../dev-note/debug.md)
- [powershell](../dev-note/powershell.md)
- [nodejs包管理](../nodejs/pkg.md)
- [nodejs包管理](../web/pkg.md)
- [包管理C++](../dev-note/pkg.md)

### web
Expand All @@ -37,8 +37,7 @@
- [测试模块](../web/test.md)
- [图像处理](../web/ImageManipulation.md)
- [diff算法原理](../web/diff.md)
- [quill富文本编辑器](../web/quill.md)
- [压缩](../web/zip.md)
- [使用过的库](../web/library.md)
- [FRP-Functional Reactive Programming](../cpl/frp.md)

### 图形学
Expand Down
36 changes: 33 additions & 3 deletions web/quill.md → web/library.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Quill
> quill富文本编辑器
## dev

Expand All @@ -10,12 +11,12 @@ npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-li

### rollup打包
看不懂webpack的逻辑,直接增加rollup打包,思路就清晰了
npm install rollup --save-dev
npm install rollup --save-dev
npm install @rollup/plugin-typescript --save-dev
npm install @rollup/plugin-image --save-dev
npm install @rollup/plugin-replace --save-dev
npm install @rollup/plugin-node-resolve --save-dev
npm install @rollup/plugin-commonjs --save-dev
npm install @rollup/plugin-commonjs --save-dev
npm install rollup-plugin-postcss --save-dev
npm install rollup-plugin-rawsvg --save-dev

Expand Down Expand Up @@ -47,4 +48,33 @@ Delta 是用于描述富文本文档结构的内容与变更。由于其描述
Parchment is Quill's document model. It is a parallel tree structure to the DOM tree, and provides functionality useful for content editors, like Quill. A Parchment tree is made up of Blots, which mirror a DOM node counterpart. Blots can provide structure, formatting, and/or content. Attributors can also provide lightweight formatting information.

通过Parchment你可以自定义出Quill能够识别的内容和格式,或者添加全新的内容和格式。
[一个例子](https://kang-bing-kui.gitbook.io/quill/zhi-nan-guides/clonewithparchment)
[一个例子](https://kang-bing-kui.gitbook.io/quill/zhi-nan-guides/clonewithparchment)

# jszip

```js
new Promise(()=>{

}).then(res=>{
// 字符串
if (res.byteLength < 100) {
const tmp = JSON.parse(new TextDecoder().decode(new Uint8Array(res)));
} else {
const zip = new JSZip();
zip.loadAsync(res).then(zip=>{
let i = 0;
for (const fname in zip.files) {
zip.file(fname).async('arraybuffer').then(img=>{
const blob = new Blob([img]);
i++;
if (i == 4) {
}
});
}
});
}
})
```
# [node-gyp](https://github.com/nodejs/node-gyp)
node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. It contains a vendored copy of the gyp-next project that was previously used by the Chromium team and extended to support the development of Node.js native addons.

28 changes: 0 additions & 28 deletions web/zip.md

This file was deleted.

0 comments on commit 1e147a9

Please sign in to comment.