sidshas03 commented on issue #21834: URL: https://github.com/apache/echarts/issues/21834#issuecomment-6854412629
Had a proper look through this. One thing I'm not clear on the offset gets applied inside the `axisName` build, but the grid reserves name space from `nameLayout.rect` in `Grid.ts`, and that pass runs earlier. So does a large positive `nameOffset` actually get room reserved for it, or does it just spill out of the grid? Your `main11` case (`containLabel` + offset 60) is exactly where this would break, if it breaks. Did you step through that one yourself and confirm the name stays inside, or are we going by the tests passing? I'd want the actual logic walked through here, since the whole point of #21059 was to stop the name overflowing. Also one small thing: `normalizeNameOffset` checks `length >= 2` but the type is `[number, number]`, so `[1, 2, 3]` slips through quietly, better to tighten that. Can you take another pass on the overflow case and explain how it holds up? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
