new Cesium.Command()

一个命令是一个函数,带有一个额外的 NT 0 canExecute NT 1 用于确定可观测属性 命令是否可以执行。 执行时,命令函数将检查 值为 NT 0 canExecution NT 1 ,如果是虚假,则掷出. 该类型描述了一个接口,并不打算直接被即时化. See createCommand to create a command from a function.

Members

afterExecute : Event

获得命令执行后提起的事件, 事件 以命令的返回值作为其唯一的参数.
Default Value: undefined

beforeExecute : Event

获得命令执行前提起的事件, 事件 is raised with an object containing two properties: a cancel property, 如果听从者作假,那会使命令无法执行 a args 属性,是传递给命令的参数数组.
Default Value: undefined

canExecute : boolean

获取此命令当前是否可以执行 。 这块地皮是可观察到的.
Default Value: undefined
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.