Alignment mode
Summary: Adding a toggle to enable/disable alignment mode Reviewed By: jknoxville Differential Revision: D14100534 fbshipit-source-id: e3a49f1f31112ca2c99c2246a12c4f34be1ec61a
This commit is contained in:
committed by
Facebook Github Bot
parent
53f3f2d40f
commit
4f425b05b4
@@ -22,6 +22,7 @@ type Props = {
|
||||
ax?: boolean,
|
||||
client: PluginClient,
|
||||
showsSidebar: boolean,
|
||||
inAlignmentMode?: boolean,
|
||||
selectedElement: ?ElementID,
|
||||
selectedAXElement: ?ElementID,
|
||||
onSelect: (ids: ?ElementID) => void,
|
||||
@@ -196,6 +197,7 @@ export default class Inspector extends Component<Props> {
|
||||
onElementHovered = debounce((key: ?ElementID) =>
|
||||
this.props.client.call(this.call().SET_HIGHLIGHTED, {
|
||||
id: key,
|
||||
isAlignmentMode: this.props.inAlignmentMode,
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user