Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
modify: Change default way to show image to 'newTab'
Browse files Browse the repository at this point in the history
  • Loading branch information
gantrol committed Feb 15, 2023
1 parent 88138e4 commit f8a8c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const addButton = (actionsArea, WaitingButton, type) => {
actionsArea.appendChild(downloadButton);
};

const forImage = async (func, type, way='download') => {
const forImage = async (func, type, way='newTab') => {
const main = <HTMLElement> getMain();
const dataURL = await func(main, {
backgroundColor: "rgb(217, 230, 249)"
Expand Down
8 changes: 3 additions & 5 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@
- [ ] HTML
- [ ] JSON Viewer (render to HTML)

## modified
## design & modified

- [ ] ButtonGroups,改为Export一个按钮,提供下载选项(popup或类似feedback的小窗口)
- [ ] 图片默认下载,并且在右下方生成小窗口
- [ ] ignore element (`.cib-welcome-container`) instead of remove it. May add a option to remove it
- [ ] ButtonGroups
- [ ] icon 改为箭头
- [ ] png透明通道

## others

- [ ] 通过重排元素来渲染图片?目前的脚注部分还有点好
- [ ] 中文文档
- [ ] 改英文文档
- [ ] 去掉`background.ts`

0 comments on commit f8a8c79

Please sign in to comment.