@gjsify/example-dom-three-postprocessing-pixel 0.19.0 → 0.20.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/gjs.js CHANGED
@@ -4480,4 +4480,4 @@ corresponding .blp file and regenerate this file with blueprint-compiler.
4480
4480
  </object>
4481
4481
  </property>
4482
4482
  </template>
4483
- </interface>`;function __assignType(e,t){return e.__type=t,e}var PixelWindow=class extends l.ApplicationWindow{_demo=null;static{f.registerClass({GTypeName:`PixelWindow`,Template:IA,InternalChildren:[`glAreaContainer`,`pixelSizeRow`,`normalEdgeRow`,`depthEdgeRow`,`pixelAlignRow`,`splitView`,`sidebarToggleButton`,`pauseButton`]},this)}constructor(t){super({application:t}),this._pixelSizeRow.set_adjustment(new u.Adjustment({lower:1,upper:16,step_increment:1,value:4})),this._normalEdgeRow.set_adjustment(new u.Adjustment({lower:0,upper:2,step_increment:.05,value:.3})),this._normalEdgeRow.set_digits(2),this._depthEdgeRow.set_adjustment(new u.Adjustment({lower:0,upper:1,step_increment:.05,value:.4})),this._depthEdgeRow.set_digits(2);let n=new Dr;n.set_hexpand(!0),n.set_vexpand(!0),n.installGlobals(),this._glAreaContainer.append(n),Object.defineProperty(globalThis,`innerWidth`,{get:()=>n.get_allocated_width(),configurable:!0}),Object.defineProperty(globalThis,`innerHeight`,{get:()=>n.get_allocated_height(),configurable:!0}),n.onReady(__assignType(t=>{n.grab_focus();let r=__assignType((e,n,r)=>{t.width=n,t.height=r},[`_widget`,`w`,`h`,``,`P#2!'2"'2#"/$`]);t.width=n.get_allocated_width(),t.height=n.get_allocated_height(),n.connect(`resize`,r);let i=`file://${e.path_get_dirname(e.filename_from_uri(import.meta.url)[0])}/`;this._demo=start(t,{assetBase:i}),this.connectControls(this._demo)},[`canvas`,``,`P"2!"/"`])),this._pauseButton.connect(`clicked`,()=>{this._demo&&(this._demo.isPaused?(this._demo.resume(),this._pauseButton.set_icon_name(`media-playback-pause-symbolic`),this._pauseButton.set_tooltip_text(`Pause Rendering`)):(this._demo.pause(),this._pauseButton.set_icon_name(`media-playback-start-symbolic`),this._pauseButton.set_tooltip_text(`Resume Rendering`)))})}connectControls(e){this._pixelSizeRow.connect(`notify::value`,()=>{e.effectController.pixelSize=this._pixelSizeRow.get_value()}),this._normalEdgeRow.connect(`notify::value`,()=>{e.effectController.normalEdgeStrength=this._normalEdgeRow.get_value()}),this._depthEdgeRow.connect(`notify::value`,()=>{e.effectController.depthEdgeStrength=this._depthEdgeRow.get_value()}),this._pixelAlignRow.connect(`notify::active`,()=>{e.effectController.pixelAlignedPanning=this._pixelAlignRow.active})}static __type=[()=>l.ApplicationWindow,`_glAreaContainer`,`_pixelSizeRow`,`_normalEdgeRow`,`_depthEdgeRow`,`_pixelAlignRow`,`_splitView`,`_sidebarToggleButton`,`_pauseButton`,`PixelDemo`,`_demo`,function(){return null},`application`,`constructor`,`demo`,`connectControls`,`PixelWindow`,`P7!!3";!3#;!3$;!3%;!3&;!3';!3(;!3);P"w*,J3+;>,!P!2-"0.P"w*2/"00;5w1`]};const LA=new l.Application({application_id:`gjsify.examples.three-postprocessing-pixel`,flags:t.ApplicationFlags.FLAGS_NONE});LA.connect(`startup`,()=>installDevtools(LA)),LA.connect(`activate`,()=>{let e=LA.get_active_window();e||=new PixelWindow(LA),e.present()}),LA.run([]);
4483
+ </interface>`;function __assignType(e,t){return e.__type=t,e}var PixelWindow=class extends l.ApplicationWindow{_demo=null;static{f.registerClass({GTypeName:`PixelWindow`,Template:IA,InternalChildren:[`glAreaContainer`,`pixelSizeRow`,`normalEdgeRow`,`depthEdgeRow`,`pixelAlignRow`,`splitView`,`sidebarToggleButton`,`pauseButton`]},this)}constructor(t){super({application:t}),this._pixelSizeRow.set_adjustment(new u.Adjustment({lower:1,upper:16,step_increment:1,value:4})),this._normalEdgeRow.set_adjustment(new u.Adjustment({lower:0,upper:2,step_increment:.05,value:.3})),this._normalEdgeRow.set_digits(2),this._depthEdgeRow.set_adjustment(new u.Adjustment({lower:0,upper:1,step_increment:.05,value:.4})),this._depthEdgeRow.set_digits(2);let n=new Dr;n.set_hexpand(!0),n.set_vexpand(!0),n.installGlobals(),this._glAreaContainer.append(n),Object.defineProperty(globalThis,`innerWidth`,{get:()=>n.get_allocated_width(),configurable:!0}),Object.defineProperty(globalThis,`innerHeight`,{get:()=>n.get_allocated_height(),configurable:!0}),n.onReady(__assignType(t=>{n.grab_focus();let r=__assignType((e,n,r)=>{t.width=n,t.height=r},[`_widget`,`w`,`h`,``,`P#2!'2"'2#"/$`]);t.width=n.get_allocated_width(),t.height=n.get_allocated_height(),n.connect(`resize`,r);let i=`file://${e.path_get_dirname(e.filename_from_uri(import.meta.url)[0])}/`;this._demo=start(t,{assetBase:i}),this.connectControls(this._demo)},[`canvas`,``,`P"2!"/"`])),this._pauseButton.connect(`clicked`,()=>{this._demo&&(this._demo.isPaused?(this._demo.resume(),this._pauseButton.set_icon_name(`media-playback-pause-symbolic`),this._pauseButton.set_tooltip_text(`Pause Rendering`)):(this._demo.pause(),this._pauseButton.set_icon_name(`media-playback-start-symbolic`),this._pauseButton.set_tooltip_text(`Resume Rendering`)))})}connectControls(e){this._pixelSizeRow.connect(`notify::value`,()=>{e.effectController.pixelSize=this._pixelSizeRow.get_value()}),this._normalEdgeRow.connect(`notify::value`,()=>{e.effectController.normalEdgeStrength=this._normalEdgeRow.get_value()}),this._depthEdgeRow.connect(`notify::value`,()=>{e.effectController.depthEdgeStrength=this._depthEdgeRow.get_value()}),this._pixelAlignRow.connect(`notify::active`,()=>{e.effectController.pixelAlignedPanning=this._pixelAlignRow.active})}static __type=[()=>l.ApplicationWindow,`_glAreaContainer`,`_pixelSizeRow`,`_normalEdgeRow`,`_depthEdgeRow`,`_pixelAlignRow`,`_splitView`,`_sidebarToggleButton`,`_pauseButton`,`PixelDemo`,`_demo`,function(){return null},`application`,`constructor`,`demo`,`connectControls`,`PixelWindow`,`P7!!3";!3#;!3$;!3%;!3&;!3';!3(;!3);P"w*,J3+;>,!P!2-"0.P"w*2/"00;5w1`]};const LA=new l.Application({application_id:`gjsify.examples.three-postprocessing-pixel`,flags:t.ApplicationFlags.FLAGS_NONE});LA.connect(`startup`,()=>installDevtools(LA)),LA.connect(`activate`,()=>{let e=LA.get_active_window();e||=new PixelWindow(LA),e.present()}),await LA.runAsync([]);