@meursyphus/flitter 2.0.0 → 2.0.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/index.d.ts CHANGED
@@ -3124,6 +3124,7 @@ declare class RenderGestureDetector extends SingleChildRenderObject {
3124
3124
  }): boolean;
3125
3125
  updateZOrder(value: number): void;
3126
3126
  accept(visitor: RenderObjectVisitor): void;
3127
+ invokeCallback(type: "onClick" | "onMouseDown" | "onMouseMove" | "onMouseUp" | "onMouseOver" | "onMouseEnter" | "onMouseLeave" | "onDragStart" | "onDragMove" | "onDragEnd" | "onWheel", e: MouseEvent | WheelEvent): void;
3127
3128
  }
3128
3129
  type MouseEventCallback = (event: MouseEvent) => void;
3129
3130
 
@@ -3133,14 +3134,14 @@ interface RenderObjectVisitor {
3133
3134
  visitGestureDetector(gestureDetector: RenderGestureDetector): void;
3134
3135
  }
3135
3136
 
3136
- type EventHandlerType = "onClick" | "onMouseMove" | "onMouseUp" | "onMouseDown" | "onMouseWheel" | "onMouseEnter" | "onMouseLeave";
3137
+ type EventHandlerType = "onClick" | "onMouseMove" | "onMouseUp" | "onMouseDown" | "onWheel" | "onMouseEnter" | "onMouseLeave";
3137
3138
  declare class HitTestDispatcher {
3138
3139
  #private;
3139
3140
  init({ renderContext }: {
3140
3141
  renderContext: RenderContext;
3141
3142
  }): void;
3142
3143
  traceHitPosition(e: MouseEvent): void;
3143
- hitTest: (e: Wrapped<MouseEvent>, type: EventHandlerType) => void;
3144
+ hitTest: (e: Wrapped<MouseEvent | WheelEvent>, type: EventHandlerType) => void;
3144
3145
  didZOrderChange(): void;
3145
3146
  addDetector(detector: RenderGestureDetector): void;
3146
3147
  removeDetector(detector: RenderGestureDetector): void;
@@ -3172,6 +3173,10 @@ declare class RenderContext {
3172
3173
  height: number;
3173
3174
  };
3174
3175
  });
