Skip to content

Add new function GetShapes - #2408

Open
wangyica879112 wants to merge 3 commits into
qax-os:masterfrom
wangyica879112:shapes
Open

wangyica879112 wants to merge 3 commits into
qax-os:masterfrom
wangyica879112:shapes

Conversation

@wangyica879112

Copy link
Copy Markdown

PR Details

This add get shapes support for the library.

Description

  • Add new function GetShapes
  • Add structure for decode shapes

Related Issue

#436

Motivation and Context

This add get shapes support for the library.

How Has This Been Tested

Add unit tests and test by go test . locally. All unit test cases passed.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

- Add structure for decode shapes
@wangyica879112
wangyica879112 marked this pull request as ready for review October 10, 2026 09:00
@wangyica879112 wangyica879112 changed the title WIP: Add new function GetShapes Add new function GetShapes Oct 10, 2026
@peng
peng self-requested a review October 10, 2026 09:38

@peng peng left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your pull request. I've left a comment.

Comment thread shape.go
shape.NvSpPr.CNvPr.Name = opts.Format.Name
}
shape.SpPr.Ln = opts.Line.drawChartLn()
if shape.SpPr.Ln == nil && opts.Line.Width != defaultLineWidth {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cyclomatic complexity of the addDrawingShape function is 16, we need keep cyclomatic complexity less than 16.

@peng peng added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 10, 2026
@peng peng linked an issue Oct 10, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get text from shape

2 participants