create editor canvas toolbar
This commit is contained in:
@@ -38,6 +38,7 @@ const AlignmentSettings = ({
|
||||
// const alignToSelection = selectedObjectIds.length === 2;
|
||||
|
||||
const applyAlign = (kind: AlignKind) => {
|
||||
useEditorStore.getState().commitObjectHistoryBeforeChange();
|
||||
const { objects: objs, selectedObjectIds: ids, layerRef } = useEditorStore.getState();
|
||||
const layer = layerRef?.current ?? null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user