Title: feat: make default style properties globally configurable by tbouffard · Pull Request #932 · maxGraph/maxGraph · GitHub
Open Graph Title: feat: make default style properties globally configurable by tbouffard · Pull Request #932 · maxGraph/maxGraph
X Title: feat: make default style properties globally configurable by tbouffard · Pull Request #932 · maxGraph/maxGraph
Description: Extend StyleDefaultsConfig to allow customization of default style values that were previously hardcoded as constants. This enables global configuration without requiring stylesheet updates across all Graph instances. New configurable properties: Font settings: fontFamily, fontSize Arrow settings: arrowSize, arrowSpacing, arrowWidth Size settings: markerSize, imageSize, startSize Rounding: roundingFactor, lineArcSize All direct references to DEFAULT_* constants throughout the codebase have been replaced with StyleDefaultsConfig property access, allowing these defaults to be changed at runtime via the configuration object. Notes Covers #192 Users can now globally customize these defaults at runtime like this: import { StyleDefaultsConfig } from '@maxgraph/core'; // Change default marker size StyleDefaultsConfig.markerSize = 10; // Change default image size for labels StyleDefaultsConfig.imageSize = 32; // Change default swimlane start size StyleDefaultsConfig.startSize = 50; // Change default rounding factor StyleDefaultsConfig.roundingFactor = 0.4; Summary by CodeRabbit New Features Added configuration options for default style properties: font family, font size, arrow size and spacing, marker size, image size, and rounding factors.
Open Graph Description: Extend StyleDefaultsConfig to allow customization of default style values that were previously hardcoded as constants. This enables global configuration without requiring stylesheet updates across ...
X Description: Extend StyleDefaultsConfig to allow customization of default style values that were previously hardcoded as constants. This enables global configuration without requiring stylesheet updates across ...
Opengraph URL: https://github.com/maxGraph/maxGraph/pull/932
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7075245a-9b5f-a541-08e6-6c45b28669f7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CF88:262BEC:1421D1B:1A59027:6992BAD2 |
| html-safe-nonce | 059a25108b85616f5bacbb2ebc32062a3634ee01210b0730a93ff85c9880a5a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjg4OjI2MkJFQzoxNDIxRDFCOjFBNTkwMjc6Njk5MkJBRDIiLCJ2aXNpdG9yX2lkIjoiNTk1NTUzMDI0OTI3ODEyNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e08c5d5e72d1140f291adb8ee776241b5b9915b4e9cce2c030c63ebc6c3d42e |
| hovercard-subject-tag | pull_request:2966163905 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/maxGraph/maxGraph/pull/932/files |
| twitter:image | https://avatars.githubusercontent.com/u/27200110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/27200110?s=400&v=4 |
| og:image:alt | Extend StyleDefaultsConfig to allow customization of default style values that were previously hardcoded as constants. This enables global configuration without requiring stylesheet updates across ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/maxGraph/maxGraph git https://github.com/maxGraph/maxGraph.git |
| octolytics-dimension-user_id | 74362339 |
| octolytics-dimension-user_login | maxGraph |
| octolytics-dimension-repository_id | 312287063 |
| octolytics-dimension-repository_nwo | maxGraph/maxGraph |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 4398231 |
| octolytics-dimension-repository_parent_nwo | jgraph/mxgraph |
| octolytics-dimension-repository_network_root_id | 4398231 |
| octolytics-dimension-repository_network_root_nwo | jgraph/mxgraph |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84dcb133269e3cfe6e0296cc85fbacb92cae92bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width