@ng-native/fabric 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/engine.d.ts CHANGED
@@ -25,6 +25,8 @@ interface ScrollAnimation {
25
25
  offset: number;
26
26
  value: unknown;
27
27
  }[]>;
28
+ /** The properties among `tracks` declared `!important`, left where the rule puts them. */
29
+ readonly pinned: readonly string[];
28
30
  readonly resting: Record<string, unknown>;
29
31
  readonly first: Record<string, unknown>;
30
32
  /** The colour the node inherits, which the tracks were built with, for frames that read it. */
@@ -52,6 +54,16 @@ export interface FabricUIManager {
52
54
  /** Clone with the given props and the given children (omitting them means none). */
53
55
  cloneNodeWithNewChildrenAndProps(node: FabricNode, newProps: object): FabricNode;
54
56
  appendChild(parent: FabricNode, child: FabricNode): FabricNode;
57
+ /**
58
+ * Have native move each view whose frame the next commit changes to where it ends up, over a
59
+ * time and by one of its own curves, with no frame of it in JavaScript.
60
+ */
61
+ configureNextLayoutAnimation?(config: {
62
+ duration: number;
63
+ update: {
64
+ type: string;
65
+ };
66
+ }, ended: () => void, failed: () => void): void;
55
67
  createChildSet(rootTag: number): FabricNodeSet;
56
68
  appendChildToSet(set: FabricNodeSet, child: FabricNode): void;
57
69
  completeRoot(rootTag: number, set: FabricNodeSet): void;
@@ -1120,7 +1132,7 @@ export declare class Engine implements HostEngine {
1120
1132
  * asks for another by name, or its keyframes went, as a browser fires it.
1121
1133
  */
1122
1134
  private cancelPlaying;
1123
- /** Stop on native each animation whose view has left the tree. */
1135
+ /** Stop on native each animation and transition whose view has left the tree. */
1124
1136
  private releasePlayedNatively;
1125
1137
  /** Every node whose animation native is playing, with no frame of it in JavaScript. */
1126
1138
  private readonly playedNatively;
@@ -1218,6 +1230,72 @@ export declare class Engine implements HostEngine {
1218
1230
  private reportHeld;
1219
1231
  private reportMissingKeyframes;
1220
1232
  private transitioned;
1233
+ /** Nobody saw what the last commit gave a view it created, so this is where the view starts. */
1234
+ private unseenTransitions;
1235
+ /** The elements native is playing a transition of. */
1236
+ private readonly easedNatively;
1237
+ /**
1238
+ * Hand to native each transition that just started and that it can play: opacity and
1239
+ * transforms, with no wait before they start. Those that start together, take as long and ease
1240
+ * alike share a clock. Nothing of them runs in JavaScript until native says they have ended:
1241
+ * a press that fades or slides something is a commit to start it and a commit to end it.
1242
+ *
1243
+ * ponytail: a colour is eased from JavaScript still, a commit a frame, and so is anything
1244
+ * that waits. Native has a colour node for the first; give the driver a channel for it.
1245
+ */
1246
+ private easeNatively;
1247
+ /** The root's children as the views they are committed as, each reconciled. */
1248
+ private rootHandles;
1249
+ /** The transitions this commit lays out where they end, for native to move the views to. */
1250
+ private laying;
1251
+ /** Whether this commit resizes or moves a box that is in no such transition. */
1252
+ private movesOthers;
1253
+ /**
1254
+ * Commit where it ends each transition of a size or a place that just started, for native to
1255
+ * move the view there: a layout animation, which the commit asks for once it is known that
1256
+ * nothing else in it moves. One still on its way is committed where it ends too.
1257
+ *
1258
+ * A width eased from JavaScript is a commit a frame, and a commit lays the whole screen out.
1259
+ */
1260
+ private layEased;
1261
+ /**
1262
+ * Before a commit is handed over: ask native to move what it lays out, or take the
1263
+ * transitions back to ease them from JavaScript where the commit moves anything else, and
1264
+ * where they would not all take as long. Answers whether the tree has to be reconciled again.
1265
+ */
1266
+ private layOut;
1267
+ /**
1268
+ * Note a commit that resizes or moves a box in no transition native lays out: a prop of one
1269
+ * that moves boxes, children that came or went, text longer or shorter than it was.
1270
+ */
1271
+ private noteMoved;
1272
+ /** A transition native laid out has had its time: it is where it ends, and says so. */
1273
+ private endLaid;
1274
+ /**
1275
+ * Bring a transition native laid out to where its clock has got to, where it is sent another
1276
+ * way or its rule has gone: that is where it goes on from.
1277
+ */
1278
+ private takeBackLaid;
1279
+ private startEased;
1280
+ private playEased;
1281
+ /**
1282
+ * Native reached the end of the transitions on one clock. Where they end is committed before
1283
+ * the view is let go, so nothing shows of where they started, which is what it was committed
1284
+ * with.
1285
+ */
1286
+ private endedEased;
1287
+ /** No longer one native is easing, once none of its transitions is native's. */
1288
+ private forgetEased;
1289
+ /**
1290
+ * Take back from native each transition it can no longer play as it was started: one sent
1291
+ * another way, one whose rule has gone, any of a view that was made again. Each is brought to
1292
+ * where its clock has got to, which is where it goes on from, here or on native again.
1293
+ */
1294
+ private takeBackEased;
1295
+ /** Stop a clock native runs, and go on from JavaScript with each transition it was playing. */
1296
+ private backToScriptEased;
1297
+ /** Let go of what native is easing on an element that is going, or gone. */
1298
+ private stopEased;
1221
1299
  /**
1222
1300
  * Whether an animation that has finished goes on holding its last frame. With a forwards fill
1223
1301
  * it does, for good: without one the element falls back to whatever the cascade gives it, and