Refactor code structure for improved readability and maintainability

Remove debugging border from the websr plugin's styling

Enhance canvas sizing logic in artplayer-plugin-websr

- Updated canvas positioning to center it within the player.
- Introduced a new function to calculate canvas size based on the video aspect ratio.
- Adjusted canvas dimensions during initialization and on resize events to maintain aspect ratio.
- Ensured canvas styles are updated to reflect the calculated dimensions.

feat: add comparison mode to artplayer-plugin-websr

- Updated README.md to reflect new comparison feature and simplified content.
- Modified package.json to remove unnecessary keywords.
- Enhanced index.js to implement comparison functionality, allowing users to compare original and upscaled video.
- Added new methods for enabling, disabling, and toggling comparison mode, as well as setting and getting the comparison position.
- Updated TypeScript definitions to include new comparison options and methods.
This commit is contained in:
Harvey Zhao committed 2026-02-10 23:02:31 +08:00
1 parent 07a5b0c0f0
commit 7dffd99cfd
308 files changed
+3175 -852

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"advanced_built-in.md":"DiyRIcIA","advanced_class.md":"Da3aE0pP","advanced_event.md":"mrsB0MsK","advanced_global.md":"Bdw3azKs","advanced_plugin.md":"B3Pobmcq","advanced_property.md":"CA7GaeI3","component_contextmenu.md":"ClKmcIKr","component_controls.md":"Cl62yW1F","component_layers.md":"Cys52VMi","component_setting.md":"BP5674ir","en_advanced_built-in.md":"XdT81JC0","en_advanced_class.md":"BLyA7rxa","en_advanced_event.md":"CtQl1IYg","en_advanced_global.md":"D5Nz8wyo","en_advanced_plugin.md":"BOuMu80J","en_advanced_property.md":"urRMaqHe","en_component_contextmenu.md":"COLfX45a","en_component_controls.md":"BbQsn0wJ","en_component_layers.md":"CX93a7QS","en_component_setting.md":"C6o2AWtX","en_index.md":"BCuGsKe-","en_start_i18n.md":"Dn_-QNMz","en_start_option.md":"Bk4YXvof","index.md":"DDqAV2TW","plugin_danmuku.md":"BbwsJDxp","start_i18n.md":"D9C8Ka0e","start_option.md":"D52S8Ynf"}
{"advanced_built-in.md":"DbXkhR8l","advanced_class.md":"BE9Wp7q6","advanced_event.md":"DoIgqIU9","advanced_global.md":"Db4VcykV","advanced_plugin.md":"CVp3Oe2x","advanced_property.md":"C_nOKniE","component_contextmenu.md":"lsIURdc3","component_controls.md":"CKAl0l5Z","component_layers.md":"D34Y4OkH","component_setting.md":"BwCpY3NU","en_advanced_built-in.md":"DWw_qKdn","en_advanced_class.md":"bWhe2FDl","en_advanced_event.md":"igITY2FO","en_advanced_global.md":"Bj0Agjzd","en_advanced_plugin.md":"IXiFhAGS","en_advanced_property.md":"DQzShb4B","en_component_contextmenu.md":"3nvb8CSX","en_component_controls.md":"s1SJ4fZd","en_component_layers.md":"wLZPKN9j","en_component_setting.md":"eqeWyMDt","en_index.md":"BvE8b20f","en_start_i18n.md":"DtRh2JGz","en_start_option.md":"CuY4IYWk","index.md":"Cg4MitRm","plugin_danmuku.md":"DUAFUpaT","start_i18n.md":"DtnhVL8s","start_option.md":"DRwrMHeQ"}