File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,13 @@ declare( 'LibCanvas.App.Dom',{
4646this . name = this . settings . get ( 'name' ) || '' ;
4747this . createSize ( ) ;
4848this . createElement ( ) ;
49- this . zIndex = this . settings . get ( 'zIndex' ) || 0 ;
5049} ,
5150
5251set zIndex ( z ) {
5352this . z = z ;
54- this . element . css ( 'zIndex' , z ) ;
53+ if ( ! this . container . isSimple ) {
54+ this . element . css ( 'zIndex' , z ) ;
55+ }
5556} ,
5657
5758get zIndex ( ) {
@@ -134,6 +135,8 @@ declare( 'LibCanvas.App.Dom',{
134135. attr ( { 'data-name' : this . name } )
135136. css ( { 'position' : 'absolute' } )
136137. appendTo ( this . container . bounds ) ;
138+
139+ this . zIndex = this . settings . get ( 'zIndex' ) || 0 ;
137140}
138141}
139142} ) ;
Original file line number Diff line number Diff line change @@ -28,13 +28,15 @@ declare( 'LibCanvas.App.Light',{
2828var mouse , mouseHandler ;
2929
3030this . settings = new Settings ( {
31- size : Size ( size ) ,
31+ size : Size . from ( size ) ,
3232name : 'main' ,
3333mouse : true ,
3434invoke : false ,
35+ simple : true ,
3536appendTo : 'body' ,
3637intersection : 'auto'
3738} ) . set ( settings || { } ) ;
39+
3840this . app = new App ( this . settings . subset ( [ 'size' , 'appendTo' , 'simple' ] ) ) ;
3941this . layer = this . app . createLayer ( this . settings . subset ( [ 'name' , 'invoke' , 'intersection' ] ) ) ;
4042if ( this . settings . get ( 'mouse' ) === true ) {
Original file line number Diff line number Diff line change @@ -492,12 +492,13 @@ declare( 'LibCanvas.App.Dom',{
492492this . name = this . settings . get ( 'name' ) || '' ;
493493this . createSize ( ) ;
494494this . createElement ( ) ;
495- this . zIndex = this . settings . get ( 'zIndex' ) || 0 ;
496495} ,
497496
498497set zIndex ( z ) {
499498this . z = z ;
500- this . element . css ( 'zIndex' , z ) ;
499+ if ( ! this . container . isSimple ) {
500+ this . element . css ( 'zIndex' , z ) ;
501+ }
501502} ,
502503
503504get zIndex ( ) {
@@ -580,6 +581,8 @@ declare( 'LibCanvas.App.Dom',{
580581. attr ( { 'data-name' : this . name } )
581582. css ( { 'position' : 'absolute' } )
582583. appendTo ( this . container . bounds ) ;
584+
585+ this . zIndex = this . settings . get ( 'zIndex' ) || 0 ;
583586}
584587}
585588} ) ;
@@ -6618,13 +6621,15 @@ declare( 'LibCanvas.App.Light',{
66186621var mouse , mouseHandler ;
66196622
66206623this . settings = new Settings ( {
6621- size : Size ( size ) ,
6624+ size : Size . from ( size ) ,
66226625name : 'main' ,
66236626mouse : true ,
66246627invoke : false ,
6628+ simple : true ,
66256629appendTo : 'body' ,
66266630intersection : 'auto'
66276631} ) . set ( settings || { } ) ;
6632+
66286633this . app = new App ( this . settings . subset ( [ 'size' , 'appendTo' , 'simple' ] ) ) ;
66296634this . layer = this . app . createLayer ( this . settings . subset ( [ 'name' , 'invoke' , 'intersection' ] ) ) ;
66306635if ( this . settings . get ( 'mouse' ) === true ) {
You can’t perform that action at this time.
0 commit comments