mirror of
https://github.com/rive-app/rive-flutter
synced 2025-06-22 01:55:59 +00:00
update mono to apply .gitattribute changes first & made a trivial cha…
…nge in rive_flutter to push downstream tested this on a couple of private repos. this also ran a linter on mono.sh 🙈 i guess that should be fine though Diffs= 96a0f0b96 update mono to apply .gitattribute changes first & made a trivial cha… (#5781) cbc6ba291 Add rive::math::msb() (#5777) 58cc49580 Add a Bitmap::detachBytes method (#5763) 30351d475 Letter spacing! (#5774) e6941215f refactor: use ticker instead of stopwatch (#5761) 3ab062dd2 Run editor tests on hosted runner. (#5760) Co-authored-by: Alex Gibson <agibson.uk@gmail.com> Co-authored-by: Gordon <pggordonhayes@gmail.com> Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com> Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
This commit is contained in:
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
test/assets/** filter=lfs diff=lfs merge=lfs -text
|
||||
test/goldens/**/images/*.png filter=lfs diff=lfs merge=lfs -text
|
@ -1 +1 @@
|
||||
2eb7308d297bd1b829c6aa829df6470823e76671
|
||||
96a0f0b967bb6ced28c5f4c5a5616cda22b22944
|
||||
|
@ -1,6 +1,8 @@
|
||||
## Upcoming
|
||||
## 0.11.14
|
||||
|
||||
- Refactor how hit testing is performed in `RiveAnimation` and `Rive` widgets. Pointer events (listeners) can now be enabled on the `Rive` widget by setting `enablePointerEvents` to `true` (default is false).
|
||||
- Change in how animations advance when using `RiveAnimation` and `Rive` widgets. Now using `Ticker`, which will allow Rive animations to respect `timeDilation` and `TickerMode`. Resolves [187](https://github.com/rive-app/rive-flutter/issues/187), [254](https://github.com/rive-app/rive-flutter/issues/254), [307](https://github.com/rive-app/rive-flutter/issues/307), and [328](https://github.com/rive-app/rive-flutter/issues/328)
|
||||
- Support for line spacing.
|
||||
|
||||
## 0.11.13
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/advanceable_state_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/state_machine_layer_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/layer_state.dart';
|
||||
|
||||
@ -39,8 +40,10 @@ abstract class AdvanceableStateBase extends LayerState {
|
||||
void speedChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant AdvanceableStateBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_speed = source._speed;
|
||||
if (source is AdvanceableStateBase) {
|
||||
_speed = source._speed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,9 @@ abstract class AnimationBase<T extends CoreContext> extends Core<T> {
|
||||
void nameChanged(String from, String to);
|
||||
|
||||
@override
|
||||
void copy(covariant AnimationBase source) {
|
||||
_name = source._name;
|
||||
void copy(Core source) {
|
||||
if (source is AnimationBase) {
|
||||
_name = source._name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/animation_state_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/layer_state_base.dart';
|
||||
import 'package:rive/src/generated/animation/state_machine_layer_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/advanceable_state.dart';
|
||||
@ -44,8 +45,10 @@ abstract class AnimationStateBase extends AdvanceableState {
|
||||
void animationIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant AnimationStateBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_animationId = source._animationId;
|
||||
if (source is AnimationStateBase) {
|
||||
_animationId = source._animationId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/blend_animation_1d_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/blend_animation.dart';
|
||||
|
||||
abstract class BlendAnimation1DBase extends BlendAnimation {
|
||||
@ -35,8 +36,10 @@ abstract class BlendAnimation1DBase extends BlendAnimation {
|
||||
void valueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant BlendAnimation1DBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is BlendAnimation1DBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,9 @@ abstract class BlendAnimationBase<T extends CoreContext> extends Core<T> {
|
||||
void animationIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant BlendAnimationBase source) {
|
||||
_animationId = source._animationId;
|
||||
void copy(Core source) {
|
||||
if (source is BlendAnimationBase) {
|
||||
_animationId = source._animationId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/blend_animation_direct_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/blend_animation.dart';
|
||||
|
||||
abstract class BlendAnimationDirectBase extends BlendAnimation {
|
||||
@ -87,10 +88,12 @@ abstract class BlendAnimationDirectBase extends BlendAnimation {
|
||||
void blendSourceChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant BlendAnimationDirectBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_inputId = source._inputId;
|
||||
_mixValue = source._mixValue;
|
||||
_blendSource = source._blendSource;
|
||||
if (source is BlendAnimationDirectBase) {
|
||||
_inputId = source._inputId;
|
||||
_mixValue = source._mixValue;
|
||||
_blendSource = source._blendSource;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/blend_state_1d_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/layer_state_base.dart';
|
||||
import 'package:rive/src/generated/animation/state_machine_layer_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/blend_animation_1d.dart';
|
||||
@ -44,8 +45,10 @@ abstract class BlendState1DBase extends BlendState<BlendAnimation1D> {
|
||||
void inputIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant BlendState1DBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_inputId = source._inputId;
|
||||
if (source is BlendState1DBase) {
|
||||
_inputId = source._inputId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/blend_state_transition_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/state_machine_layer_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/state_transition.dart';
|
||||
|
||||
@ -42,8 +43,10 @@ abstract class BlendStateTransitionBase extends StateTransition {
|
||||
void exitBlendAnimationIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant BlendStateTransitionBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_exitBlendAnimationId = source._exitBlendAnimationId;
|
||||
if (source is BlendStateTransitionBase) {
|
||||
_exitBlendAnimationId = source._exitBlendAnimationId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -100,10 +100,12 @@ abstract class CubicInterpolatorBase<T extends CoreContext> extends Core<T> {
|
||||
void y2Changed(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant CubicInterpolatorBase source) {
|
||||
_x1 = source._x1;
|
||||
_y1 = source._y1;
|
||||
_x2 = source._x2;
|
||||
_y2 = source._y2;
|
||||
void copy(Core source) {
|
||||
if (source is CubicInterpolatorBase) {
|
||||
_x1 = source._x1;
|
||||
_y1 = source._y1;
|
||||
_x2 = source._x2;
|
||||
_y2 = source._y2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/cubic_interpolator_component_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class CubicInterpolatorComponentBase extends Component {
|
||||
@ -101,11 +102,13 @@ abstract class CubicInterpolatorComponentBase extends Component {
|
||||
void y2Changed(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant CubicInterpolatorComponentBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_x1 = source._x1;
|
||||
_y1 = source._y1;
|
||||
_x2 = source._x2;
|
||||
_y2 = source._y2;
|
||||
if (source is CubicInterpolatorComponentBase) {
|
||||
_x1 = source._x1;
|
||||
_y1 = source._y1;
|
||||
_x2 = source._x2;
|
||||
_y2 = source._y2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,9 @@ abstract class KeyedObjectBase<T extends CoreContext> extends Core<T> {
|
||||
void objectIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyedObjectBase source) {
|
||||
_objectId = source._objectId;
|
||||
void copy(Core source) {
|
||||
if (source is KeyedObjectBase) {
|
||||
_objectId = source._objectId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,9 @@ abstract class KeyedPropertyBase<T extends CoreContext> extends Core<T> {
|
||||
void propertyKeyChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyedPropertyBase source) {
|
||||
_propertyKey = source._propertyKey;
|
||||
void copy(Core source) {
|
||||
if (source is KeyedPropertyBase) {
|
||||
_propertyKey = source._propertyKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,9 +87,11 @@ abstract class KeyFrameBase<T extends CoreContext> extends Core<T> {
|
||||
void interpolatorIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyFrameBase source) {
|
||||
_frame = source._frame;
|
||||
_interpolationType = source._interpolationType;
|
||||
_interpolatorId = source._interpolatorId;
|
||||
void copy(Core source) {
|
||||
if (source is KeyFrameBase) {
|
||||
_frame = source._frame;
|
||||
_interpolationType = source._interpolationType;
|
||||
_interpolatorId = source._interpolatorId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/keyframe_bool_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/keyframe.dart';
|
||||
|
||||
abstract class KeyFrameBoolBase extends KeyFrame {
|
||||
@ -34,8 +35,10 @@ abstract class KeyFrameBoolBase extends KeyFrame {
|
||||
void valueChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyFrameBoolBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is KeyFrameBoolBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/keyframe_color_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/keyframe.dart';
|
||||
|
||||
abstract class KeyFrameColorBase extends KeyFrame {
|
||||
@ -34,8 +35,10 @@ abstract class KeyFrameColorBase extends KeyFrame {
|
||||
void valueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyFrameColorBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is KeyFrameColorBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/keyframe_double_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/keyframe.dart';
|
||||
|
||||
abstract class KeyFrameDoubleBase extends KeyFrame {
|
||||
@ -34,8 +35,10 @@ abstract class KeyFrameDoubleBase extends KeyFrame {
|
||||
void valueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyFrameDoubleBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is KeyFrameDoubleBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/keyframe_id_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/keyframe.dart';
|
||||
|
||||
abstract class KeyFrameIdBase extends KeyFrame {
|
||||
@ -34,8 +35,10 @@ abstract class KeyFrameIdBase extends KeyFrame {
|
||||
void valueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyFrameIdBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is KeyFrameIdBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/keyframe_string_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/keyframe.dart';
|
||||
|
||||
abstract class KeyFrameStringBase extends KeyFrame {
|
||||
@ -34,8 +35,10 @@ abstract class KeyFrameStringBase extends KeyFrame {
|
||||
void valueChanged(String from, String to);
|
||||
|
||||
@override
|
||||
void copy(covariant KeyFrameStringBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is KeyFrameStringBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/linear_animation_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/animation.dart';
|
||||
|
||||
abstract class LinearAnimationBase extends Animation {
|
||||
@ -208,15 +209,17 @@ abstract class LinearAnimationBase extends Animation {
|
||||
void quantizeChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant LinearAnimationBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_fps = source._fps;
|
||||
_duration = source._duration;
|
||||
_speed = source._speed;
|
||||
_loopValue = source._loopValue;
|
||||
_workStart = source._workStart;
|
||||
_workEnd = source._workEnd;
|
||||
_enableWorkArea = source._enableWorkArea;
|
||||
_quantize = source._quantize;
|
||||
if (source is LinearAnimationBase) {
|
||||
_fps = source._fps;
|
||||
_duration = source._duration;
|
||||
_speed = source._speed;
|
||||
_loopValue = source._loopValue;
|
||||
_workStart = source._workStart;
|
||||
_workEnd = source._workEnd;
|
||||
_enableWorkArea = source._enableWorkArea;
|
||||
_quantize = source._quantize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/listener_align_target_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_action.dart';
|
||||
|
||||
abstract class ListenerAlignTargetBase extends ListenerAction {
|
||||
@ -38,8 +39,10 @@ abstract class ListenerAlignTargetBase extends ListenerAction {
|
||||
void targetIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant ListenerAlignTargetBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_targetId = source._targetId;
|
||||
if (source is ListenerAlignTargetBase) {
|
||||
_targetId = source._targetId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/listener_bool_change_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/listener_action_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_input_change.dart';
|
||||
|
||||
@ -41,8 +42,10 @@ abstract class ListenerBoolChangeBase extends ListenerInputChange {
|
||||
void valueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant ListenerBoolChangeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is ListenerBoolChangeBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
47
lib/src/generated/animation/listener_fire_event_base.dart
Normal file
47
lib/src/generated/animation/listener_fire_event_base.dart
Normal file
@ -0,0 +1,47 @@
|
||||
// Core automatically generated
|
||||
// lib/src/generated/animation/listener_fire_event_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_action.dart';
|
||||
|
||||
abstract class ListenerFireEventBase extends ListenerAction {
|
||||
static const int typeKey = 168;
|
||||
@override
|
||||
int get coreType => ListenerFireEventBase.typeKey;
|
||||
@override
|
||||
Set<int> get coreTypes =>
|
||||
{ListenerFireEventBase.typeKey, ListenerActionBase.typeKey};
|
||||
|
||||
/// --------------------------------------------------------------------------
|
||||
/// EventId field with key 389.
|
||||
static const int eventIdInitialValue = -1;
|
||||
int _eventId = eventIdInitialValue;
|
||||
static const int eventIdPropertyKey = 389;
|
||||
|
||||
/// Id of the Event referenced.
|
||||
int get eventId => _eventId;
|
||||
|
||||
/// Change the [_eventId] field value.
|
||||
/// [eventIdChanged] will be invoked only if the field's value has changed.
|
||||
set eventId(int value) {
|
||||
if (_eventId == value) {
|
||||
return;
|
||||
}
|
||||
int from = _eventId;
|
||||
_eventId = value;
|
||||
if (hasValidated) {
|
||||
eventIdChanged(from, value);
|
||||
}
|
||||
}
|
||||
|
||||
void eventIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
if (source is ListenerFireEventBase) {
|
||||
_eventId = source._eventId;
|
||||
}
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/listener_input_change_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_action.dart';
|
||||
|
||||
abstract class ListenerInputChangeBase extends ListenerAction {
|
||||
@ -37,8 +38,10 @@ abstract class ListenerInputChangeBase extends ListenerAction {
|
||||
void inputIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant ListenerInputChangeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_inputId = source._inputId;
|
||||
if (source is ListenerInputChangeBase) {
|
||||
_inputId = source._inputId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/listener_number_change_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/listener_action_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_input_change.dart';
|
||||
|
||||
@ -41,8 +42,10 @@ abstract class ListenerNumberChangeBase extends ListenerInputChange {
|
||||
void valueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant ListenerNumberChangeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is ListenerNumberChangeBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/nested_bool_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/nested_input.dart';
|
||||
|
||||
@ -37,8 +38,10 @@ abstract class NestedBoolBase extends NestedInput {
|
||||
void nestedValueChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedBoolBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_nestedValue = source._nestedValue;
|
||||
if (source is NestedBoolBase) {
|
||||
_nestedValue = source._nestedValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/nested_input_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class NestedInputBase extends Component {
|
||||
@ -36,8 +37,10 @@ abstract class NestedInputBase extends Component {
|
||||
void inputIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedInputBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_inputId = source._inputId;
|
||||
if (source is NestedInputBase) {
|
||||
_inputId = source._inputId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/nested_linear_animation_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/linear_animation.dart';
|
||||
@ -45,8 +46,10 @@ abstract class NestedLinearAnimationBase
|
||||
void mixChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedLinearAnimationBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_mix = source._mix;
|
||||
if (source is NestedLinearAnimationBase) {
|
||||
_mix = source._mix;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/nested_number_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/nested_input.dart';
|
||||
|
||||
@ -40,8 +41,10 @@ abstract class NestedNumberBase extends NestedInput {
|
||||
void nestedValueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedNumberBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_nestedValue = source._nestedValue;
|
||||
if (source is NestedNumberBase) {
|
||||
_nestedValue = source._nestedValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/nested_remap_animation_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/nested_animation_base.dart';
|
||||
@ -45,8 +46,10 @@ abstract class NestedRemapAnimationBase extends NestedLinearAnimation {
|
||||
void timeChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedRemapAnimationBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_time = source._time;
|
||||
if (source is NestedRemapAnimationBase) {
|
||||
_time = source._time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/nested_simple_animation_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/nested_animation_base.dart';
|
||||
@ -69,9 +70,11 @@ abstract class NestedSimpleAnimationBase extends NestedLinearAnimation {
|
||||
void isPlayingChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedSimpleAnimationBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_speed = source._speed;
|
||||
_isPlaying = source._isPlaying;
|
||||
if (source is NestedSimpleAnimationBase) {
|
||||
_speed = source._speed;
|
||||
_isPlaying = source._isPlaying;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/state_machine_bool_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/state_machine_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/state_machine_input.dart';
|
||||
|
||||
@ -39,8 +40,10 @@ abstract class StateMachineBoolBase extends StateMachineInput {
|
||||
void valueChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant StateMachineBoolBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is StateMachineBoolBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,9 @@ abstract class StateMachineComponentBase<T extends CoreContext>
|
||||
void nameChanged(String from, String to);
|
||||
|
||||
@override
|
||||
void copy(covariant StateMachineComponentBase source) {
|
||||
_name = source._name;
|
||||
void copy(Core source) {
|
||||
if (source is StateMachineComponentBase) {
|
||||
_name = source._name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/state_machine_listener_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/state_machine_component.dart';
|
||||
|
||||
abstract class StateMachineListenerBase extends StateMachineComponent {
|
||||
@ -62,9 +63,11 @@ abstract class StateMachineListenerBase extends StateMachineComponent {
|
||||
void listenerTypeValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant StateMachineListenerBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_targetId = source._targetId;
|
||||
_listenerTypeValue = source._listenerTypeValue;
|
||||
if (source is StateMachineListenerBase) {
|
||||
_targetId = source._targetId;
|
||||
_listenerTypeValue = source._listenerTypeValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/state_machine_number_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/state_machine_component_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/state_machine_input.dart';
|
||||
|
||||
@ -39,8 +40,10 @@ abstract class StateMachineNumberBase extends StateMachineInput {
|
||||
void valueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant StateMachineNumberBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is StateMachineNumberBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/state_transition_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/state_machine_layer_component.dart';
|
||||
|
||||
abstract class StateTransitionBase extends StateMachineLayerComponent {
|
||||
@ -161,13 +162,15 @@ abstract class StateTransitionBase extends StateMachineLayerComponent {
|
||||
void interpolatorIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant StateTransitionBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_stateToId = source._stateToId;
|
||||
_flags = source._flags;
|
||||
_duration = source._duration;
|
||||
_exitTime = source._exitTime;
|
||||
_interpolationType = source._interpolationType;
|
||||
_interpolatorId = source._interpolatorId;
|
||||
if (source is StateTransitionBase) {
|
||||
_stateToId = source._stateToId;
|
||||
_flags = source._flags;
|
||||
_duration = source._duration;
|
||||
_exitTime = source._exitTime;
|
||||
_interpolationType = source._interpolationType;
|
||||
_interpolatorId = source._interpolatorId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,9 @@ abstract class TransitionConditionBase<T extends CoreContext> extends Core<T> {
|
||||
void inputIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransitionConditionBase source) {
|
||||
_inputId = source._inputId;
|
||||
void copy(Core source) {
|
||||
if (source is TransitionConditionBase) {
|
||||
_inputId = source._inputId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/transition_number_condition_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/animation/transition_condition_base.dart';
|
||||
import 'package:rive/src/rive_core/animation/transition_value_condition.dart';
|
||||
|
||||
@ -39,8 +40,10 @@ abstract class TransitionNumberConditionBase extends TransitionValueCondition {
|
||||
void valueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransitionNumberConditionBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_value = source._value;
|
||||
if (source is TransitionNumberConditionBase) {
|
||||
_value = source._value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/animation/transition_value_condition_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/animation/transition_condition.dart';
|
||||
|
||||
abstract class TransitionValueConditionBase extends TransitionCondition {
|
||||
@ -37,8 +38,10 @@ abstract class TransitionValueConditionBase extends TransitionCondition {
|
||||
void opValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransitionValueConditionBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_opValue = source._opValue;
|
||||
if (source is TransitionValueConditionBase) {
|
||||
_opValue = source._opValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/artboard_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/rive_core/world_transform_component.dart';
|
||||
@ -212,15 +213,17 @@ abstract class ArtboardBase extends WorldTransformComponent {
|
||||
void defaultStateMachineIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant ArtboardBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_clip = source._clip;
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_defaultStateMachineId = source._defaultStateMachineId;
|
||||
if (source is ArtboardBase) {
|
||||
_clip = source._clip;
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_defaultStateMachineId = source._defaultStateMachineId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,9 @@ abstract class AssetBase<T extends CoreContext> extends Core<T> {
|
||||
void nameChanged(String from, String to);
|
||||
|
||||
@override
|
||||
void copy(covariant AssetBase source) {
|
||||
_name = source._name;
|
||||
void copy(Core source) {
|
||||
if (source is AssetBase) {
|
||||
_name = source._name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/assets/drawable_asset_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/assets/asset_base.dart';
|
||||
import 'package:rive/src/rive_core/assets/file_asset.dart';
|
||||
|
||||
@ -62,9 +63,11 @@ abstract class DrawableAssetBase extends FileAsset {
|
||||
void widthChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant DrawableAssetBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_height = source._height;
|
||||
_width = source._width;
|
||||
if (source is DrawableAssetBase) {
|
||||
_height = source._height;
|
||||
_width = source._width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,10 +85,12 @@ abstract class FileAssetBase extends Asset {
|
||||
void cdnBaseUrlChanged(String from, String to);
|
||||
|
||||
@override
|
||||
void copy(covariant FileAssetBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_assetId = source._assetId;
|
||||
_cdnUuid = source._cdnUuid;
|
||||
_cdnBaseUrl = source._cdnBaseUrl;
|
||||
if (source is FileAssetBase) {
|
||||
_assetId = source._assetId;
|
||||
_cdnUuid = source._cdnUuid;
|
||||
_cdnBaseUrl = source._cdnBaseUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,9 @@ abstract class FileAssetContentsBase<T extends CoreContext> extends Core<T> {
|
||||
void bytesChanged(Uint8List from, Uint8List to);
|
||||
|
||||
@override
|
||||
void copy(covariant FileAssetContentsBase source) {
|
||||
_bytes = source._bytes;
|
||||
void copy(Core source) {
|
||||
if (source is FileAssetContentsBase) {
|
||||
_bytes = source._bytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/bones/bone_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/transform_component_base.dart';
|
||||
@ -44,8 +45,10 @@ abstract class BoneBase extends SkeletalComponent {
|
||||
void lengthChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant BoneBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_length = source._length;
|
||||
if (source is BoneBase) {
|
||||
_length = source._length;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/bones/cubic_weight_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/bones/weight.dart';
|
||||
|
||||
@ -101,11 +102,13 @@ abstract class CubicWeightBase extends Weight {
|
||||
void outIndicesChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant CubicWeightBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_inValues = source._inValues;
|
||||
_inIndices = source._inIndices;
|
||||
_outValues = source._outValues;
|
||||
_outIndices = source._outIndices;
|
||||
if (source is CubicWeightBase) {
|
||||
_inValues = source._inValues;
|
||||
_inIndices = source._inIndices;
|
||||
_outValues = source._outValues;
|
||||
_outIndices = source._outIndices;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/bones/root_bone_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/bones/skeletal_component_base.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
@ -72,9 +73,11 @@ abstract class RootBoneBase extends Bone {
|
||||
void yChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant RootBoneBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
if (source is RootBoneBase) {
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -158,13 +158,15 @@ abstract class SkinBase extends ContainerComponent {
|
||||
void tyChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant SkinBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_xx = source._xx;
|
||||
_yx = source._yx;
|
||||
_xy = source._xy;
|
||||
_yy = source._yy;
|
||||
_tx = source._tx;
|
||||
_ty = source._ty;
|
||||
if (source is SkinBase) {
|
||||
_xx = source._xx;
|
||||
_yx = source._yx;
|
||||
_xy = source._xy;
|
||||
_yy = source._yy;
|
||||
_tx = source._tx;
|
||||
_ty = source._ty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/bones/tendon_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class TendonBase extends Component {
|
||||
@ -179,14 +180,16 @@ abstract class TendonBase extends Component {
|
||||
void tyChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant TendonBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_boneId = source._boneId;
|
||||
_xx = source._xx;
|
||||
_yx = source._yx;
|
||||
_xy = source._xy;
|
||||
_yy = source._yy;
|
||||
_tx = source._tx;
|
||||
_ty = source._ty;
|
||||
if (source is TendonBase) {
|
||||
_boneId = source._boneId;
|
||||
_xx = source._xx;
|
||||
_yx = source._yx;
|
||||
_xy = source._xy;
|
||||
_yy = source._yy;
|
||||
_tx = source._tx;
|
||||
_ty = source._ty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/bones/weight_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class WeightBase extends Component {
|
||||
@ -55,9 +56,11 @@ abstract class WeightBase extends Component {
|
||||
void indicesChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant WeightBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_values = source._values;
|
||||
_indices = source._indices;
|
||||
if (source is WeightBase) {
|
||||
_values = source._values;
|
||||
_indices = source._indices;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,8 +60,10 @@ abstract class ComponentBase<T extends CoreContext> extends Core<T> {
|
||||
void parentIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant ComponentBase source) {
|
||||
_name = source._name;
|
||||
_parentId = source._parentId;
|
||||
void copy(Core source) {
|
||||
if (source is ComponentBase) {
|
||||
_name = source._name;
|
||||
_parentId = source._parentId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class ConstraintBase extends Component {
|
||||
@ -36,8 +37,10 @@ abstract class ConstraintBase extends Component {
|
||||
void strengthChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant ConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_strength = source._strength;
|
||||
if (source is ConstraintBase) {
|
||||
_strength = source._strength;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/distance_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/rive_core/constraints/targeted_constraint.dart';
|
||||
@ -68,9 +69,11 @@ abstract class DistanceConstraintBase extends TargetedConstraint {
|
||||
void modeValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant DistanceConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_distance = source._distance;
|
||||
_modeValue = source._modeValue;
|
||||
if (source is DistanceConstraintBase) {
|
||||
_distance = source._distance;
|
||||
_modeValue = source._modeValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/follow_path_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/generated/constraints/targeted_constraint_base.dart';
|
||||
@ -94,10 +95,12 @@ abstract class FollowPathConstraintBase extends TransformSpaceConstraint {
|
||||
void offsetChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant FollowPathConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_distance = source._distance;
|
||||
_orient = source._orient;
|
||||
_offset = source._offset;
|
||||
if (source is FollowPathConstraintBase) {
|
||||
_distance = source._distance;
|
||||
_orient = source._orient;
|
||||
_offset = source._offset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/ik_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/rive_core/constraints/targeted_constraint.dart';
|
||||
@ -71,9 +72,11 @@ abstract class IKConstraintBase extends TargetedConstraint {
|
||||
void parentBoneCountChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant IKConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_invertDirection = source._invertDirection;
|
||||
_parentBoneCount = source._parentBoneCount;
|
||||
if (source is IKConstraintBase) {
|
||||
_invertDirection = source._invertDirection;
|
||||
_parentBoneCount = source._parentBoneCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/targeted_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/constraints/constraint.dart';
|
||||
|
||||
@ -42,8 +43,10 @@ abstract class TargetedConstraintBase extends Constraint {
|
||||
void targetIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TargetedConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_targetId = source._targetId;
|
||||
if (source is TargetedConstraintBase) {
|
||||
_targetId = source._targetId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/transform_component_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/generated/constraints/targeted_constraint_base.dart';
|
||||
@ -216,15 +217,17 @@ abstract class TransformComponentConstraintBase
|
||||
void maxChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransformComponentConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_minMaxSpaceValue = source._minMaxSpaceValue;
|
||||
_copyFactor = source._copyFactor;
|
||||
_minValue = source._minValue;
|
||||
_maxValue = source._maxValue;
|
||||
_offset = source._offset;
|
||||
_doesCopy = source._doesCopy;
|
||||
_min = source._min;
|
||||
_max = source._max;
|
||||
if (source is TransformComponentConstraintBase) {
|
||||
_minMaxSpaceValue = source._minMaxSpaceValue;
|
||||
_copyFactor = source._copyFactor;
|
||||
_minValue = source._minValue;
|
||||
_maxValue = source._maxValue;
|
||||
_offset = source._offset;
|
||||
_doesCopy = source._doesCopy;
|
||||
_min = source._min;
|
||||
_max = source._max;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/transform_component_constraint_y_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/generated/constraints/targeted_constraint_base.dart';
|
||||
@ -169,13 +170,15 @@ abstract class TransformComponentConstraintYBase
|
||||
void maxYChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransformComponentConstraintYBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_copyFactorY = source._copyFactorY;
|
||||
_minValueY = source._minValueY;
|
||||
_maxValueY = source._maxValueY;
|
||||
_doesCopyY = source._doesCopyY;
|
||||
_minY = source._minY;
|
||||
_maxY = source._maxY;
|
||||
if (source is TransformComponentConstraintYBase) {
|
||||
_copyFactorY = source._copyFactorY;
|
||||
_minValueY = source._minValueY;
|
||||
_maxValueY = source._maxValueY;
|
||||
_doesCopyY = source._doesCopyY;
|
||||
_minY = source._minY;
|
||||
_maxY = source._maxY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/transform_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/generated/constraints/targeted_constraint_base.dart';
|
||||
@ -69,9 +70,11 @@ abstract class TransformConstraintBase extends TransformSpaceConstraint {
|
||||
void originYChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransformConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
if (source is TransformConstraintBase) {
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/constraints/transform_space_constraint_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/constraints/constraint_base.dart';
|
||||
import 'package:rive/src/rive_core/constraints/targeted_constraint.dart';
|
||||
@ -69,9 +70,11 @@ abstract class TransformSpaceConstraintBase extends TargetedConstraint {
|
||||
void destSpaceValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TransformSpaceConstraintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_sourceSpaceValue = source._sourceSpaceValue;
|
||||
_destSpaceValue = source._destSpaceValue;
|
||||
if (source is TransformSpaceConstraintBase) {
|
||||
_sourceSpaceValue = source._sourceSpaceValue;
|
||||
_destSpaceValue = source._destSpaceValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
12
lib/src/generated/custom_property_base.dart
Normal file
12
lib/src/generated/custom_property_base.dart
Normal file
@ -0,0 +1,12 @@
|
||||
// Core automatically generated lib/src/generated/custom_property_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class CustomPropertyBase extends Component {
|
||||
static const int typeKey = 167;
|
||||
@override
|
||||
int get coreType => CustomPropertyBase.typeKey;
|
||||
@override
|
||||
Set<int> get coreTypes => {CustomPropertyBase.typeKey, ComponentBase.typeKey};
|
||||
}
|
@ -2,15 +2,20 @@
|
||||
// lib/src/generated/custom_property_boolean_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/custom_property.dart';
|
||||
|
||||
abstract class CustomPropertyBooleanBase extends Component {
|
||||
abstract class CustomPropertyBooleanBase extends CustomProperty {
|
||||
static const int typeKey = 129;
|
||||
@override
|
||||
int get coreType => CustomPropertyBooleanBase.typeKey;
|
||||
@override
|
||||
Set<int> get coreTypes =>
|
||||
{CustomPropertyBooleanBase.typeKey, ComponentBase.typeKey};
|
||||
Set<int> get coreTypes => {
|
||||
CustomPropertyBooleanBase.typeKey,
|
||||
CustomPropertyBase.typeKey,
|
||||
ComponentBase.typeKey
|
||||
};
|
||||
|
||||
/// --------------------------------------------------------------------------
|
||||
/// PropertyValue field with key 245.
|
||||
@ -36,8 +41,10 @@ abstract class CustomPropertyBooleanBase extends Component {
|
||||
void propertyValueChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant CustomPropertyBooleanBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_propertyValue = source._propertyValue;
|
||||
if (source is CustomPropertyBooleanBase) {
|
||||
_propertyValue = source._propertyValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,15 +2,20 @@
|
||||
// lib/src/generated/custom_property_number_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/custom_property.dart';
|
||||
|
||||
abstract class CustomPropertyNumberBase extends Component {
|
||||
abstract class CustomPropertyNumberBase extends CustomProperty {
|
||||
static const int typeKey = 127;
|
||||
@override
|
||||
int get coreType => CustomPropertyNumberBase.typeKey;
|
||||
@override
|
||||
Set<int> get coreTypes =>
|
||||
{CustomPropertyNumberBase.typeKey, ComponentBase.typeKey};
|
||||
Set<int> get coreTypes => {
|
||||
CustomPropertyNumberBase.typeKey,
|
||||
CustomPropertyBase.typeKey,
|
||||
ComponentBase.typeKey
|
||||
};
|
||||
|
||||
/// --------------------------------------------------------------------------
|
||||
/// PropertyValue field with key 243.
|
||||
@ -36,8 +41,10 @@ abstract class CustomPropertyNumberBase extends Component {
|
||||
void propertyValueChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant CustomPropertyNumberBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_propertyValue = source._propertyValue;
|
||||
if (source is CustomPropertyNumberBase) {
|
||||
_propertyValue = source._propertyValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,15 +2,20 @@
|
||||
// lib/src/generated/custom_property_string_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/rive_core/custom_property.dart';
|
||||
|
||||
abstract class CustomPropertyStringBase extends Component {
|
||||
abstract class CustomPropertyStringBase extends CustomProperty {
|
||||
static const int typeKey = 130;
|
||||
@override
|
||||
int get coreType => CustomPropertyStringBase.typeKey;
|
||||
@override
|
||||
Set<int> get coreTypes =>
|
||||
{CustomPropertyStringBase.typeKey, ComponentBase.typeKey};
|
||||
Set<int> get coreTypes => {
|
||||
CustomPropertyStringBase.typeKey,
|
||||
CustomPropertyBase.typeKey,
|
||||
ComponentBase.typeKey
|
||||
};
|
||||
|
||||
/// --------------------------------------------------------------------------
|
||||
/// PropertyValue field with key 246.
|
||||
@ -36,8 +41,10 @@ abstract class CustomPropertyStringBase extends Component {
|
||||
void propertyValueChanged(String from, String to);
|
||||
|
||||
@override
|
||||
void copy(covariant CustomPropertyStringBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_propertyValue = source._propertyValue;
|
||||
if (source is CustomPropertyStringBase) {
|
||||
_propertyValue = source._propertyValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,8 +42,10 @@ abstract class DrawRulesBase extends ContainerComponent {
|
||||
void drawTargetIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant DrawRulesBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_drawTargetId = source._drawTargetId;
|
||||
if (source is DrawRulesBase) {
|
||||
_drawTargetId = source._drawTargetId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/draw_target_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class DrawTargetBase extends Component {
|
||||
@ -60,9 +61,11 @@ abstract class DrawTargetBase extends Component {
|
||||
void placementValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant DrawTargetBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_drawableId = source._drawableId;
|
||||
_placementValue = source._placementValue;
|
||||
if (source is DrawTargetBase) {
|
||||
_drawableId = source._drawableId;
|
||||
_placementValue = source._placementValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/drawable_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/transform_component_base.dart';
|
||||
@ -68,9 +69,11 @@ abstract class DrawableBase extends Node {
|
||||
void drawableFlagsChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant DrawableBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_blendModeValue = source._blendModeValue;
|
||||
_drawableFlags = source._drawableFlags;
|
||||
if (source is DrawableBase) {
|
||||
_blendModeValue = source._blendModeValue;
|
||||
_drawableFlags = source._drawableFlags;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/joystick_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class JoystickBase extends Component {
|
||||
@ -289,19 +290,21 @@ abstract class JoystickBase extends Component {
|
||||
void handleSourceIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant JoystickBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
_posX = source._posX;
|
||||
_posY = source._posY;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_xId = source._xId;
|
||||
_yId = source._yId;
|
||||
_joystickFlags = source._joystickFlags;
|
||||
_handleSourceId = source._handleSourceId;
|
||||
if (source is JoystickBase) {
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
_posX = source._posX;
|
||||
_posY = source._posY;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_xId = source._xId;
|
||||
_yId = source._yId;
|
||||
_joystickFlags = source._joystickFlags;
|
||||
_handleSourceId = source._handleSourceId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,8 +42,10 @@ abstract class NestedAnimationBase extends ContainerComponent {
|
||||
void animationIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedAnimationBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_animationId = source._animationId;
|
||||
if (source is NestedAnimationBase) {
|
||||
_animationId = source._animationId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/nested_artboard_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -48,8 +49,10 @@ abstract class NestedArtboardBase extends Drawable {
|
||||
void artboardIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant NestedArtboardBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_artboardId = source._artboardId;
|
||||
if (source is NestedArtboardBase) {
|
||||
_artboardId = source._artboardId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/node_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/world_transform_component_base.dart';
|
||||
@ -68,9 +69,11 @@ abstract class NodeBase extends TransformComponent {
|
||||
void yChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant NodeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
if (source is NodeBase) {
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ import 'package:rive/src/rive_core/animation/keyframe_string.dart';
|
||||
import 'package:rive/src/rive_core/animation/linear_animation.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_align_target.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_bool_change.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_fire_event.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_number_change.dart';
|
||||
import 'package:rive/src/rive_core/animation/listener_trigger_change.dart';
|
||||
import 'package:rive/src/rive_core/animation/nested_bool.dart';
|
||||
@ -164,6 +165,8 @@ class RiveCoreContext {
|
||||
return NestedArtboard();
|
||||
case SoloBase.typeKey:
|
||||
return Solo();
|
||||
case ListenerFireEventBase.typeKey:
|
||||
return ListenerFireEvent();
|
||||
case AnimationBase.typeKey:
|
||||
return Animation();
|
||||
case LinearAnimationBase.typeKey:
|
||||
@ -562,6 +565,11 @@ class RiveCoreContext {
|
||||
object.activeComponentId = value;
|
||||
}
|
||||
break;
|
||||
case ListenerFireEventBase.eventIdPropertyKey:
|
||||
if (object is ListenerFireEventBase && value is int) {
|
||||
object.eventId = value;
|
||||
}
|
||||
break;
|
||||
case AnimationBase.namePropertyKey:
|
||||
if (object is AnimationBase && value is String) {
|
||||
object.name = value;
|
||||
@ -1482,6 +1490,11 @@ class RiveCoreContext {
|
||||
object.lineHeight = value;
|
||||
}
|
||||
break;
|
||||
case TextStyleBase.letterSpacingPropertyKey:
|
||||
if (object is TextStyleBase && value is double) {
|
||||
object.letterSpacing = value;
|
||||
}
|
||||
break;
|
||||
case TextStyleBase.fontAssetIdPropertyKey:
|
||||
if (object is TextStyleBase && value is int) {
|
||||
object.fontAssetId = value;
|
||||
@ -1626,6 +1639,7 @@ class RiveCoreContext {
|
||||
case NestedArtboardBase.artboardIdPropertyKey:
|
||||
case NestedAnimationBase.animationIdPropertyKey:
|
||||
case SoloBase.activeComponentIdPropertyKey:
|
||||
case ListenerFireEventBase.eventIdPropertyKey:
|
||||
case LinearAnimationBase.fpsPropertyKey:
|
||||
case LinearAnimationBase.durationPropertyKey:
|
||||
case LinearAnimationBase.loopValuePropertyKey:
|
||||
@ -1816,6 +1830,7 @@ class RiveCoreContext {
|
||||
case TextModifierGroupBase.scaleYPropertyKey:
|
||||
case TextStyleBase.fontSizePropertyKey:
|
||||
case TextStyleBase.lineHeightPropertyKey:
|
||||
case TextStyleBase.letterSpacingPropertyKey:
|
||||
case TextStyleAxisBase.axisValuePropertyKey:
|
||||
case TextBase.widthPropertyKey:
|
||||
case TextBase.heightPropertyKey:
|
||||
@ -1915,6 +1930,8 @@ class RiveCoreContext {
|
||||
return (object as NestedAnimationBase).animationId;
|
||||
case SoloBase.activeComponentIdPropertyKey:
|
||||
return (object as SoloBase).activeComponentId;
|
||||
case ListenerFireEventBase.eventIdPropertyKey:
|
||||
return (object as ListenerFireEventBase).eventId;
|
||||
case LinearAnimationBase.fpsPropertyKey:
|
||||
return (object as LinearAnimationBase).fps;
|
||||
case LinearAnimationBase.durationPropertyKey:
|
||||
@ -2299,6 +2316,8 @@ class RiveCoreContext {
|
||||
return (object as TextStyleBase).fontSize;
|
||||
case TextStyleBase.lineHeightPropertyKey:
|
||||
return (object as TextStyleBase).lineHeight;
|
||||
case TextStyleBase.letterSpacingPropertyKey:
|
||||
return (object as TextStyleBase).letterSpacing;
|
||||
case TextStyleAxisBase.axisValuePropertyKey:
|
||||
return (object as TextStyleAxisBase).axisValue;
|
||||
case TextBase.widthPropertyKey:
|
||||
@ -2514,6 +2533,11 @@ class RiveCoreContext {
|
||||
object.activeComponentId = value;
|
||||
}
|
||||
break;
|
||||
case ListenerFireEventBase.eventIdPropertyKey:
|
||||
if (object is ListenerFireEventBase) {
|
||||
object.eventId = value;
|
||||
}
|
||||
break;
|
||||
case LinearAnimationBase.fpsPropertyKey:
|
||||
if (object is LinearAnimationBase) {
|
||||
object.fps = value;
|
||||
@ -3464,6 +3488,11 @@ class RiveCoreContext {
|
||||
object.lineHeight = value;
|
||||
}
|
||||
break;
|
||||
case TextStyleBase.letterSpacingPropertyKey:
|
||||
if (object is TextStyleBase) {
|
||||
object.letterSpacing = value;
|
||||
}
|
||||
break;
|
||||
case TextStyleAxisBase.axisValuePropertyKey:
|
||||
if (object is TextStyleAxisBase) {
|
||||
object.axisValue = value;
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/clipping_shape_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class ClippingShapeBase extends Component {
|
||||
@ -82,10 +83,12 @@ abstract class ClippingShapeBase extends Component {
|
||||
void isVisibleChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant ClippingShapeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_sourceId = source._sourceId;
|
||||
_fillRule = source._fillRule;
|
||||
_isVisible = source._isVisible;
|
||||
if (source is ClippingShapeBase) {
|
||||
_sourceId = source._sourceId;
|
||||
_fillRule = source._fillRule;
|
||||
_isVisible = source._isVisible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/cubic_asymmetric_vertex_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/shapes/path_vertex_base.dart';
|
||||
@ -96,10 +97,12 @@ abstract class CubicAsymmetricVertexBase extends CubicVertex {
|
||||
void outDistanceChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant CubicAsymmetricVertexBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_rotation = source._rotation;
|
||||
_inDistance = source._inDistance;
|
||||
_outDistance = source._outDistance;
|
||||
if (source is CubicAsymmetricVertexBase) {
|
||||
_rotation = source._rotation;
|
||||
_inDistance = source._inDistance;
|
||||
_outDistance = source._outDistance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/cubic_detached_vertex_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/shapes/path_vertex_base.dart';
|
||||
@ -121,11 +122,13 @@ abstract class CubicDetachedVertexBase extends CubicVertex {
|
||||
void outDistanceChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant CubicDetachedVertexBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_inRotation = source._inRotation;
|
||||
_inDistance = source._inDistance;
|
||||
_outRotation = source._outRotation;
|
||||
_outDistance = source._outDistance;
|
||||
if (source is CubicDetachedVertexBase) {
|
||||
_inRotation = source._inRotation;
|
||||
_inDistance = source._inDistance;
|
||||
_outRotation = source._outRotation;
|
||||
_outDistance = source._outDistance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/cubic_mirrored_vertex_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/shapes/path_vertex_base.dart';
|
||||
@ -71,9 +72,11 @@ abstract class CubicMirroredVertexBase extends CubicVertex {
|
||||
void distanceChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant CubicMirroredVertexBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_rotation = source._rotation;
|
||||
_distance = source._distance;
|
||||
if (source is CubicMirroredVertexBase) {
|
||||
_rotation = source._rotation;
|
||||
_distance = source._distance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/image_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -96,10 +97,12 @@ abstract class ImageBase extends Drawable {
|
||||
void originYChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant ImageBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_assetId = source._assetId;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
if (source is ImageBase) {
|
||||
_assetId = source._assetId;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,8 +39,10 @@ abstract class MeshBase extends ContainerComponent {
|
||||
void triangleIndexBytesChanged(Uint8List from, Uint8List to);
|
||||
|
||||
@override
|
||||
void copy(covariant MeshBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_triangleIndexBytes = source._triangleIndexBytes;
|
||||
if (source is MeshBase) {
|
||||
_triangleIndexBytes = source._triangleIndexBytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/mesh_vertex_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/rive_core/shapes/vertex.dart';
|
||||
@ -66,9 +67,11 @@ abstract class MeshVertexBase extends Vertex {
|
||||
void vChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant MeshVertexBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_u = source._u;
|
||||
_v = source._v;
|
||||
if (source is MeshVertexBase) {
|
||||
_u = source._u;
|
||||
_v = source._v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/paint/fill_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/rive_core/shapes/paint/shape_paint.dart';
|
||||
@ -40,8 +41,10 @@ abstract class FillBase extends ShapePaint {
|
||||
void fillRuleChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant FillBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_fillRule = source._fillRule;
|
||||
if (source is FillBase) {
|
||||
_fillRule = source._fillRule;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/paint/gradient_stop_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class GradientStopBase extends Component {
|
||||
@ -56,9 +57,11 @@ abstract class GradientStopBase extends Component {
|
||||
void positionChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant GradientStopBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_colorValue = source._colorValue;
|
||||
_position = source._position;
|
||||
if (source is GradientStopBase) {
|
||||
_colorValue = source._colorValue;
|
||||
_position = source._position;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -128,12 +128,14 @@ abstract class LinearGradientBase extends ContainerComponent {
|
||||
void opacityChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant LinearGradientBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_startX = source._startX;
|
||||
_startY = source._startY;
|
||||
_endX = source._endX;
|
||||
_endY = source._endY;
|
||||
_opacity = source._opacity;
|
||||
if (source is LinearGradientBase) {
|
||||
_startX = source._startX;
|
||||
_startY = source._startY;
|
||||
_endX = source._endX;
|
||||
_endY = source._endY;
|
||||
_opacity = source._opacity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,8 +40,10 @@ abstract class ShapePaintBase extends ContainerComponent {
|
||||
void isVisibleChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant ShapePaintBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_isVisible = source._isVisible;
|
||||
if (source is ShapePaintBase) {
|
||||
_isVisible = source._isVisible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/paint/solid_color_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class SolidColorBase extends Component {
|
||||
@ -34,8 +35,10 @@ abstract class SolidColorBase extends Component {
|
||||
void colorValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant SolidColorBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_colorValue = source._colorValue;
|
||||
if (source is SolidColorBase) {
|
||||
_colorValue = source._colorValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/paint/stroke_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/rive_core/shapes/paint/shape_paint.dart';
|
||||
@ -108,11 +109,13 @@ abstract class StrokeBase extends ShapePaint {
|
||||
void transformAffectsStrokeChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant StrokeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_thickness = source._thickness;
|
||||
_cap = source._cap;
|
||||
_join = source._join;
|
||||
_transformAffectsStroke = source._transformAffectsStroke;
|
||||
if (source is StrokeBase) {
|
||||
_thickness = source._thickness;
|
||||
_cap = source._cap;
|
||||
_join = source._join;
|
||||
_transformAffectsStroke = source._transformAffectsStroke;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/paint/trim_path_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/rive_core/component.dart';
|
||||
|
||||
abstract class TrimPathBase extends Component {
|
||||
@ -100,11 +101,13 @@ abstract class TrimPathBase extends Component {
|
||||
void modeValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TrimPathBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_start = source._start;
|
||||
_end = source._end;
|
||||
_offset = source._offset;
|
||||
_modeValue = source._modeValue;
|
||||
if (source is TrimPathBase) {
|
||||
_start = source._start;
|
||||
_end = source._end;
|
||||
_offset = source._offset;
|
||||
_modeValue = source._modeValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/parametric_path_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -121,11 +122,13 @@ abstract class ParametricPathBase extends Path {
|
||||
void originYChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant ParametricPathBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
if (source is ParametricPathBase) {
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/path_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/transform_component_base.dart';
|
||||
@ -44,8 +45,10 @@ abstract class PathBase extends Node {
|
||||
void pathFlagsChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant PathBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_pathFlags = source._pathFlags;
|
||||
if (source is PathBase) {
|
||||
_pathFlags = source._pathFlags;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/points_path_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -49,8 +50,10 @@ abstract class PointsPathBase extends Path {
|
||||
void isClosedChanged(bool from, bool to);
|
||||
|
||||
@override
|
||||
void copy(covariant PointsPathBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_isClosed = source._isClosed;
|
||||
if (source is PointsPathBase) {
|
||||
_isClosed = source._isClosed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/polygon_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -75,9 +76,11 @@ abstract class PolygonBase extends ParametricPath {
|
||||
void cornerRadiusChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant PolygonBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_points = source._points;
|
||||
_cornerRadius = source._cornerRadius;
|
||||
if (source is PolygonBase) {
|
||||
_points = source._points;
|
||||
_cornerRadius = source._cornerRadius;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/rectangle_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -151,12 +152,14 @@ abstract class RectangleBase extends ParametricPath {
|
||||
void cornerRadiusBRChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant RectangleBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_linkCornerRadius = source._linkCornerRadius;
|
||||
_cornerRadiusTL = source._cornerRadiusTL;
|
||||
_cornerRadiusTR = source._cornerRadiusTR;
|
||||
_cornerRadiusBL = source._cornerRadiusBL;
|
||||
_cornerRadiusBR = source._cornerRadiusBR;
|
||||
if (source is RectangleBase) {
|
||||
_linkCornerRadius = source._linkCornerRadius;
|
||||
_cornerRadiusTL = source._cornerRadiusTL;
|
||||
_cornerRadiusTR = source._cornerRadiusTR;
|
||||
_cornerRadiusBL = source._cornerRadiusBL;
|
||||
_cornerRadiusBR = source._cornerRadiusBR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/shapes/star_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -53,8 +54,10 @@ abstract class StarBase extends Polygon {
|
||||
void innerRadiusChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant StarBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_innerRadius = source._innerRadius;
|
||||
if (source is StarBase) {
|
||||
_innerRadius = source._innerRadius;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
// lib/src/generated/shapes/straight_vertex_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/shapes/vertex_base.dart';
|
||||
@ -46,8 +47,10 @@ abstract class StraightVertexBase extends PathVertex<Weight> {
|
||||
void radiusChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant StraightVertexBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_radius = source._radius;
|
||||
if (source is StraightVertexBase) {
|
||||
_radius = source._radius;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,9 +65,11 @@ abstract class VertexBase extends ContainerComponent {
|
||||
void yChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant VertexBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
if (source is VertexBase) {
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/solo_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/transform_component_base.dart';
|
||||
@ -47,8 +48,10 @@ abstract class SoloBase extends Node {
|
||||
void activeComponentIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant SoloBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_activeComponentId = source._activeComponentId;
|
||||
if (source is SoloBase) {
|
||||
_activeComponentId = source._activeComponentId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Core automatically generated lib/src/generated/text/text_base.dart.
|
||||
// Do not modify manually.
|
||||
|
||||
import 'package:rive/src/core/core.dart';
|
||||
import 'package:rive/src/generated/component_base.dart';
|
||||
import 'package:rive/src/generated/container_component_base.dart';
|
||||
import 'package:rive/src/generated/node_base.dart';
|
||||
@ -238,16 +239,18 @@ abstract class TextBase extends Drawable {
|
||||
void originValueChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TextBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_alignValue = source._alignValue;
|
||||
_sizingValue = source._sizingValue;
|
||||
_overflowValue = source._overflowValue;
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_paragraphSpacing = source._paragraphSpacing;
|
||||
_originValue = source._originValue;
|
||||
if (source is TextBase) {
|
||||
_alignValue = source._alignValue;
|
||||
_sizingValue = source._sizingValue;
|
||||
_overflowValue = source._overflowValue;
|
||||
_width = source._width;
|
||||
_height = source._height;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_paragraphSpacing = source._paragraphSpacing;
|
||||
_originValue = source._originValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -217,16 +217,18 @@ abstract class TextModifierGroupBase extends ContainerComponent {
|
||||
void scaleYChanged(double from, double to);
|
||||
|
||||
@override
|
||||
void copy(covariant TextModifierGroupBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_modifierFlags = source._modifierFlags;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_opacity = source._opacity;
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
_rotation = source._rotation;
|
||||
_scaleX = source._scaleX;
|
||||
_scaleY = source._scaleY;
|
||||
if (source is TextModifierGroupBase) {
|
||||
_modifierFlags = source._modifierFlags;
|
||||
_originX = source._originX;
|
||||
_originY = source._originY;
|
||||
_opacity = source._opacity;
|
||||
_x = source._x;
|
||||
_y = source._y;
|
||||
_rotation = source._rotation;
|
||||
_scaleX = source._scaleX;
|
||||
_scaleY = source._scaleY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -263,18 +263,20 @@ abstract class TextModifierRangeBase extends ContainerComponent {
|
||||
void runIdChanged(int from, int to);
|
||||
|
||||
@override
|
||||
void copy(covariant TextModifierRangeBase source) {
|
||||
void copy(Core source) {
|
||||
super.copy(source);
|
||||
_modifyFrom = source._modifyFrom;
|
||||
_modifyTo = source._modifyTo;
|
||||
_strength = source._strength;
|
||||
_unitsValue = source._unitsValue;
|
||||
_typeValue = source._typeValue;
|
||||
_modeValue = source._modeValue;
|
||||
_clamp = source._clamp;
|
||||
_falloffFrom = source._falloffFrom;
|
||||
_falloffTo = source._falloffTo;
|
||||
_offset = source._offset;
|
||||
_runId = source._runId;
|
||||
if (source is TextModifierRangeBase) {
|
||||
_modifyFrom = source._modifyFrom;
|
||||
_modifyTo = source._modifyTo;
|
||||
_strength = source._strength;
|
||||
_unitsValue = source._unitsValue;
|
||||
_typeValue = source._typeValue;
|
||||
_modeValue = source._modeValue;
|
||||
_clamp = source._clamp;
|
||||
_falloffFrom = source._falloffFrom;
|
||||
_falloffTo = source._falloffTo;
|
||||
_offset = source._offset;
|
||||
_runId = source._runId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user