Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #497 from microsoft/revert/pen
Browse files Browse the repository at this point in the history
[SDK] Revert Pen and Tool Behaviors
  • Loading branch information
eanders-ms authored Mar 5, 2020
2 parents 49886ec + 7e84435 commit ed44094
Show file tree
Hide file tree
Showing 20 changed files with 108 additions and 532 deletions.
102 changes: 0 additions & 102 deletions design/behavior.actions.md

This file was deleted.

42 changes: 0 additions & 42 deletions design/high.resolution.transform.updates.md

This file was deleted.

87 changes: 0 additions & 87 deletions design/pen.behavior.md

This file was deleted.

33 changes: 0 additions & 33 deletions design/set.behavior.actor.md

This file was deleted.

81 changes: 0 additions & 81 deletions design/tool.behavior.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/functional-tests/src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Menu {
this.breadcrumbs.reduce((submenu, choice) => submenu[choice].action as MenuItem[], MenuItems);

this.behaviors.forEach((behavior, i) => {
let handler: MRE.ActionHandler<void>;
let handler: MRE.ActionHandler;
let label: string;
let buttonMat: MRE.Material;

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/actor/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ export class Actor implements ActorLike, Patchable<ActorLike> {
* @param grabState The grab state to fire the handler on.
* @param handler The handler to call when the grab state has changed.
*/
public onGrab(grabState: 'begin' | 'end', handler: ActionHandler<void>) {
public onGrab(grabState: 'begin' | 'end', handler: ActionHandler) {
const actionState: ActionState = (grabState === 'begin') ? 'started' : 'stopped';
this.grab.on(actionState, handler);
}
Expand Down
Loading

0 comments on commit ed44094

Please sign in to comment.