feat(watermark): add watermark - #3799
Merged
Merged
Conversation
Wesley-0808
requested review from
anlyyao,
betavs,
jarmywang and
jin0209
as code owners
July 22, 2025 09:02
commit: |
betavs
reviewed
Jul 25, 2025
Contributor
There was a problem hiding this comment.
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>
anlyyao
force-pushed
the
feat/watermark
branch
from
September 4, 2025 09:09
fadd43f to
f10a49e
Compare
Collaborator
|
FAQ: |
anlyyao
approved these changes
Sep 4, 2025
This was referenced Sep 24, 2025
Merged
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.
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
feat(Watermark): 新增
Watermark水印组件本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单