Skip to content

Commit f315882

Browse files
Add describedBy to commands (#782)
* Add `describedBy` to commands * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1a57b16 commit f315882

File tree

5 files changed

+226
-0
lines changed

5 files changed

+226
-0
lines changed

packages/base/src/3dview/mainview.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ export class MainView extends React.Component<IProps, IStates> {
210210
addContextMenu = (): void => {
211211
const commands = new CommandRegistry();
212212
commands.addCommand('add-annotation', {
213+
describedBy: {
214+
args: {
215+
type: 'object',
216+
properties: {}
217+
}
218+
},
213219
execute: () => {
214220
if (!this._pointer3D) {
215221
return;

0 commit comments

Comments
 (0)