一个浮窗图片查看插件#579
Open
Rayen21 wants to merge 4 commits into
Open
Conversation
一个文档图片查看插件
一个对图片的浮窗查看插件 A floating window viewing plug-in for pictures
Contributor
|
@Rayen21 感谢您提交插件PR!目前插件在商店中显示不完整,还需补充以下内容才能合并: 请参照 https://github.com/ONLYOFFICE/onlyoffice.github.io/tree/master/store#how-to-build-and-add-your-own-plugin 补全插件在“插件管理器”中展示所需的文件; 添加英文语言支持; 将 config.json 中 plugins.js、plugins-ui.js 和 plugins.css 的路径改为绝对路径(参考其他已有插件)。 插件文件夹名称请改为全小写,不要使用驼峰命名(CamelCase)。 从截图看这些文件实际已存在,只需调整路径和配置即可。改好后我们会尽快审核合并,谢谢! |
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PictureFloatView
一款OnlyOffice的浮动窗口放大查看图片插件(类似WPSoffice的图片查看功能)
效果演示
default.mp4
功能说明
1、支持触控板双指、鼠标滚轮放大和缩小图片
2、支持鼠标和解控板对放大的图片进行上下左右拖拽
3、点击全屏查看按钮可以全屏查看图片(恢复窗口模式可以按esc键或者再次点击全屏按钮)点击1:1还原可以快速将放大后的图片恢复为原始大小。
安装方法
在OnlyOffice自带的插件管理器中切换到“可用的插件”页再点击“手动安装插件”找到下载好的“PictureFloatView.plugin”插件文件进行安装(推荐)
手动复制安装
1、'~/Library/Application Support/asc.onlyoffice.ONLYOFFICE/data/sdkjs-plugins' 是软件的插件目录
2、在以上目录里新建一个名为“{eb6471e0-7981-4235-9856-42d48f101188}”的目录(名称不要包含引号)
3、将“PictureFloatView.plugin”改名zip后解压到新的目录也可以
最后
我不是一个专职的开发人员,只是兴趣爱好让OnlyOffice有一个类似WPSoffice的浮窗查看图片的功能方便使用,插件借助了Gmini的协助
比较遗憾没办法完全做到WPSoffice浮窗查看图片的全部功能,比如选中图片后图片旁边能够出现一个快捷按钮来触发浮窗,而不用去到插件菜单栏去点击插件。甚至想过有没有办法双击图片后解发浮窗口都没办法实现。
希望OnlyOffice开发人员能够开发这样的功能让OnlyOffice软件更好用!
最后还是要感谢OnlyOffice开发人员写出了这样的软件!让大家可以免费使用!