@galacean/effects-plugin-gui 2.10.0-alpha.5 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: GUI controls and layout containers for Galacean Effects
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors:
6
- * Version: v2.10.0-alpha.5
6
+ * Version: v2.10.1
7
7
  */
8
8
 
9
9
  import { math, EventEmitter, effectsClass, MouseButtonMask, MouseButton, InputEventMouseButton, InputEvent, InputEventKey, InputEventMouse, InputEventMouseMotion, InputEventScreenTouch, InputEventScreenDrag, Component, Plugin, getClass, registerPlugin } from '@galacean/effects';
@@ -4261,12 +4261,12 @@ var UIControl = /*#__PURE__*/ function(Component) {
4261
4261
  };
4262
4262
  _proto.fromData = function fromData(data) {
4263
4263
  Component.prototype.fromData.call(this, data);
4264
- var serialized = data.control;
4265
- var Constructor = getClass(serialized.type);
4264
+ var uiControlData = data;
4265
+ var Constructor = getClass(uiControlData.control);
4266
4266
  var control = new Constructor(this.engine);
4267
4267
  this.attachControl(control);
4268
4268
  this.syncingLocation = true;
4269
- control.fromData(serialized.data);
4269
+ control.fromData(uiControlData.data);
4270
4270
  this.syncingLocation = false;
4271
4271
  this.syncControlLocationToItem();
4272
4272
  };
@@ -10852,7 +10852,7 @@ function colorFromHex(value, fallbackAlpha) {
10852
10852
  }
10853
10853
 
10854
10854
  registerPlugin("gui", GUIPlugin);
10855
- /** GUI plugin package version. Importing this package registers the GUI runtime and native fallback theme. */ var version = "2.10.0-alpha.5";
10855
+ /** GUI plugin package version. Importing this package registers the GUI runtime and native fallback theme. */ var version = "2.10.1";
10856
10856
 
10857
10857
  export { AspectRatioContainer, AspectRatioStretchMode, AutowrapMode, AxisStretchMode, BaseButton, BoxContainer, Button, ButtonActionMode, ButtonDrawMode, ButtonGroup, CanvasContainer, CanvasRenderMode, CanvasRootControl, CenterContainer, CheckButton, Checkbox, ColorPicker, ColorPickerButton, ColorRect, Container, Control, CursorShape, FocusBehaviorRecursive, FocusMode, GUIPlugin, GUIWindowComponent, GridContainer, GrowDirection, HBoxContainer, HScrollBar, HSeparator, HSlider, HorizontalAlignment, Label, LayoutAlignment, LineEdit, MarginContainer, MenuButton, MouseBehaviorRecursive, MouseFilter, NinePatchRect, OptionButton, Orientation, Panel, PanelContainer, PatchStretchMode, Popup, PopupMenu, PopupPanel, ProgressBar, ProgressFillMode, Range, RootControl, ScrollBar, ScrollContainer, ScrollMode, Side, SizeFlags, Slider, StyleBox, StyleBoxEmpty, StyleBoxFlat, StyleBoxTexture, TextEdit, TextInput, TextOverflow, TextureExpandMode, TextureRect, TextureStretchMode, Theme, ThemeItemType, ThemeRegistry, UICanvas, UIControl, VBoxContainer, VScrollBar, VSeparator, VSlider, VerticalAlignment, WindowRootControl, cloneThemeValue, styleBoxFromData, themeFallbacks, version };
10858
10858
  //# sourceMappingURL=index.mjs.map