MCPcopy Create free account
hub / github.com/BIT-DataLab/Edit-Banana / _get_next_id

Method _get_next_id

modules/text/xml_generator.py:92–96  ·  view source on GitHub ↗

获取下一个可用 ID

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

create_text_cellMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected