Skip to content

Commit

Permalink
🔖 v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pecasha committed Dec 8, 2023
1 parent ecd8534 commit a7da49f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 更新日志

## [1.1.0] - 2023-12-07

### 新增

* 缩略图新增时长信息。

### 优化

* 优化动画显示的尺寸。
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eagle-plugin-pag-format-extension",
"version": "1.0.0",
"version": "1.1.0",
"description": "Eagle PAG文件格式扩展插件",
"author": "chuck<[email protected]>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "dd3f8cee-6aa6-4cb0-b7e2-291bd824ce08",
"version": "1.0.0",
"version": "1.1.0",
"platform": "all",
"arch": "all",
"name": "{{manifest.app.name}}",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = async ({ src, dest, item }) => {
await fs.promises.writeFile(dest, Buffer.from(await blob.arrayBuffer()));
}

item.duration = pagFile.duration() / 1000000;
item.duration = Math.ceil(pagFile.duration() / 1000000);
item.width = width;
item.height = height;
resolve(item);
Expand Down

0 comments on commit a7da49f

Please sign in to comment.