Skip to main content

KSelectBehavior

kds-plugin-document / Exports / KSelectBehavior

Enumeration: KSelectBehavior

选择行为

The KSelectBehavior class represents select behavior types.

Table of contents

Enumeration Members

Enumeration Members

ADD

ADD = "add"

加选。点击一个图元,会使其加入选择集。如果它本来就在选择集中,则无变化。 提示:在酷大师中,选择时按住 ctrl 键会进入加选状态

add selection. clicking on an entity will add it to the selection set hint: in UI operation, pressing ctrl when doing selection turns on the add selection mode

Defined in

api.d.ts:4262


REMOVE

REMOVE = "remove"

减选。点击一个图元,会使其从选择集中删除。如果它本来就不在选择集中,则无变化。 提示:在酷大师中,选择时按住 ctrl + shift 键会进入减选状态

remove selection. clicking on an entity will remove it from the selection set hint: in UI operation, pressing ctrl + shift when doing selection turns on the remove selection mode

Defined in

api.d.ts:4252


REPLACE

REPLACE = "replace"

单选。点击一个图元,会使其加入选择集。如果它本来就在选择集中,则无变化。点击另一个图元会使另一个图元加入选择集,而使当前被选择图元退出选择集。点击空白处会清空选择集。 提示:在酷大师中,选择时不按任何键的默认选择状态就是单选

replace selection. also known as single selection. clicking on an entity will add it to the selection set. clicking on another entity will add another entity to the selection set, and remove the current selected entity from it. clicking on empty space will clear the selection set. hit: in UI operation, replace selection is the default behavior when doing selection, without pressing any keys

Defined in

api.d.ts:4273


TOGGLE

TOGGLE = "toggle"

反选。点击一个图元,会使其选择状态在选中和非选中之间切换。 提示:在酷大师中,选择时按住 shift 键会进入反选状态

toggle selection. clicking on an entity will toggle its selection status between selected/un-selected hint: in UI opeation, pressing shift when doing selection turns on the toggle selection mode

Defined in

api.d.ts:4242