Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(label): implement label color inheritance from dependent elements (
#6536) * feat(label): implement label color inheritance from dependent elements Implement the ability for labels to inherit colors from their associated graphical elements. This allows labels to automatically match the color of the elements they are describing. - Add style inheritance in label creation - Pass element style information to label callbacks - Add test case to verify the implementation * refactor(label): improve style callback compatibility and clarity - Remove Proxy usage in label style callback to prevent browser compatibility issues - Rename style parameter to elementStyle for better semantic clarity - Update documentation to clarify elementStyle parameter usage in label callbacks * refactor: simplify object property using shorthand notation
- Loading branch information