@@ -397,6 +397,12 @@ var CCLScripting = function(workerUrl){
397397 this . DOM . innerHTML = "" ;
398398 this . DOM . appendChild ( _ ( "text" , text ) ) ;
399399 } ;
400+ this . __defineSetter__ ( "visible" , function ( f ) {
401+ this . DOM . style . visible = f ? "visible" : "hidden" ;
402+ } ) ;
403+ this . __defineGetter__ ( "visible" , function ( f ) {
404+ return this . DOM . style . visible === "hidden" ? false : true ;
405+ } ) ;
400406 this . __defineSetter__ ( "alpha" , function ( f ) {
401407 this . setAlpha ( f ) ;
402408 } ) ;
@@ -518,6 +524,12 @@ var CCLScripting = function(workerUrl){
518524 this . DOM . appendChild ( defaultEffects ) ;
519525 this . DOM . appendChild ( defaultGroupWithEffects ) ;
520526 /** PROPS **/
527+ this . __defineSetter__ ( "visible" , function ( f ) {
528+ this . DOM . style . visible = f ? "visible" : "hidden" ;
529+ } ) ;
530+ this . __defineGetter__ ( "visible" , function ( f ) {
531+ return this . DOM . style . visible === "hidden" ? false : true ;
532+ } ) ;
521533 this . __defineSetter__ ( "x" , function ( f ) {
522534 this . setX ( f ) ;
523535 } ) ;
@@ -949,6 +961,12 @@ var CCLScripting = function(workerUrl){
949961 data . scaleX = 1 ;
950962 data . scaleY = 1 ;
951963 data . children = [ ] ;
964+ this . __defineSetter__ ( "visible" , function ( f ) {
965+ this . DOM . style . visible = f ? "visible" : "hidden" ;
966+ } ) ;
967+ this . __defineGetter__ ( "visible" , function ( f ) {
968+ return this . DOM . style . visible === "hidden" ? false : true ;
969+ } ) ;
952970 this . __defineSetter__ ( "alpha" , function ( f ) {
953971 this . DOM . style . opacity = f ;
954972 } ) ;
@@ -1077,6 +1095,12 @@ var CCLScripting = function(workerUrl){
10771095
10781096 data . scaleX = 1 ;
10791097 data . scaleY = 1 ;
1098+ this . __defineSetter__ ( "visible" , function ( f ) {
1099+ this . DOM . style . visible = f ? "visible" : "hidden" ;
1100+ } ) ;
1101+ this . __defineGetter__ ( "visible" , function ( f ) {
1102+ return this . DOM . style . visible === "hidden" ? false : true ;
1103+ } ) ;
10801104 this . __defineGetter__ ( "transform" , function ( f ) {
10811105 return { } ;
10821106 } ) ;
0 commit comments