获取下一个可用 ID
(self)
| 90 | self.next_id = 2 # ID 从 2 开始(0 和 1 被根节点和图层占用) |
| 91 | |
| 92 | def _get_next_id(self) -> int: |
| 93 | """获取下一个可用 ID""" |
| 94 | current_id = self.next_id |
| 95 | self.next_id += 1 |
| 96 | return current_id |
| 97 | |
| 98 | def _build_style_string(self, cell_data: TextCellData) -> str: |
| 99 | """ |