2323// PiuColor.c
2424
2525export function blendColors ( a , c1 , c2 ) @ "Piu_blendColors" ;
26+ global . blendColors = blendColors ;
2627export function hsl ( r , g , b ) @ "Piu_hsl" ;
28+ global . hsl = hsl ;
2729export function hsla ( r , g , b , a ) @ "Piu_hsla" ;
30+ global . hsla = hsla ;
2831export function rgb ( r , g , b ) @ "Piu_rgb" ;
32+ global . rgb = rgb ;
2933export function rgba ( r , g , b , a ) @ "Piu_rgba" ;
34+ global . rgba = rgba ;
3035
3136// PiuSkin.c
3237
@@ -66,6 +71,7 @@ export class Skin @ "PiuSkinDelete" {
6671 }
6772}
6873Object . freeze ( Skin . prototype ) ;
74+ global . Skin = Skin ;
6975
7076// PiuStyle.c
7177
@@ -105,6 +111,7 @@ export class Style @ "PiuStyleDelete" {
105111 }
106112}
107113Object . freeze ( Style . prototype ) ;
114+ global . Style = Style ;
108115
109116// BEHAVIOR
110117
@@ -113,6 +120,7 @@ export class Behavior {
113120 }
114121}
115122Object . freeze ( Behavior . prototype ) ;
123+ global . Behavior = Behavior ;
116124
117125// DISPATCH
118126
@@ -140,6 +148,7 @@ export function template(f) {
140148 result . template = template ;
141149 return result ;
142150}
151+ global . template = template ;
143152
144153export function Template ( prototype ) {
145154 let result = function ( $ , it = { } ) {
@@ -151,6 +160,7 @@ export function Template(prototype) {
151160 result . template = template ;
152161 return result ;
153162}
163+ global . Template = Template ;
154164
155165// CONTENTS
156166
@@ -235,6 +245,7 @@ export let Content = Template(Object.freeze({
235245 start ( ) @ "PiuContent_start" ,
236246 stop ( ) @ "PiuContent_stop" ,
237247} ) ) ;
248+ global . Content = Content ;
238249
239250// PiuLabel.c
240251
@@ -246,6 +257,7 @@ export let Label = Template(Object.freeze({
246257
247258 set string ( it ) @ "PiuLabel_set_string" ,
248259} ) ) ;
260+ global . Label = Label ;
249261
250262// PiuText.c
251263
@@ -267,6 +279,7 @@ export let Text = Template(Object.freeze({
267279 endBlock ( ) @ "PiuText_endBlock" ,
268280 endSpan ( ) @ "PiuText_endSpan" ,
269281} ) ) ;
282+ global . Text = Text ;
270283
271284export let Link = Template ( Object . freeze ( {
272285 __proto__ : proto ,
@@ -279,6 +292,7 @@ export let Link = Template(Object.freeze({
279292
280293 captureTouch ( id , x , y , ticks ) @ "PiuContent_captureTouch" ,
281294} ) ) ;
295+ global . Link = Link ;
282296
283297// PiuPort.c
284298
@@ -303,6 +317,7 @@ export let Port = Template(Object.freeze({
303317 pushClip ( x , y , w , h ) @ "PiuPort_pushClip" ,
304318 measureString ( string , style ) @ "PiuPort_measureString" ,
305319} ) ) ;
320+ global . Port = Port ;
306321
307322// CONTAINERS
308323
@@ -341,27 +356,31 @@ export let Container = Template(Object.freeze({
341356 run ( transition ) @ "PiuContainer_run" ,
342357 swap ( content0 , content1 ) @ "PiuContainer_swap" ,
343358} ) ) ;
359+ global . Container = Container ;
344360
345361// PiuColumn.c
346362
347363export let Column = Template ( Object . freeze ( {
348364 __proto__ : Container . prototype ,
349365 _create ( $ , it ) @ "PiuColumn_create" ,
350366} ) ) ;
367+ global . Column = Column ;
351368
352369// PiuLayout.c
353370
354371export let Layout = Template ( Object . freeze ( {
355372 __proto__ : Container . prototype ,
356373 _create ( $ , it ) @ "PiuLayout_create" ,
357374} ) ) ;
375+ global . Layout = Layout ;
358376
359377// PiuRow.c
360378
361379export let Row = Template ( Object . freeze ( {
362380 __proto__ : Container . prototype ,
363381 _create ( $ , it ) @ "PiuRow_create" ,
364382} ) ) ;
383+ global . Row = Row ;
365384
366385// PiuScroller.c
367386
@@ -382,13 +401,15 @@ export let Scroller = Template(Object.freeze({
382401 scrollBy ( dx , dy ) @ "PiuScroller_scrollBy" ,
383402 scrollTo ( x , y ) @ "PiuScroller_scrollTo" ,
384403} ) ) ;
404+ global . Scroller = Scroller ;
385405
386406// DEFER
387407
388408export class DeferLink @ "PiuDeferLinkDelete" {
389409 constructor ( ) @ "PiuDeferLinkCreate"
390410}
391411Object . freeze ( DeferLink . prototype ) ;
412+ global . DeferLink = DeferLink ;
392413
393414// TOUCH
394415
@@ -398,6 +419,7 @@ export class TouchLink @ "PiuTouchLinkDelete" {
398419 peek ( index ) @ "PiuTouchLink_peek"
399420}
400421Object . freeze ( TouchLink . prototype ) ;
422+ global . TouchLink = TouchLink ;
401423
402424// TRANSITION
403425
@@ -418,6 +440,7 @@ export class Transition @ "PiuTransitionDelete" {
418440 }
419441}
420442Object . freeze ( Transition . prototype ) ;
443+ global . Transition = Transition ;
421444
422445// LOCALS
423446
@@ -430,6 +453,7 @@ export class Locals @ "PiuLocalsDelete" {
430453 get ( id ) @ "PiuLocals_get"
431454}
432455Object . freeze ( Locals . prototype ) ;
456+ global . Locals = Locals ;
433457
434458Math . backEaseIn = function ( fraction ) @ "Math_backEaseIn" ;
435459Math . backEaseInOut = function ( fraction ) @ "Math_backEaseInOut" ;
0 commit comments