@meursyphus/flitter 0.0.2 → 0.0.3
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.cjs +43 -76
- package/index.d.cts +162 -878
- package/index.d.ts +162 -878
- package/index.global.js +41 -75
- package/index.js +50 -83
- package/package.json +1 -1
package/index.global.js
CHANGED
|
@@ -914,11 +914,11 @@
|
|
|
914
914
|
return Math.ceil(width);
|
|
915
915
|
}
|
|
916
916
|
|
|
917
|
-
// src/utils/
|
|
918
|
-
function
|
|
919
|
-
return (...
|
|
917
|
+
// src/utils/classToFunction.ts
|
|
918
|
+
function classToFunction(Clazz) {
|
|
919
|
+
return (...args) => new Clazz(...args);
|
|
920
920
|
}
|
|
921
|
-
var
|
|
921
|
+
var classToFunction_default = classToFunction;
|
|
922
922
|
|
|
923
923
|
// src/utils/createUniqueId.ts
|
|
924
924
|
var id = 1;
|
|
@@ -15411,7 +15411,7 @@
|
|
|
15411
15411
|
return new BaseClipPath_default({ child: this.child, clipper: this.clipper });
|
|
15412
15412
|
}
|
|
15413
15413
|
};
|
|
15414
|
-
var ClipPath_default =
|
|
15414
|
+
var ClipPath_default = classToFunction_default(ClipPath);
|
|
15415
15415
|
|
|
15416
15416
|
// src/component/ClipRect.ts
|
|
15417
15417
|
function ClipRect({
|
|
@@ -16430,7 +16430,7 @@
|
|
|
16430
16430
|
});
|
|
16431
16431
|
}
|
|
16432
16432
|
};
|
|
16433
|
-
var RichText_default =
|
|
16433
|
+
var RichText_default = classToFunction_default(RichText2);
|
|
16434
16434
|
|
|
16435
16435
|
// src/component/Text.ts
|
|
16436
16436
|
function Text(text, props = {}) {
|
|
@@ -16488,7 +16488,7 @@
|
|
|
16488
16488
|
};
|
|
16489
16489
|
|
|
16490
16490
|
// src/component/Flexible.ts
|
|
16491
|
-
var Flexible_default =
|
|
16491
|
+
var Flexible_default = classToFunction_default(BaseFlexible_default);
|
|
16492
16492
|
|
|
16493
16493
|
// src/component/Expanded.ts
|
|
16494
16494
|
function Expanded({
|
|
@@ -16571,10 +16571,7 @@
|
|
|
16571
16571
|
var BaseConstrainedBox_default = BaseConstrainedBox;
|
|
16572
16572
|
|
|
16573
16573
|
// src/component/ConstrainedBox.ts
|
|
16574
|
-
|
|
16575
|
-
return new BaseConstrainedBox_default(...props);
|
|
16576
|
-
}
|
|
16577
|
-
var ConstrainedBox_default = ConstrainedBox;
|
|
16574
|
+
var ConstrainedBox_default = classToFunction_default(BaseConstrainedBox_default);
|
|
16578
16575
|
|
|
16579
16576
|
// src/component/SizedBox.ts
|
|
16580
16577
|
function SizedBox({
|
|
@@ -16697,9 +16694,7 @@
|
|
|
16697
16694
|
var BaseAlign_default = Align;
|
|
16698
16695
|
|
|
16699
16696
|
// src/component/Align.ts
|
|
16700
|
-
|
|
16701
|
-
return new BaseAlign_default(...props);
|
|
16702
|
-
}
|
|
16697
|
+
var Align_default = classToFunction_default(BaseAlign_default);
|
|
16703
16698
|
|
|
16704
16699
|
// src/component/base/BaseColoredBox.ts
|
|
16705
16700
|
var ColoredBox = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -16749,9 +16744,7 @@
|
|
|
16749
16744
|
var BaseColoredBox_default = ColoredBox;
|
|
16750
16745
|
|
|
16751
16746
|
// src/component/ColoredBox.ts
|
|
16752
|
-
|
|
16753
|
-
return new BaseColoredBox_default(...props);
|
|
16754
|
-
}
|
|
16747
|
+
var ColoredBox_default = classToFunction_default(BaseColoredBox_default);
|
|
16755
16748
|
|
|
16756
16749
|
// src/component/base/BaseDecoratedBox.ts
|
|
16757
16750
|
var DecoratedBox = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -16803,9 +16796,7 @@
|
|
|
16803
16796
|
var BaseDecoratedBox_default = DecoratedBox;
|
|
16804
16797
|
|
|
16805
16798
|
// src/component/DecoratedBox.ts
|
|
16806
|
-
|
|
16807
|
-
return new BaseDecoratedBox_default(...props);
|
|
16808
|
-
}
|
|
16799
|
+
var DecoratedBox_default = classToFunction_default(BaseDecoratedBox_default);
|
|
16809
16800
|
|
|
16810
16801
|
// src/component/base/BaseLimitedBox.ts
|
|
16811
16802
|
var BaseLimitedBox = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -16881,7 +16872,7 @@
|
|
|
16881
16872
|
var BaseLimitedBox_default = BaseLimitedBox;
|
|
16882
16873
|
|
|
16883
16874
|
// src/component/LimitedBox.ts
|
|
16884
|
-
var LimitedBox_default =
|
|
16875
|
+
var LimitedBox_default = classToFunction_default(BaseLimitedBox_default);
|
|
16885
16876
|
|
|
16886
16877
|
// src/component/base/BasePadding.ts
|
|
16887
16878
|
var Padding = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -17241,7 +17232,7 @@
|
|
|
17241
17232
|
})
|
|
17242
17233
|
});
|
|
17243
17234
|
} else if (alignment != null) {
|
|
17244
|
-
current =
|
|
17235
|
+
current = Align_default({ child: current, alignment });
|
|
17245
17236
|
}
|
|
17246
17237
|
let paddingIncludingDecoration;
|
|
17247
17238
|
if (decoration == null || decoration.padding == null) {
|
|
@@ -17258,7 +17249,7 @@
|
|
|
17258
17249
|
});
|
|
17259
17250
|
}
|
|
17260
17251
|
if (color2 != null) {
|
|
17261
|
-
current =
|
|
17252
|
+
current = ColoredBox_default({
|
|
17262
17253
|
color: color2,
|
|
17263
17254
|
child: current
|
|
17264
17255
|
});
|
|
@@ -17282,7 +17273,7 @@
|
|
|
17282
17273
|
});
|
|
17283
17274
|
}
|
|
17284
17275
|
if (decoration != null) {
|
|
17285
|
-
current =
|
|
17276
|
+
current = DecoratedBox_default({
|
|
17286
17277
|
decoration,
|
|
17287
17278
|
child: current
|
|
17288
17279
|
});
|
|
@@ -17309,7 +17300,7 @@
|
|
|
17309
17300
|
return current;
|
|
17310
17301
|
}
|
|
17311
17302
|
};
|
|
17312
|
-
var Container_default =
|
|
17303
|
+
var Container_default = classToFunction_default(_Container);
|
|
17313
17304
|
|
|
17314
17305
|
// src/component/Builder.ts
|
|
17315
17306
|
function Builder(...props) {
|
|
@@ -17967,9 +17958,9 @@
|
|
|
17967
17958
|
}
|
|
17968
17959
|
|
|
17969
17960
|
// src/component/Positioned.ts
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
|
|
17961
|
+
var Positioned = classToFunction_default(
|
|
17962
|
+
BasePositioned_default
|
|
17963
|
+
);
|
|
17973
17964
|
Positioned.fill = ({ child }) => Positioned({ top: 0, left: 0, bottom: 0, right: 0, child });
|
|
17974
17965
|
var Positioned_default = Positioned;
|
|
17975
17966
|
|
|
@@ -18252,7 +18243,7 @@
|
|
|
18252
18243
|
var BaseOverflowBox_default = BaseOverflowBox;
|
|
18253
18244
|
|
|
18254
18245
|
// src/component/OverflowBox.ts
|
|
18255
|
-
var OverflowBox_default =
|
|
18246
|
+
var OverflowBox_default = classToFunction_default(BaseOverflowBox_default);
|
|
18256
18247
|
|
|
18257
18248
|
// src/component/Spacer.ts
|
|
18258
18249
|
function Spacer({ flex, key } = {}) {
|
|
@@ -18382,7 +18373,7 @@
|
|
|
18382
18373
|
var BaseFractionallySizedBox_default = BaseFractionallySizedBox;
|
|
18383
18374
|
|
|
18384
18375
|
// src/component/FractionallySizedBox.ts
|
|
18385
|
-
var FractionallySizedBox_default =
|
|
18376
|
+
var FractionallySizedBox_default = classToFunction_default(BaseFractionallySizedBox_default);
|
|
18386
18377
|
|
|
18387
18378
|
// src/component/base/BaseIntrinsicHeight.ts
|
|
18388
18379
|
var BaseIntrinsicHeight = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -18406,7 +18397,7 @@
|
|
|
18406
18397
|
};
|
|
18407
18398
|
|
|
18408
18399
|
// src/component/IntrinsicHeight.ts
|
|
18409
|
-
var IntrinsicHeight_default =
|
|
18400
|
+
var IntrinsicHeight_default = classToFunction_default(BaseIntrinsicHeight);
|
|
18410
18401
|
|
|
18411
18402
|
// src/component/base/BaseIntrinsicWidth.ts
|
|
18412
18403
|
var BaseIntrinsicWidth = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -18430,7 +18421,7 @@
|
|
|
18430
18421
|
};
|
|
18431
18422
|
|
|
18432
18423
|
// src/component/IntrinsicWidth.ts
|
|
18433
|
-
var IntrinsicWidth_default =
|
|
18424
|
+
var IntrinsicWidth_default = classToFunction_default(BaseIntrinsicWidth);
|
|
18434
18425
|
|
|
18435
18426
|
// src/component/base/BaseFractionalTranslation.ts
|
|
18436
18427
|
var FractionalTranslation = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -18481,7 +18472,7 @@
|
|
|
18481
18472
|
var BaseFractionalTranslation_default = FractionalTranslation;
|
|
18482
18473
|
|
|
18483
18474
|
// src/component/FractionalTranslation.ts
|
|
18484
|
-
var FractionalTranslation_default =
|
|
18475
|
+
var FractionalTranslation_default = classToFunction_default(BaseFractionalTranslation_default);
|
|
18485
18476
|
|
|
18486
18477
|
// src/component/base/BaseOpacity.ts
|
|
18487
18478
|
var Opacity = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -18530,7 +18521,7 @@
|
|
|
18530
18521
|
var BaseOpacity_default = Opacity;
|
|
18531
18522
|
|
|
18532
18523
|
// src/component/Opacity.ts
|
|
18533
|
-
var Opacity_default =
|
|
18524
|
+
var Opacity_default = classToFunction_default(BaseOpacity_default);
|
|
18534
18525
|
|
|
18535
18526
|
// src/component/base/BaseAspectRatio.ts
|
|
18536
18527
|
var AspectRatio = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -18624,10 +18615,7 @@
|
|
|
18624
18615
|
var BaseAspectRatio_default = AspectRatio;
|
|
18625
18616
|
|
|
18626
18617
|
// src/component/AspectRatio.ts
|
|
18627
|
-
|
|
18628
|
-
return new BaseAspectRatio_default(...props);
|
|
18629
|
-
}
|
|
18630
|
-
var AspectRatio_default = AspectRatio2;
|
|
18618
|
+
var AspectRatio_default = classToFunction_default(BaseAspectRatio_default);
|
|
18631
18619
|
|
|
18632
18620
|
// src/component/base/BaseIndexedStack.ts
|
|
18633
18621
|
var IndexedStack = class extends BaseStack {
|
|
@@ -18821,7 +18809,7 @@
|
|
|
18821
18809
|
var BaseCustomPaint_default = BaseCustomPaint;
|
|
18822
18810
|
|
|
18823
18811
|
// src/component/CustomPaint.ts
|
|
18824
|
-
var CustomPaint_default =
|
|
18812
|
+
var CustomPaint_default = classToFunction_default(BaseCustomPaint_default);
|
|
18825
18813
|
|
|
18826
18814
|
// src/component/base/BaseGestureDetector.ts
|
|
18827
18815
|
var globalDragBackend;
|
|
@@ -19234,7 +19222,7 @@
|
|
|
19234
19222
|
var BaseGestureDetector_default = BaseGestureDetector;
|
|
19235
19223
|
|
|
19236
19224
|
// src/component/GestureDetector.ts
|
|
19237
|
-
var GestureDetector_default =
|
|
19225
|
+
var GestureDetector_default = classToFunction_default(BaseGestureDetector_default);
|
|
19238
19226
|
|
|
19239
19227
|
// src/component/base/BaseAnimatedAlign.ts
|
|
19240
19228
|
var BaseAnimatedAlignWidget = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19287,7 +19275,7 @@
|
|
|
19287
19275
|
}
|
|
19288
19276
|
build() {
|
|
19289
19277
|
var _a, _b, _c;
|
|
19290
|
-
return
|
|
19278
|
+
return Align_default({
|
|
19291
19279
|
alignment: (_a = this.alignmentTween) == null ? void 0 : _a.evaluate(this.animation),
|
|
19292
19280
|
widthFactor: (_b = this.widthFactorTween) == null ? void 0 : _b.evaluate(this.animation),
|
|
19293
19281
|
heightFactor: (_c = this.heightFactorTween) == null ? void 0 : _c.evaluate(this.animation),
|
|
@@ -19298,9 +19286,7 @@
|
|
|
19298
19286
|
var BaseAnimatedAlign_default = BaseAnimatedAlignWidget;
|
|
19299
19287
|
|
|
19300
19288
|
// src/component/AnimatedAlign.ts
|
|
19301
|
-
|
|
19302
|
-
return new BaseAnimatedAlign_default(...props);
|
|
19303
|
-
}
|
|
19289
|
+
var AnimatedAlign_default = classToFunction_default(BaseAnimatedAlign_default);
|
|
19304
19290
|
|
|
19305
19291
|
// src/component/base/BaseAnimatedOpacity.ts
|
|
19306
19292
|
var BaseAnimatedOpacity = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19344,10 +19330,7 @@
|
|
|
19344
19330
|
var BaseAnimatedOpacity_default = BaseAnimatedOpacity;
|
|
19345
19331
|
|
|
19346
19332
|
// src/component/AnimatedOpacity.ts
|
|
19347
|
-
|
|
19348
|
-
return new BaseAnimatedOpacity_default(...props);
|
|
19349
|
-
}
|
|
19350
|
-
var AnimatedOpacity_default = AnimatedOpacity;
|
|
19333
|
+
var AnimatedOpacity_default = classToFunction_default(BaseAnimatedOpacity_default);
|
|
19351
19334
|
|
|
19352
19335
|
// src/component/base/BaseAnimatedPadding.ts
|
|
19353
19336
|
var BaseAnimatedPadding = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19392,9 +19375,7 @@
|
|
|
19392
19375
|
var BaseAnimatedPadding_default = BaseAnimatedPadding;
|
|
19393
19376
|
|
|
19394
19377
|
// src/component/AnimatedPadding.ts
|
|
19395
|
-
|
|
19396
|
-
return new BaseAnimatedPadding_default(...props);
|
|
19397
|
-
}
|
|
19378
|
+
var AnimatedPadding_default = classToFunction_default(BaseAnimatedPadding_default);
|
|
19398
19379
|
|
|
19399
19380
|
// src/component/base/BaseAnimatedScale.ts
|
|
19400
19381
|
var BaseAnimatedScale = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19442,10 +19423,7 @@
|
|
|
19442
19423
|
var BaseAnimatedScale_default = BaseAnimatedScale;
|
|
19443
19424
|
|
|
19444
19425
|
// src/component/AnimatedScale.ts
|
|
19445
|
-
|
|
19446
|
-
return new BaseAnimatedScale_default(...props);
|
|
19447
|
-
}
|
|
19448
|
-
var AnimatedScale_default = AnimatedScale;
|
|
19426
|
+
var AnimatedScale_default = classToFunction_default(BaseAnimatedScale_default);
|
|
19449
19427
|
|
|
19450
19428
|
// src/component/base/BaseAnimatedFractionallySizedBox.ts
|
|
19451
19429
|
var BaseAnimatedFractionallySizedBox = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19509,9 +19487,7 @@
|
|
|
19509
19487
|
var BaseAnimatedFractionallySizedBox_default = BaseAnimatedFractionallySizedBox;
|
|
19510
19488
|
|
|
19511
19489
|
// src/component/AnimatedFractionallySizedBox.ts
|
|
19512
|
-
|
|
19513
|
-
return new BaseAnimatedFractionallySizedBox_default(...props);
|
|
19514
|
-
}
|
|
19490
|
+
var AnimatedFractionallySizedBox_default = classToFunction_default(BaseAnimatedFractionallySizedBox_default);
|
|
19515
19491
|
|
|
19516
19492
|
// src/component/base/BaseAnimatedPositioned.ts
|
|
19517
19493
|
var BaseAnimatedPositioned = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19605,9 +19581,7 @@
|
|
|
19605
19581
|
var BaseAnimatedPositioned_default = BaseAnimatedPositioned;
|
|
19606
19582
|
|
|
19607
19583
|
// src/component/AnimatedPositioned.ts
|
|
19608
|
-
|
|
19609
|
-
return new BaseAnimatedPositioned_default(...props);
|
|
19610
|
-
}
|
|
19584
|
+
var AnimatedPositioned_default = classToFunction_default(BaseAnimatedPositioned_default);
|
|
19611
19585
|
|
|
19612
19586
|
// src/component/base/BaseAnimatedRotation.ts
|
|
19613
19587
|
var BaseAnimatedRotation = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19655,10 +19629,7 @@
|
|
|
19655
19629
|
var BaseAnimatedRotation_default = BaseAnimatedRotation;
|
|
19656
19630
|
|
|
19657
19631
|
// src/component/AnimatedRotation.ts
|
|
19658
|
-
|
|
19659
|
-
return new BaseAnimatedRotation_default(...props);
|
|
19660
|
-
}
|
|
19661
|
-
var AnimatedRotation_default = AnimatedOpacity2;
|
|
19632
|
+
var AnimatedRotation_default = classToFunction_default(BaseAnimatedRotation_default);
|
|
19662
19633
|
|
|
19663
19634
|
// src/component/base/BaseAnimatedSlide.ts
|
|
19664
19635
|
var BaseAnimatedSlide = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19701,10 +19672,7 @@
|
|
|
19701
19672
|
var BaseAnimatedSlide_default = BaseAnimatedSlide;
|
|
19702
19673
|
|
|
19703
19674
|
// src/component/AnimatedSlide.ts
|
|
19704
|
-
|
|
19705
|
-
return new BaseAnimatedSlide_default(...props);
|
|
19706
|
-
}
|
|
19707
|
-
var AnimatedSlide_default = AnimatedSlide;
|
|
19675
|
+
var AnimatedSlide_default = classToFunction_default(BaseAnimatedSlide_default);
|
|
19708
19676
|
|
|
19709
19677
|
// src/component/base/BaseAnimatedContainer.ts
|
|
19710
19678
|
var BaseAnimatedContainer = class extends ImplicitlyAnimatedWidget {
|
|
@@ -19854,9 +19822,7 @@
|
|
|
19854
19822
|
var BaseAnimatedContainer_default = BaseAnimatedContainer;
|
|
19855
19823
|
|
|
19856
19824
|
// src/component/AnimatedContainer.ts
|
|
19857
|
-
|
|
19858
|
-
return new BaseAnimatedContainer_default(...props);
|
|
19859
|
-
}
|
|
19825
|
+
var AnimatedContainer_default = classToFunction_default(BaseAnimatedContainer_default);
|
|
19860
19826
|
|
|
19861
19827
|
// src/component/Draggable.ts
|
|
19862
19828
|
var Draggable = class extends StatefulWidget_default {
|
|
@@ -19925,7 +19891,7 @@
|
|
|
19925
19891
|
});
|
|
19926
19892
|
}
|
|
19927
19893
|
};
|
|
19928
|
-
var Draggable_default =
|
|
19894
|
+
var Draggable_default = classToFunction_default(Draggable);
|
|
19929
19895
|
|
|
19930
19896
|
// src/component/Tooltip.ts
|
|
19931
19897
|
var positionHelper = {
|
|
@@ -20016,7 +19982,7 @@
|
|
|
20016
19982
|
});
|
|
20017
19983
|
}
|
|
20018
19984
|
};
|
|
20019
|
-
var Tooltip_default =
|
|
19985
|
+
var Tooltip_default = classToFunction_default(ToolTip);
|
|
20020
19986
|
|
|
20021
19987
|
// src/component/base/BaseZIndex.ts
|
|
20022
19988
|
var BaseZIndex = class extends SingleChildRenderObjectWidget_default {
|
|
@@ -20060,5 +20026,5 @@
|
|
|
20060
20026
|
_zIndex = new WeakMap();
|
|
20061
20027
|
|
|
20062
20028
|
// src/component/ZIndex.ts
|
|
20063
|
-
var ZIndex_default =
|
|
20029
|
+
var ZIndex_default = classToFunction_default(BaseZIndex);
|
|
20064
20030
|
})();
|