<commit_before>(function(BasicWidget) {

	// adding the list of attributes available in your property panel
	BasicWidget.addAttributes([{
 		'name':'data-width',
		'description':'Width',
  		'defaultValue': '250px'
	},{
 		'name':'data-height',
   		'description':'Height',
 		'defaultValue': '250px'
	}]);  
      
	// adding the action when we Resize the widget, so we will also update the 
	// property panel to reflect the current size of the widget  
	BasicWidget.on('Resize', function(event) {
		this.studioCss('height', event.size.height);
		this.studioCss('width', event.size.width); 
		this.studioVal('data-width', event.size.width + 'px');
		this.studioVal('data-height', event.size.height + 'px');	 	
		this.studioPanelRefresh();
	});
    
	// adding the action when the widget is displayed in the Wakanda Studio 
	BasicWidget.on('Display', function (attributes) {
		//display width and height
		this.studioCss('width', attributes['data-width']); 	
		this.studioCss('height', attributes['data-height']); 		  
	});

});

// For more information, refer to http://doc.wakanda.org/Wakanda0.DevBranch/help/Title/en/page3870.html.studioCss('height', attributes['data-height']); 		  
	});

})();
<commit_msg>Update designer.js<commit_after>(function(BasicWidget) {


});

// For more information, refer to http://doc.wakanda.org/Wakanda0.DevBranch/help/Title/en/page3870.html.studioCss('height', attributes['data-height']); 		  


{'fraction_non_alphanumeric': 0.16387726638772665, 'fraction_numerical': 0.011157601115760111, 'mean_word_length': 4.180505415162455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5670972', 'n_tokens_mistral': 501, 'n_tokens_neox': 472, 'n_words': 96}