Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kooriookami/leafer-compress-text
一个使用 LeaferJS 作为 Canvas 渲染引擎的文本压缩示例
https://github.com/kooriookami/leafer-compress-text
Last synced: 9 days ago
JSON representation
一个使用 LeaferJS 作为 Canvas 渲染引擎的文本压缩示例
- Host: GitHub
- URL: https://github.com/kooriookami/leafer-compress-text
- Owner: kooriookami
- License: mit
- Created: 2023-07-25T11:05:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-22T01:31:32.000Z (15 days ago)
- Last Synced: 2024-10-23T01:40:17.417Z (14 days ago)
- Language: JavaScript
- Homepage: https://kooriookami.github.io/leafer-compress-text/
- Size: 12.2 MB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 文本压缩 CompressText
文本压缩使用 Leafer UI 开发。
## 在线演示
[在线演示](https://kooriookami.github.io/leafer-compress-text/)
## 流程图
![process](src/assets/image/process.png)## 使用说明
```npm i leafer-compress-text```
```js
import { Leafer } from 'leafer-ui';
import { CompressText } from 'leafer-compress-text';const leafer = new Leafer({
... // 参数见 https://leaferjs.com/
});const compressText = new CompressText({
... // 参数见 src/compress-text/compress-text.js => this.defaultData
});
leafer.add(compressText);
```## 示例代码
[示例代码](src/components/CompressText.vue)