drawnui-react 0.1.0-preview.22 → 0.1.0-preview.23
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/SKIPPED.md +1 -0
- package/dist/controls/SkiaLayout.d.ts +16 -1
- package/dist/controls/SkiaLayout.js +52 -5
- package/dist/controls/SkiaScroll.js +4 -3
- package/dist/core/Types.d.ts +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/react/reconciler.js +2 -2
- package/package.json +2 -1
package/SKIPPED.md
CHANGED
|
@@ -70,6 +70,7 @@ DrawnUi name and semantics; nothing here is a redesign, only an omission.
|
|
|
70
70
|
| `ItemsSourceWindow` / `WindowSourceThreshold` (built-in window over huge sources) | not needed | The C# window bounds pipeline work (structures, pools, measures) for `MeasureFirst`/`MeasureAll` over big collections. React `MeasureVisible` measures on demand and keeps only visible cells realized, so the pipeline is already O(visible); memory of the array itself belongs to the app (paginate with `LoadMore*`). Revisit only if `MeasureAll` over 100k+ items becomes a requirement. |
|
|
71
71
|
| `MeasureItemsStrategy="MeasureVisible"` + background measurement | ported | Initial pass measures enough items to fill the viewport (≥ `BackgroundMeasurementBatchSize`), content extent = exact prefix + average × remaining (C# MeasureList estimate), visible cells measured on demand and laid out with their real heights, the prefix grows in `requestIdleCallback` slices (time-budgeted, then one `InvalidateMeasure`), `LastMeasuredIndex`, `DebugString` shows `measured n/N`. Not ported: cancellation/`_pendingStructureChanges` interplay, `UsePreparedViews`, windowed sources, anchor correction when an estimate above the viewport changes (content may shift by the delta). |
|
|
72
72
|
| `SkiaLayout` Wrap (static children) + `SkiaWrap` alias | ported | Left-to-right flow, `Spacing` between items and rows, row height = tallest item. Not ported: `Split`, main-axis `Fill` children sharing a row (1.9.7.4 flex-fill), `UseDynamicColumns`, RTL. |
|
|
73
|
+
| `SkiaLayout` Masonry + `SkiaMasonry` alias (Split 2, horizontal fill) | ported | C# `MeasureMasonry` / `BuildMasonryLayout`: `Split` columns of width round((width - (Split - 1) * Spacing) / Split), every visible item measured unbounded at that width and placed at the bottom of the shortest column (the first on a tie), `Spacing` between columns and items. Children or `ItemsSource` + `ItemTemplate` (recycled slots, taps, `ScrollToIndex` from the slot rect, `LoadMore`); a templated slot keeps its item's size, so an appended page or a changed item is the only one measured and every item is placed again. No items window. Content = used columns wide, tallest column high. `npm run check:masonry` (C# MasonryLayoutTests) |
|
|
73
74
|
| `SkiaLayout` Grid (static children) + `SkiaGrid` alias | ported | Port of `SkiaGridStructure` (MAUI grid manager): `ColumnDefinitions`/`RowDefinitions` as `"*, 2*, Auto, 100"` or arrays, `DefaultColumnDefinition`/`DefaultRowDefinition` (Auto, like C#), `ColumnSpacing`/`RowSpacing`, child `Column`/`Row`/`ColumnSpan`/`RowSpan` (plain props instead of attached properties), implicit tracks, unknown/known measure passes, span resolution, star compression, Fill-child minimums, last-track stretch when the grid fills, remeasure at final cells. Not ported: `Split`/`Invert` (templated grids), `UseDynamicColumns`, `SkiaDecoratedGrid`, `GetOrderedSubviews` ZIndex ordering. |
|
|
74
75
|
| `SkiaLabel` | partial | Word wrap (+ character break for long words), `MaxLines` with tail ellipsis, `LineBreakMode` (NoWrap / wraps / Tail; Head/Middle behave as Tail), `HorizontalTextAlignment` Start/Center/End (Fill* accepted, align Start), `VerticalTextAlignment`, `LineSpacing`, `LineHeight`, `FontWeight` + `FontAttributes` via faces registered per weight (`AddFont(src, alias, weight)`, nearest weight wins, synthetic bold (`setEmbolden`) when the nearest face is lighter than 600 — C# `Font.Embolden`; italic = synthetic skew when no italic face; empty `FontFamily` = the first registered family, weights included), `TextTransform`, `Padding`, `LinesCount`; defaults as C# (`FontSize` 12, `TextColor` GreenYellow). `FontFamilyFallback` ported and extended: comma-separated chain (`"FontSymbols,FontSymbols2"`), per-codepoint run segmentation, spaces always stay on the main font; `fonts.AddSymbols()` (`FontSymbols` = Noto Sans Math subset, `FontSymbols2` = Noto Sans Symbols 2 subset) and `fonts.AddEmojis()` (`FontEmoji` = Noto Color Emoji faces+hands subset) ship the same subsets as DrawnUi.Blazor. `Spans` ported as `<TextSpan>` children: `Text`, `TextColor`/`FontSize`/`FontFamily` (unset = inherit from the label, like C# HasSetColor/HasSetSize/HasSetFont), `FontWeight`, `IsBold`, `IsItalic`, `Underline`/`UnderlineWidth`, `Strikeout`/`StrikeoutWidth`/`StrikeoutColor` (Red default), `BackgroundColor`, `Tapped` + `ForceCaptureInput` (hit-tested through per-fragment `Rects`, ripple on the label, `OnSpanTapped` overridable), mixed sizes on one line share a baseline. TextSpan not ported: `ParagraphColor`, `CommandTapped`, per-span `LineSpacing`/`LineHeight`, `AutoFindFont`, `DrawingOffset`, `Shape`/glyph shaping. `CharacterSpacing` (C#: (value - 1) points after every glyph, measured, wrapped and cut at the drawn width), Chinese / Japanese line breaks between characters with kinsoku (C# FitAtBreak, `CanBreakInsideWord`). Not ported: `AutoFont`, `AutoSize`/`AutoSizeText`, `DropShadow*`, text `StrokeColor`/`StrokeWidth`/`StrokeGradient`, `GradientByLines`, `MonoForDigits`, `KeepSpacesOnLineBreaks`, `Format`, RTL/bidi, hyphenation, `SkiaRichLabel`/markdown. |
|
|
75
76
|
| `SkiaHotspot` | ported | Fill/Fill, `Tapped`, `Down`, `Up`, `LockPanning`, `TouchDown`; consumes only Tapped like the C# one. No `AnimationTapped`/ripple/shimmer. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type DrawingContext, SkiaControl } from "../core/SkiaControl";
|
|
2
2
|
import { ViewsAdapter } from "../core/ViewsAdapter";
|
|
3
|
-
import { type GridLength, type LayoutType, type MeasuringStrategy, type RecyclingTemplate, ScaledSize, type ShapeType, Thickness } from "../core/Types";
|
|
3
|
+
import { type GridLength, type LayoutType, type MeasuringStrategy, type RecyclingTemplate, SKRect, ScaledSize, type ShapeType, Thickness } from "../core/Types";
|
|
4
4
|
import { SkiaGridStructure } from "./GridStructure";
|
|
5
5
|
/**
|
|
6
6
|
* Mirrors DrawnUi SkiaLayout (Absolute / Column / Row / Wrap / Grid).
|
|
@@ -148,6 +148,17 @@ export declare class SkiaLayout extends SkiaControl {
|
|
|
148
148
|
* Split items; `DynamicColumns` lets a short last row spread over the width.
|
|
149
149
|
*/
|
|
150
150
|
private MeasureWrap;
|
|
151
|
+
private get IsMasonry();
|
|
152
|
+
/**
|
|
153
|
+
* C# MeasureMasonry / BuildMasonryLayout: Split columns of equal width, every item measured unbounded at the column
|
|
154
|
+
* width and put at the bottom of the shortest column (the first on a tie), so items of different heights leave no
|
|
155
|
+
* gaps; Spacing between columns and between items. Every item is laid out (no items window). A templated slot keeps
|
|
156
|
+
* the size of its item, so an appended page or an item that asked to be measured again (an image arrived) is the only
|
|
157
|
+
* one measured, and every item is placed again from the sizes known.
|
|
158
|
+
*/
|
|
159
|
+
private MeasureMasonry;
|
|
160
|
+
/** Masonry: where the slot of item `index` was arranged (pixels), also while no view shows it; undefined otherwise. */
|
|
161
|
+
GetMasonryItemRect(index: number): SKRect | undefined;
|
|
151
162
|
/** Port of C# MeasureGrid: build the structure in points, stretch the last track when the grid fills, remeasure at final cells. */
|
|
152
163
|
private MeasureGrid;
|
|
153
164
|
/** Templated Column: content = padding + sum of item heights + gaps; width = the constraint (cells fill). */
|
|
@@ -214,6 +225,10 @@ export declare class SkiaLayer extends SkiaLayout {
|
|
|
214
225
|
export declare class SkiaGrid extends SkiaLayout {
|
|
215
226
|
constructor();
|
|
216
227
|
}
|
|
228
|
+
/** SkiaLayout Type=Masonry + Split 2 + HorizontalOptions=Fill (DrawnUi alias): columns, each item to the shortest one. */
|
|
229
|
+
export declare class SkiaMasonry extends SkiaLayout {
|
|
230
|
+
constructor();
|
|
231
|
+
}
|
|
217
232
|
/** SkiaLayout Type=Wrap + HorizontalOptions=Fill (DrawnUi alias): responsive flow of fixed-size children. */
|
|
218
233
|
export declare class SkiaWrap extends SkiaLayout {
|
|
219
234
|
constructor();
|
|
@@ -144,7 +144,7 @@ export class SkiaLayout extends SkiaControl {
|
|
|
144
144
|
return;
|
|
145
145
|
const old = this.itemsSource;
|
|
146
146
|
this.itemsSource = value;
|
|
147
|
-
if (value && old && this.IsTemplated && !this.structureDirty && this.ApplyIncrementalChange(old, value)) {
|
|
147
|
+
if (value && old && this.IsTemplated && !this.IsMasonry && !this.structureDirty && this.ApplyIncrementalChange(old, value)) {
|
|
148
148
|
this.InvalidateMeasure();
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
@@ -308,8 +308,11 @@ export class SkiaLayout extends SkiaControl {
|
|
|
308
308
|
return this.views;
|
|
309
309
|
const n = this.itemsSource.length;
|
|
310
310
|
if (this.IsRecycledLayout) {
|
|
311
|
-
if (this.slots?.length !== n)
|
|
312
|
-
|
|
311
|
+
if (this.slots?.length !== n) {
|
|
312
|
+
// a masonry keeps the slots it has: an appended page (LoadMore) measures only the new items
|
|
313
|
+
const keep = this.IsMasonry ? this.slots ?? [] : [];
|
|
314
|
+
this.slots = Array.from({ length: n }, (_, i) => keep[i] ?? new TemplatedSlot(i, this.ChildrenFactory));
|
|
315
|
+
}
|
|
313
316
|
return this.slots;
|
|
314
317
|
}
|
|
315
318
|
const out = [];
|
|
@@ -483,6 +486,10 @@ export class SkiaLayout extends SkiaControl {
|
|
|
483
486
|
const s = this.MeasureWrap(w, scale);
|
|
484
487
|
return ScaledSize.FromPixels(s.w + px, s.h + py, scale);
|
|
485
488
|
}
|
|
489
|
+
if (this.IsMasonry) {
|
|
490
|
+
const s = this.MeasureMasonry(w, scale);
|
|
491
|
+
return ScaledSize.FromPixels(s.w + px, s.h + py, scale);
|
|
492
|
+
}
|
|
486
493
|
if (this.Type === "Grid") {
|
|
487
494
|
const s = this.MeasureGrid(w, h, scale);
|
|
488
495
|
return ScaledSize.FromPixels(s.w + px, s.h + py, scale);
|
|
@@ -573,6 +580,42 @@ export class SkiaLayout extends SkiaControl {
|
|
|
573
580
|
finishRow(true);
|
|
574
581
|
return { w: maxW, h: this.wrapSlots.length ? y + rowH : 0 };
|
|
575
582
|
}
|
|
583
|
+
get IsMasonry() { return this.Type === "Masonry"; }
|
|
584
|
+
/**
|
|
585
|
+
* C# MeasureMasonry / BuildMasonryLayout: Split columns of equal width, every item measured unbounded at the column
|
|
586
|
+
* width and put at the bottom of the shortest column (the first on a tie), so items of different heights leave no
|
|
587
|
+
* gaps; Spacing between columns and between items. Every item is laid out (no items window). A templated slot keeps
|
|
588
|
+
* the size of its item, so an appended page or an item that asked to be measured again (an image arrived) is the only
|
|
589
|
+
* one measured, and every item is placed again from the sizes known.
|
|
590
|
+
*/
|
|
591
|
+
MeasureMasonry(width, scale) {
|
|
592
|
+
const columns = Math.max(1, this.Split);
|
|
593
|
+
const spacing = Math.round(this.Spacing * scale);
|
|
594
|
+
const columnWidth = columns > 1 ? Math.round((width - (columns - 1) * this.Spacing * scale) / columns) : width;
|
|
595
|
+
const bottoms = new Array(columns).fill(0), rows = new Array(columns).fill(0);
|
|
596
|
+
this.wrapSlots = [];
|
|
597
|
+
for (const v of this.LayoutViews()) {
|
|
598
|
+
if (!v.IsVisible)
|
|
599
|
+
continue;
|
|
600
|
+
let column = 0;
|
|
601
|
+
for (let c = 1; c < columns; c++)
|
|
602
|
+
if (bottoms[c] < bottoms[column])
|
|
603
|
+
column = c;
|
|
604
|
+
const h = v.Measure(columnWidth, Infinity, scale).Pixels.Height;
|
|
605
|
+
const x = column * (columnWidth + spacing), y = bottoms[column] + (rows[column]++ > 0 ? spacing : 0);
|
|
606
|
+
this.wrapSlots.push({ view: v, x, y, w: columnWidth, h });
|
|
607
|
+
bottoms[column] = y + h;
|
|
608
|
+
}
|
|
609
|
+
const used = Math.min(columns, this.wrapSlots.length);
|
|
610
|
+
return { w: used > 0 ? used * columnWidth + (used - 1) * spacing : 0, h: Math.max(0, ...bottoms) };
|
|
611
|
+
}
|
|
612
|
+
/** Masonry: where the slot of item `index` was arranged (pixels), also while no view shows it; undefined otherwise. */
|
|
613
|
+
GetMasonryItemRect(index) {
|
|
614
|
+
if (!this.IsMasonry || !this.IsRecycledLayout)
|
|
615
|
+
return undefined;
|
|
616
|
+
const d = this.slots?.[index]?.Destination;
|
|
617
|
+
return d && d.Width > 0 ? d : undefined;
|
|
618
|
+
}
|
|
576
619
|
/** Port of C# MeasureGrid: build the structure in points, stretch the last track when the grid fills, remeasure at final cells. */
|
|
577
620
|
MeasureGrid(widthPx, heightPx, scale) {
|
|
578
621
|
const wPts = widthPx / scale, hPts = heightPx / scale;
|
|
@@ -735,7 +778,7 @@ export class SkiaLayout extends SkiaControl {
|
|
|
735
778
|
* The item's offset and height are real, not estimated (C# LastMeasuredIndexLocal >= index): MeasureVisible knows
|
|
736
779
|
* them once the measured prefix passed the item; the other strategies always do.
|
|
737
780
|
*/
|
|
738
|
-
IsItemMeasured(index) { return this.MeasureItemsStrategy !== "MeasureVisible" || index < this.mvMeasured; }
|
|
781
|
+
IsItemMeasured(index) { return this.IsMasonry || this.MeasureItemsStrategy !== "MeasureVisible" || index < this.mvMeasured; }
|
|
739
782
|
/** Pixel offset of item index from the top of the layout content (inside padding). */
|
|
740
783
|
GetItemOffsetPixels(index) {
|
|
741
784
|
const scale = this.RenderingScale;
|
|
@@ -783,7 +826,7 @@ export class SkiaLayout extends SkiaControl {
|
|
|
783
826
|
const inner = new SKRect(r.Left + p.Left * scale, r.Top + p.Top * scale, r.Right - p.Right * scale, r.Bottom - p.Bottom * scale);
|
|
784
827
|
const gap = this.Spacing * scale;
|
|
785
828
|
let cursor = this.Type === "Row" ? inner.Left : inner.Top;
|
|
786
|
-
if (this.IsWrapFlow) {
|
|
829
|
+
if (this.IsWrapFlow || this.IsMasonry) {
|
|
787
830
|
for (const s of this.wrapSlots)
|
|
788
831
|
s.view.Arrange(SKRect.Create(inner.Left + s.x, inner.Top + s.y, s.w, s.h), s.view.WidthRequest, s.view.HeightRequest, scale);
|
|
789
832
|
return;
|
|
@@ -1014,6 +1057,10 @@ export class SkiaLayer extends SkiaLayout {
|
|
|
1014
1057
|
export class SkiaGrid extends SkiaLayout {
|
|
1015
1058
|
constructor() { super(); this.Type = "Grid"; this.HorizontalOptions = "Fill"; }
|
|
1016
1059
|
}
|
|
1060
|
+
/** SkiaLayout Type=Masonry + Split 2 + HorizontalOptions=Fill (DrawnUi alias): columns, each item to the shortest one. */
|
|
1061
|
+
export class SkiaMasonry extends SkiaLayout {
|
|
1062
|
+
constructor() { super(); this.Type = "Masonry"; this.Split = 2; this.HorizontalOptions = "Fill"; }
|
|
1063
|
+
}
|
|
1017
1064
|
/** SkiaLayout Type=Wrap + HorizontalOptions=Fill (DrawnUi alias): responsive flow of fixed-size children. */
|
|
1018
1065
|
export class SkiaWrap extends SkiaLayout {
|
|
1019
1066
|
constructor() { super(); this.Type = "Wrap"; this.HorizontalOptions = "Fill"; }
|
|
@@ -871,10 +871,11 @@ export class SkiaScroll extends SkiaControl {
|
|
|
871
871
|
else {
|
|
872
872
|
// A templated Row / Wrap / Grid realizes every item (C# non-list layouts are not virtualized): read the cell's
|
|
873
873
|
// arranged rect, like C# reads the structure cell's Destination.
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
// a masonry's recycled slots know every item's place, shown or not
|
|
875
|
+
const r = layout.GetMasonryItemRect(i) ?? layout.ChildrenFactory.GetViewForIndex(i)?.DrawingRect;
|
|
876
|
+
if (!r)
|
|
876
877
|
return undefined;
|
|
877
|
-
const
|
|
878
|
+
const c = this.content.DrawingRect;
|
|
878
879
|
itemStart = (horizontal ? r.Left - c.Left : r.Top - c.Top) / scale;
|
|
879
880
|
itemSize = (horizontal ? r.Width : r.Height) / scale;
|
|
880
881
|
}
|
package/dist/core/Types.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export type TextTransform = "None" | "Lowercase" | "Uppercase" | "Titlecase";
|
|
|
75
75
|
/** DrawnUi DrawerDirection: the edge a SkiaDrawer slides from. */
|
|
76
76
|
export type DrawerDirection = "FromBottom" | "FromTop" | "FromLeft" | "FromRight";
|
|
77
77
|
/** DrawnUi LayoutType. */
|
|
78
|
-
export type LayoutType = "Absolute" | "Column" | "Row" | "Wrap" | "Grid";
|
|
78
|
+
export type LayoutType = "Absolute" | "Column" | "Row" | "Wrap" | "Grid" | "Masonry";
|
|
79
79
|
/** MAUI ReturnType: what the keyboard's return key means (SkiaEditor: Send submits a multiline editor). */
|
|
80
80
|
export type ReturnType = "Default" | "Done" | "Go" | "Next" | "Search" | "Send";
|
|
81
81
|
/** DrawnUi SkiaEditor.SkiaEditorKeyboard. */
|
package/dist/react/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare const SkiaStack: FC<LayoutProps<SkiaLayoutCtrl>>;
|
|
|
58
58
|
export declare const SkiaRow: FC<LayoutProps<SkiaLayoutCtrl>>;
|
|
59
59
|
export declare const SkiaLayer: FC<LayoutProps<SkiaLayoutCtrl>>;
|
|
60
60
|
export declare const SkiaWrap: FC<LayoutProps<SkiaLayoutCtrl>>;
|
|
61
|
+
export declare const SkiaMasonry: FC<LayoutProps<SkiaLayoutCtrl>>;
|
|
61
62
|
export declare const SkiaGrid: FC<LayoutProps<SkiaLayoutCtrl>>;
|
|
62
63
|
/** Grid drawing gradient separator lines in its spacing (C# SkiaDecoratedGrid). */
|
|
63
64
|
export declare const SkiaDecoratedGrid: FC<LayoutProps<SkiaDecoratedGridCtrl>>;
|
package/dist/react/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export const SkiaStack = "SkiaStack";
|
|
|
12
12
|
export const SkiaRow = "SkiaRow";
|
|
13
13
|
export const SkiaLayer = "SkiaLayer";
|
|
14
14
|
export const SkiaWrap = "SkiaWrap";
|
|
15
|
+
export const SkiaMasonry = "SkiaMasonry";
|
|
15
16
|
export const SkiaGrid = "SkiaGrid";
|
|
16
17
|
/** Grid drawing gradient separator lines in its spacing (C# SkiaDecoratedGrid). */
|
|
17
18
|
export const SkiaDecoratedGrid = "SkiaDecoratedGrid";
|
package/dist/react/reconciler.js
CHANGED
|
@@ -14,7 +14,7 @@ import { SkiaSlider } from "../controls/SkiaSlider";
|
|
|
14
14
|
import { SkiaCarousel } from "../controls/SkiaCarousel";
|
|
15
15
|
import { SkiaShaderCarousel } from "../controls/SkiaShaderCarousel";
|
|
16
16
|
import { SkiaDrawer } from "../controls/SkiaDrawer";
|
|
17
|
-
import { SkiaGrid, SkiaLayer, SkiaLayout, SkiaRow, SkiaStack, SkiaWrap } from "../controls/SkiaLayout";
|
|
17
|
+
import { SkiaGrid, SkiaLayer, SkiaLayout, SkiaMasonry, SkiaRow, SkiaStack, SkiaWrap } from "../controls/SkiaLayout";
|
|
18
18
|
import { SkiaHotspot } from "../controls/SkiaHotspot";
|
|
19
19
|
import { SkiaButton } from "../controls/SkiaButton";
|
|
20
20
|
import { SkiaImage } from "../controls/SkiaImage";
|
|
@@ -33,7 +33,7 @@ import { SkiaScroll } from "../controls/SkiaScroll";
|
|
|
33
33
|
import { SkiaFrame, SkiaShape } from "../controls/SkiaShape";
|
|
34
34
|
/** JSX tag name -> engine class. Add a control here to expose it to React. */
|
|
35
35
|
export const Registry = {
|
|
36
|
-
SkiaLayout, SkiaStack, SkiaRow, SkiaLayer, SkiaWrap, SkiaGrid, SkiaDecoratedGrid, SkiaBackdrop, SkiaEditor, SkiaSprite, SkiaSpriteSet, SkiaLabel, SkiaLabelFps, SkiaRichLabel, TextSpan, SkiaHotspot, SkiaButton, SkiaImage, SkiaImageTiles, SkiaSvg, SkiaLottie, SkiaGif, SkiaScroll, SkiaScrollBar, RefreshIndicator, SkiaShape, SkiaFrame,
|
|
36
|
+
SkiaLayout, SkiaStack, SkiaRow, SkiaLayer, SkiaWrap, SkiaMasonry, SkiaGrid, SkiaDecoratedGrid, SkiaBackdrop, SkiaEditor, SkiaSprite, SkiaSpriteSet, SkiaLabel, SkiaLabelFps, SkiaRichLabel, TextSpan, SkiaHotspot, SkiaButton, SkiaImage, SkiaImageTiles, SkiaSvg, SkiaLottie, SkiaGif, SkiaScroll, SkiaScrollBar, RefreshIndicator, SkiaShape, SkiaFrame,
|
|
37
37
|
SkiaSwitch, SkiaCheckbox, SkiaRadioButton, SkiaProgress, SkiaSlider, SkiaCarousel, SkiaShaderCarousel, SkiaDrawer,
|
|
38
38
|
};
|
|
39
39
|
const SKIP = new Set(["children", "key", "ref"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drawnui-react",
|
|
3
|
-
"version": "0.1.0-preview.
|
|
3
|
+
"version": "0.1.0-preview.23",
|
|
4
4
|
"description": "DrawnUi for React: the DrawnUi (.NET) drawn-UI engine in TypeScript on CanvasKit (Skia WASM). Same controls, same PascalCase API as DrawnUi.Net.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nick Kovalsky (AppoMobi)",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"check:shader-cache": "node dev/check.mjs dev/check-shader-cache.ts",
|
|
80
80
|
"check:shader-content": "node dev/check.mjs dev/check-shader-content.ts",
|
|
81
81
|
"check:backdrop": "node dev/check.mjs dev/check-backdrop.ts",
|
|
82
|
+
"check:masonry": "node dev/check.mjs dev/check-masonry.ts",
|
|
82
83
|
"site:extras": "node dev/site-extras.mjs dist/demo",
|
|
83
84
|
"build:lib": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json",
|
|
84
85
|
"prepublishOnly": "npm run build:lib",
|