@@ -106,6 +106,24 @@ function RemoteFunctions(config = {}) {
106106 */
107107 var _editHandler ;
108108
109+ let remoteHighlight = {
110+ animateStartValue : {
111+ "background-color" : "rgba(0, 162, 255, 0.5)" ,
112+ "opacity" : 0
113+ } ,
114+ animateEndValue : {
115+ "background-color" : "rgba(0, 162, 255, 0)" ,
116+ "opacity" : 0.6
117+ } ,
118+ paddingStyling : {
119+ "background-color" : "rgba(200, 249, 197, 0.7)"
120+ } ,
121+ marginStyling : {
122+ "background-color" : "rgba(249, 204, 157, 0.7)"
123+ } ,
124+ borderColor : "rgba(200, 249, 197, 0.85)" ,
125+ showPaddingMargin : true
126+ } ;
109127 let strings = { } , icons = { } , cssStyles = { } ; // these will be injected below
110128 // the below code comment is replaced by added scripts for extensibility
111129 // DONT_STRIP_MINIFY:REPLACE_WITH_ADDED_REMOTE_CONSTANT_SCRIPTS
@@ -3816,7 +3834,7 @@ function RemoteFunctions(config = {}) {
38163834
38173835 var setVisibility = function ( el ) {
38183836 if (
3819- ! config . remoteHighlight . showPaddingMargin ||
3837+ ! remoteHighlight . showPaddingMargin ||
38203838 parseInt ( el . height , 10 ) <= 0 ||
38213839 parseInt ( el . width , 10 ) <= 0
38223840 ) {
@@ -3826,8 +3844,6 @@ function RemoteFunctions(config = {}) {
38263844 }
38273845 } ;
38283846
3829- var mainBoxStyles = config . remoteHighlight . stylesToSet ;
3830-
38313847 var paddingVisualisations = [
38323848 drawPaddingRect ( 'top' ) ,
38333849 drawPaddingRect ( 'right' ) ,
@@ -3864,11 +3880,11 @@ function RemoteFunctions(config = {}) {
38643880
38653881 setupVisualisations (
38663882 marginVisualisations ,
3867- config . remoteHighlight . marginStyling
3883+ remoteHighlight . marginStyling
38683884 ) ;
38693885 setupVisualisations (
38703886 paddingVisualisations ,
3871- config . remoteHighlight . paddingStyling
3887+ remoteHighlight . paddingStyling
38723888 ) ;
38733889
38743890 highlight . className = GLOBALS . HIGHLIGHT_CLASSNAME ;
@@ -3898,14 +3914,14 @@ function RemoteFunctions(config = {}) {
38983914 "border-left" : elementStyling . getPropertyValue ( 'border-left' ) ,
38993915 "border-top" : elementStyling . getPropertyValue ( 'border-top' ) ,
39003916 "border-bottom" : elementStyling . getPropertyValue ( 'border-bottom' ) ,
3901- "border-color" : config . remoteHighlight . borderColor
3917+ "border-color" : remoteHighlight . borderColor
39023918 } ;
39033919
3904- var mergedStyles = Object . assign ( { } , stylesToSet , config . remoteHighlight . stylesToSet ) ;
3920+ var mergedStyles = Object . assign ( { } , stylesToSet , remoteHighlight . stylesToSet ) ;
39053921
3906- var animateStartValues = config . remoteHighlight . animateStartValue ;
3922+ var animateStartValues = remoteHighlight . animateStartValue ;
39073923
3908- var animateEndValues = config . remoteHighlight . animateEndValue ;
3924+ var animateEndValues = remoteHighlight . animateEndValue ;
39093925
39103926 var transitionValues = {
39113927 "transition-property" : "opacity, background-color, transform" ,
0 commit comments