@gjsify/example-dom-three-geometry-teapot 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
@@ -4312,4 +4312,4 @@ corresponding .blp file and regenerate this file with blueprint-compiler.
4312
4312
  </object>
4313
4313
  </property>
4314
4314
  </template>
4315
- </interface>`;function __assignType(e,t){return e.__type=t,e}var TeapotWindow=class extends l.ApplicationWindow{_demo=null;static{f.registerClass({GTypeName:`TeapotWindow`,Template:NA,InternalChildren:[`glAreaContainer`,`tessRow`,`lidRow`,`bodyRow`,`bottomRow`,`fitLidRow`,`nonblinnRow`,`shadingRow`,`splitView`,`sidebarToggleButton`,`pauseButton`]},this)}constructor(e){super({application:e}),this._tessRow.set_model(u.StringList.new(OA.map(String))),this._tessRow.set_selected(7),this._shadingRow.set_model(u.StringList.new([...kA])),this._shadingRow.set_selected(3);let t=new Er;t.set_hexpand(!0),t.set_vexpand(!0),t.installGlobals(),this._glAreaContainer.append(t),Object.defineProperty(globalThis,`innerWidth`,{get:()=>t.get_allocated_width(),configurable:!0}),Object.defineProperty(globalThis,`innerHeight`,{get:()=>t.get_allocated_height(),configurable:!0}),t.onReady(__assignType(e=>{t.grab_focus();let n=t.get_context();print(`Context version: OpenGL${n.get_use_es()?` ES`:``} ${n.get_version().join(`.`)}`),this._demo=start(e),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._tessRow.connect(`notify::selected`,()=>{e.effectController.newTess=OA[this._tessRow.selected],e.render()}),this._shadingRow.connect(`notify::selected`,()=>{e.effectController.newShading=kA[this._shadingRow.selected],e.render()}),this._lidRow.connect(`notify::active`,()=>{e.effectController.lid=this._lidRow.active,e.render()}),this._bodyRow.connect(`notify::active`,()=>{e.effectController.body=this._bodyRow.active,e.render()}),this._bottomRow.connect(`notify::active`,()=>{e.effectController.bottom=this._bottomRow.active,e.render()}),this._fitLidRow.connect(`notify::active`,()=>{e.effectController.fitLid=this._fitLidRow.active,e.render()}),this._nonblinnRow.connect(`notify::active`,()=>{e.effectController.nonblinn=this._nonblinnRow.active,e.render()})}static __type=[()=>l.ApplicationWindow,`_glAreaContainer`,`_tessRow`,`_lidRow`,`_bodyRow`,`_bottomRow`,`_fitLidRow`,`_nonblinnRow`,`_shadingRow`,`_splitView`,`_sidebarToggleButton`,`_pauseButton`,`TeapotDemo`,`_demo`,function(){return null},`application`,`constructor`,`demo`,`connectControls`,`TeapotWindow`,`P7!!3";!3#;!3$;!3%;!3&;!3';!3(;!3);!3*;!3+;!3,;P"w-,J3.;>/!P!20"01P"w-22"03;5w4`]};const PA=new l.Application({application_id:`gjsify.examples.three-geometry-teapot`,flags:t.ApplicationFlags.FLAGS_NONE});PA.connect(`startup`,()=>installDevtools(PA)),PA.connect(`activate`,()=>{let e=PA.get_active_window();e||=new TeapotWindow(PA),e.present()}),PA.run([]);
4315
+ </interface>`;function __assignType(e,t){return e.__type=t,e}var TeapotWindow=class extends l.ApplicationWindow{_demo=null;static{f.registerClass({GTypeName:`TeapotWindow`,Template:NA,InternalChildren:[`glAreaContainer`,`tessRow`,`lidRow`,`bodyRow`,`bottomRow`,`fitLidRow`,`nonblinnRow`,`shadingRow`,`splitView`,`sidebarToggleButton`,`pauseButton`]},this)}constructor(e){super({application:e}),this._tessRow.set_model(u.StringList.new(OA.map(String))),this._tessRow.set_selected(7),this._shadingRow.set_model(u.StringList.new([...kA])),this._shadingRow.set_selected(3);let t=new Er;t.set_hexpand(!0),t.set_vexpand(!0),t.installGlobals(),this._glAreaContainer.append(t),Object.defineProperty(globalThis,`innerWidth`,{get:()=>t.get_allocated_width(),configurable:!0}),Object.defineProperty(globalThis,`innerHeight`,{get:()=>t.get_allocated_height(),configurable:!0}),t.onReady(__assignType(e=>{t.grab_focus();let n=t.get_context();print(`Context version: OpenGL${n.get_use_es()?` ES`:``} ${n.get_version().join(`.`)}`),this._demo=start(e),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._tessRow.connect(`notify::selected`,()=>{e.effectController.newTess=OA[this._tessRow.selected],e.render()}),this._shadingRow.connect(`notify::selected`,()=>{e.effectController.newShading=kA[this._shadingRow.selected],e.render()}),this._lidRow.connect(`notify::active`,()=>{e.effectController.lid=this._lidRow.active,e.render()}),this._bodyRow.connect(`notify::active`,()=>{e.effectController.body=this._bodyRow.active,e.render()}),this._bottomRow.connect(`notify::active`,()=>{e.effectController.bottom=this._bottomRow.active,e.render()}),this._fitLidRow.connect(`notify::active`,()=>{e.effectController.fitLid=this._fitLidRow.active,e.render()}),this._nonblinnRow.connect(`notify::active`,()=>{e.effectController.nonblinn=this._nonblinnRow.active,e.render()})}static __type=[()=>l.ApplicationWindow,`_glAreaContainer`,`_tessRow`,`_lidRow`,`_bodyRow`,`_bottomRow`,`_fitLidRow`,`_nonblinnRow`,`_shadingRow`,`_splitView`,`_sidebarToggleButton`,`_pauseButton`,`TeapotDemo`,`_demo`,function(){return null},`application`,`constructor`,`demo`,`connectControls`,`TeapotWindow`,`P7!!3";!3#;!3$;!3%;!3&;!3';!3(;!3);!3*;!3+;!3,;P"w-,J3.;>/!P!20"01P"w-22"03;5w4`]};const PA=new l.Application({application_id:`gjsify.examples.three-geometry-teapot`,flags:t.ApplicationFlags.FLAGS_NONE});PA.connect(`startup`,()=>installDevtools(PA)),PA.connect(`activate`,()=>{let e=PA.get_active_window();e||=new TeapotWindow(PA),e.present()}),await PA.runAsync([]);