From acafaab2c6926c2d5e92ff669e10b7a30b6a1897 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 30 Dec 2021 13:17:24 +0100 Subject: [PATCH] Move style manager events --- src/editor/index.js | 4 +--- src/style_manager/index.js | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/editor/index.js b/src/editor/index.js index cfc208253..e77a7bea4 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -42,9 +42,7 @@ * * `keymap:emit` - Some keymap emitted, in arguments you get keymapId, shortcutUsed, Event * * `keymap:emit:{keymapId}` - `keymapId` emitted, in arguments you get keymapId, shortcutUsed, Event * ### Style Manager - * * `styleManager:update:target` - The target (Component or CSSRule) is changed - * * `styleManager:change` - Triggered on style property change from new selected component, the view of the property is passed as an argument to the callback - * * `styleManager:change:{propertyName}` - As above but for a specific style property + * Check the [Style Manager](/api/style_manager.html) module. * ### Storage * Check the [Storage](/api/storage_manager.html) module. * ### Canvas diff --git a/src/style_manager/index.js b/src/style_manager/index.js index 324d45083..e13acea89 100644 --- a/src/style_manager/index.js +++ b/src/style_manager/index.js @@ -22,6 +22,9 @@ * ## Available Events * * `style:sector:add` - Sector added. The [Sector] is passed as an argument to the callback. * * `style:target` - Target selection changed. The target (or `null` in case the target is deselected) is passed as an argument to the callback. + * * `styleManager:update:target` - The target (Component or CSSRule) is changed + * * `styleManager:change` - Triggered on style property change from new selected component, the view of the property is passed as an argument to the callback + * * `styleManager:change:{propertyName}` - As above but for a specific style property * * ## Methods * * [getConfig](#getconfig)