-
Notifications
You must be signed in to change notification settings - Fork 323
feat(watermark): add watermark #3799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new Watermark component to add watermarks to page areas. The component supports both text and image watermarks with various customization options including positioning, rotation, opacity, and moving animations.
Key changes:
- Adds complete Watermark component implementation with TypeScript support
- Provides comprehensive examples demonstrating different watermark types and features
- Integrates watermark component into the project structure and documentation
Reviewed Changes
Copilot reviewed 35 out of 42 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/watermark/watermark.ts | Main component implementation with canvas-based watermark rendering |
| src/watermark/watermark.wxml | Component template with canvas and styling elements |
| src/watermark/utils/generateBase64Url.ts | Utility for generating base64 watermark images from canvas |
| src/watermark/utils/randomMovingStyle.ts | Utility for generating random animation styles for moving watermarks |
| src/watermark/props.ts | Component property definitions with default values |
| src/watermark/type.ts | TypeScript interfaces for component props and watermark content |
| src/watermark/_example/* | Multiple example implementations showcasing different watermark features |
| site/site.config.mjs | Documentation site configuration update |
| example/* | Example app integration and navigation updates |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fadd43f to
f10a49e
Compare
|
FAQ: |
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
feat(Watermark): 新增
Watermark水印组件本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单