使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly >MarkerManager
MarkerManager 类
用于管理工作区上的多个标记和光标的类。
Signature:
export declare class MarkerManager
此类的构造函数标记为内部函数。第三方代码不应直接调用构造函数或创建扩展 MarkerManager
类的子类。
属性
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The `MarkerManager` class manages multiple markers and a cursor on a workspace. It allows registration and unregistration of markers via `registerMarker` and `unregisterMarker`, respectively. It also provides `getMarker` to retrieve a specific marker by ID, `getCursor` to access the workspace's cursor, and `setCursor` to define and initialize the cursor for keyboard navigation. `LOCAL_MARKER` is a static property holding the local marker's name. Direct instantiation of this class is restricted.\n"],null,[]]