Add stats for nerds (#2453)

Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Lipis 2020-12-07 18:35:16 +02:00 committed by GitHub
parent 5cdb9bd2ed
commit dd993adc5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 361 additions and 33 deletions

View file

@ -64,6 +64,7 @@ export const actionClearCanvas = register({
exportEmbedScene: appState.exportEmbedScene,
gridSize: appState.gridSize,
shouldAddWatermark: appState.shouldAddWatermark,
showStats: appState.showStats,
},
commitToHistory: true,
};

View file

@ -8,7 +8,7 @@ import {
import {
getCommonAttributeOfSelectedElements,
isSomeElementSelected,
getTargetElement,
getTargetElements,
canChangeSharpness,
} from "../scene";
import { ButtonSelect } from "../components/ButtonSelect";
@ -561,7 +561,7 @@ export const actionChangeTextAlign = register({
export const actionChangeSharpness = register({
name: "changeSharpness",
perform: (elements, appState, value) => {
const targetElements = getTargetElement(
const targetElements = getTargetElements(
getNonDeletedElements(elements),
appState,
);