0
代码介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
0
  1. graphic_graphic_2d
  2. /
  3. interfaces
  4. /
  5. kits
  6. /
  7. napi
  8. /
  9. graphic
  10. /
  11. drawing
  12. /
  13. point_utils_napi
Ddreamyhhhfeat: Add PointUtils::Negate method for point coordinate negation
7a48954a创建于 4月8日历史提交
文件最后提交记录最后更新时间
js_point_utils.cpp
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 个月前
js_point_utils.h
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 个月前