Run generate

just trying to flush through some of the bits coming out of running generate core runtime & generate core runtime without making a mess in other pr's .
this is split into four commits which might be helpful when looking at the changes here.

Diffs=
ad72cfce5 Run generate (#5490)
7ee5f7d5a Increases the margin for the approx call to some of the wangs formula… (#5506)
2f224da7f Runtime ellipsis (#5482)

Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
This commit is contained in:
mjtalbot
2023-06-29 08:29:17 +00:00
parent 13adb8da86
commit fe30e35068
69 changed files with 410 additions and 53 deletions

View File

@ -131,6 +131,7 @@ import 'package:rive/src/rive_core/text/text_modifier_group.dart';
import 'package:rive/src/rive_core/text/text_modifier_range.dart';
import 'package:rive/src/rive_core/text/text_style.dart';
import 'package:rive/src/rive_core/text/text_style_axis.dart';
import 'package:rive/src/rive_core/text/text_style_feature.dart';
import 'package:rive/src/rive_core/text/text_value_run.dart';
import 'package:rive/src/rive_core/text/text_variation_modifier.dart';
@ -312,6 +313,8 @@ class RiveCoreContext {
return Tendon();
case TextModifierRangeBase.typeKey:
return TextModifierRange();
case TextStyleFeatureBase.typeKey:
return TextStyleFeature();
case TextVariationModifierBase.typeKey:
return TextVariationModifier();
case TextModifierGroupBase.typeKey:
@ -1356,6 +1359,16 @@ class RiveCoreContext {
object.offset = value;
}
break;
case TextStyleFeatureBase.tagPropertyKey:
if (object is TextStyleFeatureBase && value is int) {
object.tag = value;
}
break;
case TextStyleFeatureBase.featureValuePropertyKey:
if (object is TextStyleFeatureBase && value is int) {
object.featureValue = value;
}
break;
case TextVariationModifierBase.axisTagPropertyKey:
if (object is TextVariationModifierBase && value is int) {
object.axisTag = value;
@ -1585,6 +1598,8 @@ class RiveCoreContext {
case TextModifierRangeBase.unitsValuePropertyKey:
case TextModifierRangeBase.typeValuePropertyKey:
case TextModifierRangeBase.modeValuePropertyKey:
case TextStyleFeatureBase.tagPropertyKey:
case TextStyleFeatureBase.featureValuePropertyKey:
case TextVariationModifierBase.axisTagPropertyKey:
case TextModifierGroupBase.modifierFlagsPropertyKey:
case TextStyleBase.fontAssetIdPropertyKey:
@ -1911,6 +1926,10 @@ class RiveCoreContext {
return (object as TextModifierRangeBase).typeValue;
case TextModifierRangeBase.modeValuePropertyKey:
return (object as TextModifierRangeBase).modeValue;
case TextStyleFeatureBase.tagPropertyKey:
return (object as TextStyleFeatureBase).tag;
case TextStyleFeatureBase.featureValuePropertyKey:
return (object as TextStyleFeatureBase).featureValue;
case TextVariationModifierBase.axisTagPropertyKey:
return (object as TextVariationModifierBase).axisTag;
case TextModifierGroupBase.modifierFlagsPropertyKey:
@ -2639,6 +2658,16 @@ class RiveCoreContext {
object.modeValue = value;
}
break;
case TextStyleFeatureBase.tagPropertyKey:
if (object is TextStyleFeatureBase) {
object.tag = value;
}
break;
case TextStyleFeatureBase.featureValuePropertyKey:
if (object is TextStyleFeatureBase) {
object.featureValue = value;
}
break;
case TextVariationModifierBase.axisTagPropertyKey:
if (object is TextVariationModifierBase) {
object.axisTag = value;