3176
+ /**
3177
+ * @deprecated
3178
+ * This method is deprecated and will be removed in future versions.
3179
+ */
3175
3180
  setViewport({ translation, scale, }: {
3176
3181
  translation: {
3177
3182
  x: number;
@@ -3770,6 +3775,327 @@ declare enum ToolTipPosition {
3770
3775
  centerRight = "centerRight"
3771
3776
  }
3772
3777
 
3778
+ declare const inherit = "inherit";
3779
+ declare const transparent = "transparent";
3780
+ declare const black = "#000";
3781
+ declare const white = "#fff";
3782
+ declare const slate: {
3783
+ 50: string;
3784
+ 100: string;
3785
+ 200: string;
3786
+ 300: string;
3787
+ 400: string;
3788
+ 500: string;
3789
+ 600: string;
3790
+ 700: string;
3791
+ 800: string;
3792
+ 900: string;
3793
+ 950: string;
3794
+ };
3795
+ declare const gray: {
3796
+ 50: string;
3797
+ 100: string;
3798
+ 200: string;
3799
+ 300: string;
3800
+ 400: string;
3801
+ 500: string;
3802
+ 600: string;
3803
+ 700: string;
3804
+ 800: string;
3805
+ 900: string;
3806
+ 950: string;
3807
+ };
3808
+ declare const zinc: {
3809
+ 50: string;
3810
+ 100: string;
3811
+ 200: string;
3812
+ 300: string;
3813
+ 400: string;
3814
+ 500: string;
3815
+ 600: string;
3816
+ 700: string;
3817
+ 800: string;
3818
+ 900: string;
3819
+ 950: string;
3820
+ };
3821
+ declare const neutral: {
3822
+ 50: string;
3823
+ 100: string;
3824
+ 200: string;
3825
+ 300: string;
3826
+ 400: string;
3827
+ 500: string;
3828
+ 600: string;
3829
+ 700: string;
3830
+ 800: string;
3831
+ 900: string;
3832
+ 950: string;
3833
+ };
3834
+ declare const stone: {
3835
+ 50: string;
3836
+ 100: string;
3837
+ 200: string;
3838
+ 300: string;
3839
+ 400: string;
3840
+ 500: string;
3841
+ 600: string;
3842
+ 700: string;
3843
+ 800: string;
3844
+ 900: string;
3845
+ 950: string;
3846
+ };
3847
+ declare const red: {
3848
+ 50: string;
3849
+ 100: string;
3850
+ 200: string;
3851
+ 300: string;
3852
+ 400: string;
3853
+ 500: string;
3854
+ 600: string;
3855
+ 700: string;
3856
+ 800: string;
3857
+ 900: string;
3858
+ 950: string;
3859
+ };
3860
+ declare const orange: {
3861
+ 50: string;
3862
+ 100: string;
3863
+ 200: string;
3864
+ 300: string;
3865
+ 400: string;
3866
+ 500: string;
3867
+ 600: string;
3868
+ 700: string;
3869
+ 800: string;
3870
+ 900: string;
3871
+ 950: string;
3872
+ };
3873
+ declare const amber: {
3874
+ 50: string;
3875
+ 100: string;
3876
+ 200: string;
3877
+ 300: string;
3878
+ 400: string;
3879
+ 500: string;
3880
+ 600: string;
3881
+ 700: string;
3882
+ 800: string;
3883
+ 900: string;
3884
+ 950: string;
3885
+ };
3886
+ declare const yellow: {
3887
+ 50: string;
3888
+ 100: string;
3889
+ 200: string;
3890
+ 300: string;
3891
+ 400: string;
3892
+ 500: string;
3893
+ 600: string;
3894
+ 700: string;
3895
+ 800: string;
3896
+ 900: string;
3897
+ 950: string;
3898
+ };
3899
+ declare const lime: {
3900
+ 50: string;
3901
+ 100: string;
3902
+ 200: string;
3903
+ 300: string;
3904
+ 400: string;
3905
+ 500: string;
3906
+ 600: string;
3907
+ 700: string;
3908
+ 800: string;
3909
+ 900: string;
3910
+ 950: string;
3911
+ };
3912
+ declare const green: {
3913
+ 50: string;
3914
+ 100: string;
3915
+ 200: string;
3916
+ 300: string;
3917
+ 400: string;
3918
+ 500: string;
3919
+ 600: string;
3920
+ 700: string;
3921
+ 800: string;
3922
+ 900: string;
3923
+ 950: string;
3924
+ };
3925
+ declare const emerald: {
3926
+ 50: string;
3927
+ 100: string;
3928
+ 200: string;
3929
+ 300: string;
3930
+ 400: string;
3931
+ 500: string;
3932
+ 600: string;
3933
+ 700: string;
3934
+ 800: string;
3935
+ 900: string;
3936
+ 950: string;
3937
+ };
3938
+ declare const teal: {
3939
+ 50: string;
3940
+ 100: string;
3941
+ 200: string;
3942
+ 300: string;
3943
+ 400: string;
3944
+ 500: string;
3945
+ 600: string;
3946
+ 700: string;
3947
+ 800: string;
3948
+ 900: string;
3949
+ 950: string;
3950
+ };
3951
+ declare const cyan: {
3952
+ 50: string;
3953
+ 100: string;
3954
+ 200: string;
3955
+ 300: string;
3956
+ 400: string;
3957
+ 500: string;
3958
+ 600: string;
3959
+ 700: string;
3960
+ 800: string;
3961
+ 900: string;
3962
+ 950: string;
3963
+ };
3964
+ declare const sky: {
3965
+ 50: string;
3966
+ 100: string;
3967
+ 200: string;
3968
+ 300: string;
3969
+ 400: string;
3970
+ 500: string;
3971
+ 600: string;
3972
+ 700: string;
3973
+ 800: string;
3974
+ 900: string;
3975
+ 950: string;
3976
+ };
3977
+ declare const blue: {
3978
+ 50: string;
3979
+ 100: string;
3980
+ 200: string;
3981
+ 300: string;
3982
+ 400: string;
3983
+ 500: string;
3984
+ 600: string;
3985
+ 700: string;
3986
+ 800: string;
3987
+ 900: string;
3988
+ 950: string;
3989
+ };
3990
+ declare const indigo: {
3991
+ 50: string;
3992
+ 100: string;
3993
+ 200: string;
3994
+ 300: string;
3995
+ 400: string;
3996
+ 500: string;
3997
+ 600: string;
3998
+ 700: string;
3999
+ 800: string;
4000
+ 900: string;
4001
+ 950: string;
4002
+ };
4003
+ declare const violet: {
4004
+ 50: string;
4005
+ 100: string;
4006
+ 200: string;
4007
+ 300: string;
4008
+ 400: string;
4009
+ 500: string;
4010
+ 600: string;
4011
+ 700: string;
4012
+ 800: string;
4013
+ 900: string;
4014
+ 950: string;
4015
+ };
4016
+ declare const purple: {
4017
+ 50: string;
4018
+ 100: string;
4019
+ 200: string;
4020
+ 300: string;
4021
+ 400: string;
4022
+ 500: string;
4023
+ 600: string;
4024
+ 700: string;
4025
+ 800: string;
4026
+ 900: string;
4027
+ 950: string;
4028
+ };
4029
+ declare const fuchsia: {
4030
+ 50: string;
4031
+ 100: string;
4032
+ 200: string;
4033
+ 300: string;
4034
+ 400: string;
4035
+ 500: string;
4036
+ 600: string;
4037
+ 700: string;
4038
+ 800: string;
4039
+ 900: string;
4040
+ 950: string;
4041
+ };
4042
+ declare const pink: {
4043
+ 50: string;
4044
+ 100: string;
4045
+ 200: string;
4046
+ 300: string;
4047
+ 400: string;
4048
+ 500: string;
4049
+ 600: string;
4050
+ 700: string;
4051
+ 800: string;
4052
+ 900: string;
4053
+ 950: string;
4054
+ };
4055
+ declare const rose: {
4056
+ 50: string;
4057
+ 100: string;
4058
+ 200: string;
4059
+ 300: string;
4060
+ 400: string;
4061
+ 500: string;
4062
+ 600: string;
4063
+ 700: string;
4064
+ 800: string;
4065
+ 900: string;
4066
+ 950: string;
4067
+ };
4068
+
4069
+ declare const colors_amber: typeof amber;
4070
+ declare const colors_black: typeof black;
4071
+ declare const colors_blue: typeof blue;
4072
+ declare const colors_cyan: typeof cyan;
4073
+ declare const colors_emerald: typeof emerald;
4074
+ declare const colors_fuchsia: typeof fuchsia;
4075
+ declare const colors_gray: typeof gray;
4076
+ declare const colors_green: typeof green;
4077
+ declare const colors_indigo: typeof indigo;
4078
+ declare const colors_inherit: typeof inherit;
4079
+ declare const colors_lime: typeof lime;
4080
+ declare const colors_neutral: typeof neutral;
4081
+ declare const colors_orange: typeof orange;
4082
+ declare const colors_pink: typeof pink;
4083
+ declare const colors_purple: typeof purple;
4084
+ declare const colors_red: typeof red;
4085
+ declare const colors_rose: typeof rose;
4086
+ declare const colors_sky: typeof sky;
4087
+ declare const colors_slate: typeof slate;
4088
+ declare const colors_stone: typeof stone;
4089
+ declare const colors_teal: typeof teal;
4090
+ declare const colors_transparent: typeof transparent;
4091
+ declare const colors_violet: typeof violet;
4092
+ declare const colors_white: typeof white;
4093
+ declare const colors_yellow: typeof yellow;
4094
+ declare const colors_zinc: typeof zinc;
4095
+ declare namespace colors {
4096
+ export { colors_amber as amber, colors_black as black, colors_blue as blue, colors_cyan as cyan, colors_emerald as emerald, colors_fuchsia as fuchsia, colors_gray as gray, colors_green as green, colors_indigo as indigo, colors_inherit as inherit, colors_lime as lime, colors_neutral as neutral, colors_orange as orange, colors_pink as pink, colors_purple as purple, colors_red as red, colors_rose as rose, colors_sky as sky, colors_slate as slate, colors_stone as stone, colors_teal as teal, colors_transparent as transparent, colors_violet as violet, colors_white as white, colors_yellow as yellow, colors_zinc as zinc };
4097
+ }
4098
+
3773
4099
  declare class RenderObject {
3774
4100
  #private;
3775
4101
  readonly runtimeType: string;
@@ -4715,4 +5041,4 @@ declare class Utils {
4715
5041
  static lerp<T extends Calculable | number>(a: T, b: T, t: number): T;
4716
5042
  }
4717
5043
 
4718
- export { _default$t as Align, Alignment, _default$c as AnimatedAlign, AnimatedBaseWidgetState, _default$4 as AnimatedContainer, _default$8 as AnimatedFractionallySizedBox, _default$b as AnimatedOpacity, _default$a as AnimatedPadding, _default$7 as AnimatedPositioned, _default$6 as AnimatedRotation, _default$9 as AnimatedScale, _default$5 as AnimatedSlide, Animation, AnimationController, AppRunner, _default$i as AspectRatio, Axis, Border, BorderRadius, BorderRadiusGeometry, BorderSide, BorderStyle$1 as BorderStyle, type BoxBorder, BoxDecoration, BoxShadow, BuildContext, BuildOwner, Builder, Calculable, CalculableTween, CanvasPainter, CanvasPaintingContext, Center, ChangeNotifier, _default$v as ChangeNotifierProvider, ClipOval$1 as ClipOval, _default$r as ClipPath, ClipOval as ClipRRect, ClipRect, Color, _default$h as ColoredBox, Column, ComponentElement, StatelessWidget as ComponentWidget, _default$q as ConstrainedBox, Constraints, ConstraintsTransformBox, _default$u as Container, CrossAxisAlignment, Curve, CurvedAnimation, _default$w as Curves, _default$e as CustomPaint, Data, _default$g as DecoratedBox, type Decoration, _default$3 as Draggable, EdgeInsets, Element, Expanded, Flex, _default$s as Flexible, _default$k as FractionalTranslation, _default$n as FractionallySizedBox, Gap, _default$d as GestureDetector, GlobalKey, Grid, ImplicitlyAnimatedWidget, ImplicitlyAnimatedWidgetState, IndexedStack, _default$m as IntrinsicHeight, _default$l as IntrinsicWidth, _default$o as LimitedBox, Listenable, MainAxisAlignment, MainAxisSize, Matrix3, Matrix4, MultiChildRenderObject, MultiChildRenderObjectWidget, type Nullable, Offset$1 as Offset, _default$j as Opacity, _default$p as OverflowBox, Padding, BaseCustomPaint as Painter, Paragraph, Path, Positioned, ProviderFn as Provider, RRect, Radius$1 as Radius, ReactiveChangeNotifier, Rect, RenderAligningShiftedBox, RenderBox, RenderFrameDispatcher, RenderObject, RenderObjectElement, RenderObjectToWidgetAdapter, RenderObjectWidget, RenderPipeline, RenderPipelineProvider, RenderView, _default$f as RichText, Row, Scheduler, SingleChildRenderObject, SingleChildRenderObjectWidget, Size, SizedBox, Spacer, Stack, StackFit, State, StatefulElement, StatefulWidget, StatelessElement, StatelessWidget, type SvgPaintContext, SvgPainter, Text, TextAlign, TextBaseline, TextDirection, _default as TextField, TextOverflow, TextPainter, TextSpan, TextStyle, TextWidthBasis, ToolTipPosition, _default$2 as Tooltip, Transform, Tween, UnconstrainedBox, Utils, Vector2, Vector3, Vector4, VerticalDirection, type VoidCallback, Widget, _default$1 as ZIndex };
5044
+ export { _default$t as Align, Alignment, _default$c as AnimatedAlign, AnimatedBaseWidgetState, _default$4 as AnimatedContainer, _default$8 as AnimatedFractionallySizedBox, _default$b as AnimatedOpacity, _default$a as AnimatedPadding, _default$7 as AnimatedPositioned, _default$6 as AnimatedRotation, _default$9 as AnimatedScale, _default$5 as AnimatedSlide, Animation, AnimationController, AppRunner, _default$i as AspectRatio, Axis, Border, BorderRadius, BorderRadiusGeometry, BorderSide, BorderStyle$1 as BorderStyle, type BoxBorder, BoxDecoration, BoxShadow, BuildContext, BuildOwner, Builder, Calculable, CalculableTween, CanvasPainter, CanvasPaintingContext, Center, ChangeNotifier, _default$v as ChangeNotifierProvider, ClipOval$1 as ClipOval, _default$r as ClipPath, ClipOval as ClipRRect, ClipRect, Color, _default$h as ColoredBox, colors as Colors, Column, ComponentElement, StatelessWidget as ComponentWidget, _default$q as ConstrainedBox, Constraints, ConstraintsTransformBox, _default$u as Container, CrossAxisAlignment, Curve, CurvedAnimation, _default$w as Curves, _default$e as CustomPaint, Data, _default$g as DecoratedBox, type Decoration, _default$3 as Draggable, EdgeInsets, Element, Expanded, Flex, _default$s as Flexible, _default$k as FractionalTranslation, _default$n as FractionallySizedBox, Gap, _default$d as GestureDetector, GlobalKey, Grid, ImplicitlyAnimatedWidget, ImplicitlyAnimatedWidgetState, IndexedStack, _default$m as IntrinsicHeight, _default$l as IntrinsicWidth, _default$o as LimitedBox, Listenable, MainAxisAlignment, MainAxisSize, Matrix3, Matrix4, MultiChildRenderObject, MultiChildRenderObjectWidget, type Nullable, Offset$1 as Offset, _default$j as Opacity, _default$p as OverflowBox, Padding, BaseCustomPaint as Painter, Paragraph, Path, Positioned, ProviderFn as Provider, RRect, Radius$1 as Radius, ReactiveChangeNotifier, Rect, RenderAligningShiftedBox, RenderBox, RenderFrameDispatcher, RenderObject, RenderObjectElement, RenderObjectToWidgetAdapter, RenderObjectWidget, RenderPipeline, RenderPipelineProvider, RenderView, _default$f as RichText, Row, Scheduler, SingleChildRenderObject, SingleChildRenderObjectWidget, Size, SizedBox, Spacer, Stack, StackFit, State, StatefulElement, StatefulWidget, StatelessElement, StatelessWidget, type SvgPaintContext, SvgPainter, Text, TextAlign, TextBaseline, TextDirection, _default as TextField, TextOverflow, TextPainter, TextSpan, TextStyle, TextWidthBasis, ToolTipPosition, _default$2 as Tooltip, Transform, Tween, UnconstrainedBox, Utils, Vector2, Vector3, Vector4, VerticalDirection, type VoidCallback, Widget, _default$1 as ZIndex };