| feat: Add PointUtils::Negate method for point coordinate negation
Add Negate method to PointUtils class to negate point coordinates (x, y).
This method modifies the input point object in-place by setting x = -x and y = -y.
Changes:
- Add PointUtils NAPI binding with Negate method
- Add PointUtils ANI binding with Negate method
- Add SetPointToJsValue helper to js_drawing_utils.h
- Update BUILD.gn files to include new source files
- Add Drawing::Point::Negate operator- overload in NDK layer
- Add unit tests and fuzz tests for the new functionality
Co-Authored-By: Agent
Signed-off-by: dreamyhhh <hangmengxin@huawei.com>
Change-Id: I624e4e57b0f2719e5d8c1ebd957d93c4073a51b3
| 1 个月前 |