How to use setAttr method in Playwright Internal

Best JavaScript code snippet using playwright-internal

cak_pu2_pu3.js

Source:cak_pu2_pu3.js Github

copy

Full Screen

...165 setText('TVD_LESH_V_N_XP_HISTO_VALUE_12',getFltTag('TVD_LESH_V_N_XP_12').format(2,''));166 setText('TVD_LESH_V_N_XP_HISTO_VALUE_13',getFltTag('TVD_LESH_V_N_XP_13').format(2,''));167 setText('TVD_LESH_V_N_XP_HISTO_VALUE_14',getFltTag('TVD_LESH_V_N_XP_14').format(2,''));168 setText('TVD_LESH_V_N_XP_HISTO_VALUE_15',getFltTag('TVD_LESH_V_N_XP_15').format(2,''));169 setAttr('TVD_HORN_V_N_XP_HISTO_3','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_3')/50));170 setAttr('TVD_HORN_V_N_XP_HISTO_4','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_4')/50));171 setAttr('TVD_HORN_V_N_XP_HISTO_5','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_5')/50));172 setAttr('TVD_HORN_V_N_XP_HISTO_6','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_6')/50));173 setAttr('TVD_HORN_V_N_XP_HISTO_7','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_7')/50));174 setAttr('TVD_HORN_V_N_XP_HISTO_8','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_8')/50));175 setAttr('TVD_HORN_V_N_XP_HISTO_9','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_9')/50));176 setAttr('TVD_HORN_V_N_XP_HISTO_10','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_10')/50));177 setAttr('TVD_HORN_V_N_XP_HISTO_11','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_11')/50));178 setAttr('TVD_HORN_V_N_XP_HISTO_12','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_12')/50));179 setAttr('TVD_HORN_V_N_XP_HISTO_13','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_13')/50));180 setAttr('TVD_HORN_V_N_XP_HISTO_14','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_14')/50));181 setAttr('TVD_HORN_V_N_XP_HISTO_15','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_15')/50));182 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_3','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_3')/50));183 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_4','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_4')/50));184 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_5','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_5')/50));185 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_6','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_6')/50));186 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_7','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_7')/50));187 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_8','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_8')/50));188 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_9','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_9')/50));189 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_10','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_10')/50));190 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_11','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_11')/50));191 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_12','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_12')/50));192 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_13','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_13')/50));193 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_14','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_14')/50));194 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_15','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_15')/50));195 setAttr('TVD_LESH_V_N_XP_HISTO_3','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_3')/50));196 setAttr('TVD_LESH_V_N_XP_HISTO_4','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_4')/50));197 setAttr('TVD_LESH_V_N_XP_HISTO_5','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_5')/50));198 setAttr('TVD_LESH_V_N_XP_HISTO_6','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_6')/50));199 setAttr('TVD_LESH_V_N_XP_HISTO_7','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_7')/50));200 setAttr('TVD_LESH_V_N_XP_HISTO_8','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_8')/50));201 setAttr('TVD_LESH_V_N_XP_HISTO_9','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_9')/50));202 setAttr('TVD_LESH_V_N_XP_HISTO_10','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_10')/50));203 setAttr('TVD_LESH_V_N_XP_HISTO_11','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_11')/50));204 setAttr('TVD_LESH_V_N_XP_HISTO_12','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_12')/50));205 setAttr('TVD_LESH_V_N_XP_HISTO_13','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_13')/50));206 setAttr('TVD_LESH_V_N_XP_HISTO_14','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_14')/50));207 setAttr('TVD_LESH_V_N_XP_HISTO_15','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_15')/50));208 setText('TVD_HISTO_VALUE_3_29C',getFltTag('TVD_3_29C').format(2,''));209 setText('TVD_HISTO_VALUE_3_25C',getFltTag('TVD_3_25C').format(2,''));210 setText('TVD_HISTO_VALUE_3_21C',getFltTag('TVD_3_21C').format(2,''));211 setText('TVD_HISTO_VALUE_3_7C',getFltTag('TVD_3_7C').format(2,''));212 setText('TVD_HISTO_VALUE_3_2C',getFltTag('TVD_3_2C').format(2,''));213 setText('TVD_HISTO_VALUE_2_23C',getFltTag('TVD_2_23C').format(2,''));214 setText('TVD_HISTO_VALUE_2_17C',getFltTag('TVD_2_17C').format(2,''));215 setText('TVD_HISTO_VALUE_2_12C',getFltTag('TVD_2_12C').format(2,''));216 setText('TVD_HISTO_VALUE_2_9C',getFltTag('TVD_2_9C').format(2,''));217 setText('TVD_HISTO_VALUE_2_8C',getFltTag('TVD_2_8C').format(2,''));218 setText('TVD_HISTO_VALUE_2_18C',getFltTag('TVD_2_18C').format(2,''));219 setText('TVD_HISTO_VALUE_2_25C',getFltTag('TVD_2_25C').format(2,''));220 setText('TVD_HISTO_VALUE_2_3C',getFltTag('TVD_2_3C').format(2,''));221 setText('TVD_COL_HISTO_VALUE_2',getFltTag('TVD_COL_2').format(2,''));222 setText('TVD_COL_HISTO_VALUE_3',getFltTag('TVD_COL_3').format(2,''));223 setAttr('TVD_HISTO_3_29C','width',checkLimits(200*getFltTag('TVD_3_29C')/50));224 setAttr('TVD_HISTO_3_25C','width',checkLimits(200*getFltTag('TVD_3_25C')/50));225 setAttr('TVD_HISTO_3_21C','width',checkLimits(200*getFltTag('TVD_3_21C')/50));226 setAttr('TVD_HISTO_3_7C','width',checkLimits(200*getFltTag('TVD_3_7C')/50));227 setAttr('TVD_HISTO_3_2C','width',checkLimits(200*getFltTag('TVD_3_2C')/50));228 setAttr('TVD_HISTO_2_23C','width',checkLimits(200*getFltTag('TVD_2_23C')/50));229 setAttr('TVD_HISTO_2_17C','width',checkLimits(200*getFltTag('TVD_2_17C')/50));230 setAttr('TVD_HISTO_2_12C','width',checkLimits(200*getFltTag('TVD_2_12C')/50));231 setAttr('TVD_HISTO_2_9C','width',checkLimits(200*getFltTag('TVD_2_9C')/50));232 setAttr('TVD_HISTO_2_8C','width',checkLimits(200*getFltTag('TVD_2_8C')/50));233 setAttr('TVD_HISTO_2_18C','width',checkLimits(200*getFltTag('TVD_2_18C')/50));234 setAttr('TVD_HISTO_2_25C','width',checkLimits(200*getFltTag('TVD_2_25C')/50));235 setAttr('TVD_HISTO_2_3C','width',checkLimits(200*getFltTag('TVD_2_3C')/50));236 setAttr('TVD_COL_HISTO_2','width',checkLimits(200*getFltTag('TVD_COL_2')/50));237 setAttr('TVD_COL_HISTO_3','width',checkLimits(200*getFltTag('TVD_COL_3')/50));238 setText('FVD_HISTO_VALUE_3_29C',getFltTag('FVD_3_29C').format(2,''));239 setText('FVD_HISTO_VALUE_3_25C',getFltTag('FVD_3_25C').format(2,''));240 setText('FVD_HISTO_VALUE_3_21C',getFltTag('FVD_3_21C').format(2,''));241 setText('FVD_HISTO_VALUE_3_7C',getFltTag('FVD_3_7C').format(2,''));242 setText('FVD_HISTO_VALUE_3_2C',getFltTag('FVD_3_2C').format(2,''));243 setText('FVD_HISTO_VALUE_2_23C',getFltTag('FVD_2_23C').format(2,''));244 setText('FVD_HISTO_VALUE_2_17C',getFltTag('FVD_2_17C').format(2,''));245 setText('FVD_HISTO_VALUE_2_12C',getFltTag('FVD_2_12C').format(2,''));246 setText('FVD_HISTO_VALUE_2_9C',getFltTag('FVD_2_9C').format(2,''));247 setText('FVD_HISTO_VALUE_2_8C',getFltTag('FVD_2_8C').format(2,''));248 setText('FVD_HISTO_VALUE_2_18C',getFltTag('FVD_2_18C').format(2,''));249 setText('FVD_HISTO_VALUE_2_25C',getFltTag('FVD_2_25C').format(2,''));250 setText('FVD_HISTO_VALUE_2_3C',getFltTag('FVD_2_3C').format(2,''));251 setAttr('FVD_HISTO_3_29C','width',checkLimits(200*(getFltTag('FVD_3_29C')-0.4)/14.6));252 setAttr('FVD_HISTO_3_25C','width',checkLimits(200*(getFltTag('FVD_3_25C')-0.4)/14.6));253 setAttr('FVD_HISTO_3_21C','width',checkLimits(200*(getFltTag('FVD_3_21C')-0.4)/14.6));254 setAttr('FVD_HISTO_3_7C','width',checkLimits(200*(getFltTag('FVD_3_7C')-0.4)/14.6));255 setAttr('FVD_HISTO_3_2C','width',checkLimits(200*(getFltTag('FVD_3_2C')-0.4)/14.6));256 setAttr('FVD_HISTO_2_23C','width',checkLimits(200*(getFltTag('FVD_2_23C')-0.4)/14.6));257 setAttr('FVD_HISTO_2_17C','width',checkLimits(200*(getFltTag('FVD_2_17C')-0.4)/14.6));258 setAttr('FVD_HISTO_2_12C','width',checkLimits(200*(getFltTag('FVD_2_12C')-0.4)/14.6));259 setAttr('FVD_HISTO_2_9C','width',checkLimits(200*(getFltTag('FVD_2_9C')-0.4)/14.6));260 setAttr('FVD_HISTO_2_8C','width',checkLimits(200*(getFltTag('FVD_2_8C')-0.4)/14.6));261 setAttr('FVD_HISTO_2_18C','width',checkLimits(200*(getFltTag('FVD_2_18C')-0.4)/14.6));262 setAttr('FVD_HISTO_2_25C','width',checkLimits(200*(getFltTag('FVD_2_25C')-0.4)/14.6));263 setAttr('FVD_HISTO_2_3C','width',checkLimits(200*(getFltTag('FVD_2_3C')-0.4)/14.6));264 animateAlarmBackStroke('TVD_HORN_V_N_XP_3');265 animateAlarmBackStroke('TVD_HORN_V_N_XP_4');266 animateAlarmBackStroke('TVD_HORN_V_N_XP_5');267 animateAlarmBackStroke('TVD_HORN_V_N_XP_6');268 animateAlarmBackStroke('TVD_HORN_V_N_XP_7');269 animateAlarmBackStroke('TVD_HORN_V_N_XP_8');270 animateAlarmBackStroke('TVD_HORN_V_N_XP_9');271 animateAlarmBackStroke('TVD_HORN_V_N_XP_10');272 animateAlarmBackStroke('TVD_HORN_V_N_XP_11');273 animateAlarmBackStroke('TVD_HORN_V_N_XP_12');274 animateAlarmBackStroke('TVD_HORN_V_N_XP_13');275 animateAlarmBackStroke('TVD_HORN_V_N_XP_14');276 animateAlarmBackStroke('TVD_HORN_V_N_XP_15');277 animateAlarmBackStroke('TVD_HORN_N_LESH_V_XP_3');...

Full Screen

Full Screen

cak_pu4_pu5.js

Source:cak_pu4_pu5.js Github

copy

Full Screen

...150 setText('TVD_LESH_V_N_XP_HISTO_VALUE_23',getFltTag('TVD_LESH_V_N_XP_23').format(2,''));151 setText('TVD_LESH_V_N_XP_HISTO_VALUE_24',getFltTag('TVD_LESH_V_N_XP_24').format(2,''));152 setText('TVD_LESH_V_N_XP_HISTO_VALUE_25',getFltTag('TVD_LESH_V_N_XP_25').format(2,''));153 setText('TVD_LESH_V_N_XP_HISTO_VALUE_26',getFltTag('TVD_LESH_V_N_XP_26').format(2,''));154 setAttr('TVD_HORN_V_N_XP_HISTO_16','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_16')/50));155 setAttr('TVD_HORN_V_N_XP_HISTO_17','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_17')/50));156 setAttr('TVD_HORN_V_N_XP_HISTO_18','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_18')/50));157 setAttr('TVD_HORN_V_N_XP_HISTO_19','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_19')/50));158 setAttr('TVD_HORN_V_N_XP_HISTO_20','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_20')/50));159 setAttr('TVD_HORN_V_N_XP_HISTO_21','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_21')/50));160 setAttr('TVD_HORN_V_N_XP_HISTO_22','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_22')/50));161 setAttr('TVD_HORN_V_N_XP_HISTO_23','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_23')/50));162 setAttr('TVD_HORN_V_N_XP_HISTO_24','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_24')/50));163 setAttr('TVD_HORN_V_N_XP_HISTO_25','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_25')/50));164 setAttr('TVD_HORN_V_N_XP_HISTO_26','width',checkLimits(200*getFltTag('TVD_HORN_V_N_XP_26')/50));165 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_16','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_16')/50));166 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_17','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_17')/50));167 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_18','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_18')/50));168 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_19','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_19')/50));169 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_20','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_20')/50));170 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_21','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_21')/50));171 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_22','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_22')/50));172 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_23','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_23')/50));173 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_24','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_24')/50));174 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_25','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_25')/50));175 setAttr('TVD_HORN_N_LESH_V_XP_HISTO_26','width',checkLimits(200*getFltTag('TVD_HORN_N_LESH_V_XP_26')/50));176 setAttr('TVD_LESH_V_N_XP_HISTO_16','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_16')/50));177 setAttr('TVD_LESH_V_N_XP_HISTO_17','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_17')/50));178 setAttr('TVD_LESH_V_N_XP_HISTO_18','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_18')/50));179 setAttr('TVD_LESH_V_N_XP_HISTO_19','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_19')/50));180 setAttr('TVD_LESH_V_N_XP_HISTO_20','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_20')/50));181 setAttr('TVD_LESH_V_N_XP_HISTO_21','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_21')/50));182 setAttr('TVD_LESH_V_N_XP_HISTO_22','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_22')/50));183 setAttr('TVD_LESH_V_N_XP_HISTO_23','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_23')/50));184 setAttr('TVD_LESH_V_N_XP_HISTO_24','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_24')/50));185 setAttr('TVD_LESH_V_N_XP_HISTO_25','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_25')/50));186 setAttr('TVD_LESH_V_N_XP_HISTO_26','width',checkLimits(200*getFltTag('TVD_LESH_V_N_XP_26')/50));187 setText('TVD_HISTO_VALUE_5_13C',getFltTag('TVD_5_13C').format(2,''));188 setText('TVD_HISTO_VALUE_5_10C',getFltTag('TVD_5_10C').format(2,''));189 setText('TVD_HISTO_VALUE_5_7C',getFltTag('TVD_5_7C').format(2,''));190 setText('TVD_HISTO_VALUE_5_3C',getFltTag('TVD_5_3C').format(2,''));191 setText('TVD_HISTO_VALUE_4_30C',getFltTag('TVD_4_30C').format(2,''));192 setText('TVD_HISTO_VALUE_4_26C',getFltTag('TVD_4_26C').format(2,''));193 setText('TVD_HISTO_VALUE_4_23C',getFltTag('TVD_4_23C').format(2,''));194 setText('TVD_HISTO_VALUE_4_20C',getFltTag('TVD_4_20C').format(2,''));195 setText('TVD_HISTO_VALUE_4_10C',getFltTag('TVD_4_10C').format(2,''));196 setText('TVD_HISTO_VALUE_4_7C',getFltTag('TVD_4_7C').format(2,''));197 setText('TVD_HISTO_VALUE_4_3C',getFltTag('TVD_4_3C').format(2,''));198 setText('TVD_COL_HISTO_VALUE_4',getFltTag('TVD_COL_4').format(2,''));199 setText('TVD_COL_HISTO_VALUE_5',getFltTag('TVD_COL_5').format(2,''));200 setAttr('TVD_HISTO_5_13C','width',checkLimits(200*getFltTag('TVD_5_13C')/50));201 setAttr('TVD_HISTO_5_10C','width',checkLimits(200*getFltTag('TVD_5_10C')/50));202 setAttr('TVD_HISTO_5_7C','width',checkLimits(200*getFltTag('TVD_5_7C')/50));203 setAttr('TVD_HISTO_5_3C','width',checkLimits(200*getFltTag('TVD_5_3C')/50));204 setAttr('TVD_HISTO_4_30C','width',checkLimits(200*getFltTag('TVD_4_30C')/50));205 setAttr('TVD_HISTO_4_26C','width',checkLimits(200*getFltTag('TVD_4_26C')/50));206 setAttr('TVD_HISTO_4_23C','width',checkLimits(200*getFltTag('TVD_4_23C')/50));207 setAttr('TVD_HISTO_4_20C','width',checkLimits(200*getFltTag('TVD_4_20C')/50));208 setAttr('TVD_HISTO_4_10C','width',checkLimits(200*getFltTag('TVD_4_10C')/50));209 setAttr('TVD_HISTO_4_7C','width',checkLimits(200*getFltTag('TVD_4_7C')/50));210 setAttr('TVD_HISTO_4_3C','width',checkLimits(200*getFltTag('TVD_4_3C')/50));211 setAttr('TVD_COL_HISTO_4','width',checkLimits(200*getFltTag('TVD_COL_4')/50));212 setAttr('TVD_COL_HISTO_5','width',checkLimits(200*getFltTag('TVD_COL_5')/50));213 setText('FVD_HISTO_VALUE_5_13C',getFltTag('FVD_5_13C').format(2,''));214 setText('FVD_HISTO_VALUE_5_10C',getFltTag('FVD_5_10C').format(2,''));215 setText('FVD_HISTO_VALUE_5_7C',getFltTag('FVD_5_7C').format(2,''));216 setText('FVD_HISTO_VALUE_5_3C',getFltTag('FVD_5_3C').format(2,''));217 setText('FVD_HISTO_VALUE_4_30C',getFltTag('FVD_4_30C').format(2,''));218 setText('FVD_HISTO_VALUE_4_26C',getFltTag('FVD_4_26C').format(2,''));219 setText('FVD_HISTO_VALUE_4_23C',getFltTag('FVD_4_23C').format(2,''));220 setText('FVD_HISTO_VALUE_4_20C',getFltTag('FVD_4_20C').format(2,''));221 setText('FVD_HISTO_VALUE_4_10C',getFltTag('FVD_4_10C').format(2,''));222 setText('FVD_HISTO_VALUE_4_7C',getFltTag('FVD_4_7C').format(2,''));223 setText('FVD_HISTO_VALUE_4_3C',getFltTag('FVD_4_3C').format(2,''));224 setAttr('FVD_HISTO_5_13C','width',checkLimits(200*(getFltTag('FVD_5_13C')-0.4)/14.6));225 setAttr('FVD_HISTO_5_10C','width',checkLimits(200*(getFltTag('FVD_5_10C')-0.4)/14.6));226 setAttr('FVD_HISTO_5_7C','width',checkLimits(200*(getFltTag('FVD_5_7C')-0.4)/14.6));227 setAttr('FVD_HISTO_5_3C','width',checkLimits(200*(getFltTag('FVD_5_3C')-0.4)/14.6));228 setAttr('FVD_HISTO_4_30C','width',checkLimits(200*(getFltTag('FVD_4_30C')-0.4)/14.6));229 setAttr('FVD_HISTO_4_26C','width',checkLimits(200*(getFltTag('FVD_4_26C')-0.4)/14.6));230 setAttr('FVD_HISTO_4_23C','width',checkLimits(200*(getFltTag('FVD_4_23C')-0.4)/14.6));231 setAttr('FVD_HISTO_4_20C','width',checkLimits(200*(getFltTag('FVD_4_20C')-0.4)/14.6));232 setAttr('FVD_HISTO_4_10C','width',checkLimits(200*(getFltTag('FVD_4_10C')-0.4)/14.6));233 setAttr('FVD_HISTO_4_7C','width',checkLimits(200*(getFltTag('FVD_4_7C')-0.4)/14.6));234 setAttr('FVD_HISTO_4_3C','width',checkLimits(200*(getFltTag('FVD_4_3C')-0.4)/14.6));235 animateAlarmBackStroke('TVD_HORN_V_N_XP_16');236 animateAlarmBackStroke('TVD_HORN_V_N_XP_17');237 animateAlarmBackStroke('TVD_HORN_V_N_XP_18');238 animateAlarmBackStroke('TVD_HORN_V_N_XP_19');239 animateAlarmBackStroke('TVD_HORN_V_N_XP_20');240 animateAlarmBackStroke('TVD_HORN_V_N_XP_21');241 animateAlarmBackStroke('TVD_HORN_V_N_XP_22');242 animateAlarmBackStroke('TVD_HORN_V_N_XP_23');243 animateAlarmBackStroke('TVD_HORN_V_N_XP_24');244 animateAlarmBackStroke('TVD_HORN_V_N_XP_25');245 animateAlarmBackStroke('TVD_HORN_V_N_XP_26');246 animateAlarmBackStroke('TVD_HORN_N_LESH_V_XP_16');247 animateAlarmBackStroke('TVD_HORN_N_LESH_V_XP_17');248 animateAlarmBackStroke('TVD_HORN_N_LESH_V_XP_18');...

Full Screen

Full Screen

thpl.js

Source:thpl.js Github

copy

Full Screen

...87 setText('THPL_3',THPL_3.format(0,''));88 setText('THPL_4',THPL_4.format(0,''));89 setText('THPL_5',THPL_5.format(0,''));90 setText('THPL_6',THPL_6.format(0,''));91 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));92 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));93 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));94 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));95 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));96 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));97 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));98 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));99 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));100 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));101 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));102 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));103 setText('LABEL_1','ТХП1');104 setText('LABEL_2','ТХП2');105 setText('LABEL_3','ТХП3');106 setText('LABEL_4','ТХП4');107 setText('LABEL_5','ТХП5');108 setText('LABEL_6','ТХП6');109 animateAlarmStroke('THPL_1_BACK','THPL_1_1');110 animateAlarmStroke('THPL_2_BACK','THPL_1_2');111 animateAlarmStroke('THPL_3_BACK','THPL_1_3');112 animateAlarmStroke('THPL_4_BACK','THPL_1_4');113 animateAlarmStroke('THPL_5_BACK','THPL_1_5');114 animateAlarmStroke('THPL_6_BACK','THPL_1_6');115 animateAlarmFill('THPL_HIST_1','THPL_1_1');116 animateAlarmFill('THPL_HIST_2','THPL_1_2');117 animateAlarmFill('THPL_HIST_3','THPL_1_3');118 animateAlarmFill('THPL_HIST_4','THPL_1_4');119 animateAlarmFill('THPL_HIST_5','THPL_1_5');120 animateAlarmFill('THPL_HIST_6','THPL_1_6');121 break;122 case 1:123 animateButton('THPL_I_1',true);124 animateButton('THPL_I_2',false);125 animateButton('THPL_I_3',false);126 animateButton('THPL_I_4',false);127 animateButton('THPL_I_5',false);128 animateButton('THPL_I_6',false);129 var THPL_1=getFltTag('THPL_1_1');130 var THPL_2=getFltTag('THPL_1_2');131 var THPL_3=getFltTag('THPL_1_3');132 var THPL_4=getFltTag('THPL_1_4');133 var THPL_5=getFltTag('THPL_1_5');134 var THPL_6=getFltTag('THPL_1_6');135 setText('THPL_1',THPL_1.format(0,''));136 setText('THPL_2',THPL_2.format(0,''));137 setText('THPL_3',THPL_3.format(0,''));138 setText('THPL_4',THPL_4.format(0,''));139 setText('THPL_5',THPL_5.format(0,''));140 setText('THPL_6',THPL_6.format(0,''));141 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));142 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));143 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));144 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));145 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));146 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));147 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));148 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));149 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));150 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));151 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));152 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));153 setText('LABEL_2','ТХП2');154 setText('LABEL_3','ТХП3');155 setText('LABEL_4','ТХП4');156 setText('LABEL_5','ТХП5');157 setText('LABEL_6','ТХП6');158 animateAlarmStroke('THPL_1_BACK','THPL_1_1');159 animateAlarmStroke('THPL_2_BACK','THPL_1_2');160 animateAlarmStroke('THPL_3_BACK','THPL_1_3');161 animateAlarmStroke('THPL_4_BACK','THPL_1_4');162 animateAlarmStroke('THPL_5_BACK','THPL_1_5');163 animateAlarmStroke('THPL_6_BACK','THPL_1_6');164 animateAlarmFill('THPL_HIST_1','THPL_1_1');165 animateAlarmFill('THPL_HIST_2','THPL_1_2');166 animateAlarmFill('THPL_HIST_3','THPL_1_3');167 animateAlarmFill('THPL_HIST_4','THPL_1_4');168 animateAlarmFill('THPL_HIST_5','THPL_1_5');169 animateAlarmFill('THPL_HIST_6','THPL_1_6');170 break;171 case 2:172 animateButton('THPL_I_1',false);173 animateButton('THPL_I_2',true);174 animateButton('THPL_I_3',false);175 animateButton('THPL_I_4',false);176 animateButton('THPL_I_5',false);177 animateButton('THPL_I_6',false);178 var THPL_1=getFltTag('THPL_2_1');179 var THPL_2=getFltTag('THPL_2_2');180 var THPL_3=getFltTag('THPL_2_3');181 var THPL_4=getFltTag('THPL_2_4');182 var THPL_5=getFltTag('THPL_2_5');183 var THPL_6=getFltTag('THPL_2_6');184 setText('THPL_1',THPL_1.format(0,''));185 setText('THPL_2',THPL_2.format(0,''));186 setText('THPL_3',THPL_3.format(0,''));187 setText('THPL_4',THPL_4.format(0,''));188 setText('THPL_5',THPL_5.format(0,''));189 setText('THPL_6',THPL_6.format(0,''));190 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));191 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));192 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));193 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));194 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));195 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));196 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));197 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));198 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));199 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));200 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));201 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));202 setText('LABEL_1','ТХП7');203 setText('LABEL_2','ТХП8');204 setText('LABEL_3','ТХП9');205 setText('LABEL_4','ТХП10');206 setText('LABEL_5','ТХП11');207 setText('LABEL_6','ТХП12');208 animateAlarmStroke('THPL_1_BACK','THPL_2_1');209 animateAlarmStroke('THPL_2_BACK','THPL_2_2');210 animateAlarmStroke('THPL_3_BACK','THPL_2_3');211 animateAlarmStroke('THPL_4_BACK','THPL_2_4');212 animateAlarmStroke('THPL_5_BACK','THPL_2_5');213 animateAlarmStroke('THPL_6_BACK','THPL_2_6');214 animateAlarmFill('THPL_HIST_1','THPL_2_1');215 animateAlarmFill('THPL_HIST_2','THPL_2_2');216 animateAlarmFill('THPL_HIST_3','THPL_2_3');217 animateAlarmFill('THPL_HIST_4','THPL_2_4');218 animateAlarmFill('THPL_HIST_5','THPL_2_5');219 animateAlarmFill('THPL_HIST_6','THPL_2_6');220 break;221 case 3:222 animateButton('THPL_I_1',false);223 animateButton('THPL_I_2',false);224 animateButton('THPL_I_3',true);225 animateButton('THPL_I_4',false);226 animateButton('THPL_I_5',false);227 animateButton('THPL_I_6',false);228 var THPL_1=getFltTag('THPL_3_1');229 var THPL_2=getFltTag('THPL_3_2');230 var THPL_3=getFltTag('THPL_3_3');231 var THPL_4=getFltTag('THPL_3_4');232 var THPL_5=getFltTag('THPL_3_5');233 var THPL_6=getFltTag('THPL_3_6');234 setText('THPL_1',THPL_1.format(0,''));235 setText('THPL_2',THPL_2.format(0,''));236 setText('THPL_3',THPL_3.format(0,''));237 setText('THPL_4',THPL_4.format(0,''));238 setText('THPL_5',THPL_5.format(0,''));239 setText('THPL_6',THPL_6.format(0,''));240 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));241 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));242 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));243 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));244 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));245 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));246 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));247 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));248 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));249 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));250 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));251 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));252 setText('LABEL_1','ТХП631');253 setText('LABEL_2','ТХП632');254 setText('LABEL_3','ТХП633');255 setText('LABEL_4','ТХП634');256 setText('LABEL_5','ТХП635');257 setText('LABEL_6','ТХП636');258 animateAlarmStroke('THPL_1_BACK','THPL_3_1');259 animateAlarmStroke('THPL_2_BACK','THPL_3_2');260 animateAlarmStroke('THPL_3_BACK','THPL_3_3');261 animateAlarmStroke('THPL_4_BACK','THPL_3_4');262 animateAlarmStroke('THPL_5_BACK','THPL_3_5');263 animateAlarmStroke('THPL_6_BACK','THPL_3_6');264 animateAlarmFill('THPL_HIST_1','THPL_3_1');265 animateAlarmFill('THPL_HIST_2','THPL_3_2');266 animateAlarmFill('THPL_HIST_3','THPL_3_3');267 animateAlarmFill('THPL_HIST_4','THPL_3_4');268 animateAlarmFill('THPL_HIST_5','THPL_3_5');269 animateAlarmFill('THPL_HIST_6','THPL_3_6');270 break;271 case 4:272 animateButton('THPL_I_1',false);273 animateButton('THPL_I_2',false);274 animateButton('THPL_I_3',false);275 animateButton('THPL_I_4',true);276 animateButton('THPL_I_5',false);277 animateButton('THPL_I_6',false);278 var THPL_1=getFltTag('THPL_4_1');279 var THPL_2=getFltTag('THPL_4_2');280 var THPL_3=getFltTag('THPL_4_3');281 var THPL_4=getFltTag('THPL_4_4');282 var THPL_5=getFltTag('THPL_4_5');283 var THPL_6=getFltTag('THPL_4_6');284 setText('THPL_1',THPL_1.format(0,''));285 setText('THPL_2',THPL_2.format(0,''));286 setText('THPL_3',THPL_3.format(0,''));287 setText('THPL_4',THPL_4.format(0,''));288 setText('THPL_5',THPL_5.format(0,''));289 setText('THPL_6',THPL_6.format(0,''));290 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));291 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));292 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));293 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));294 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));295 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));296 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));297 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));298 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));299 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));300 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));301 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));302 setText('LABEL_1','ТХП641');303 setText('LABEL_2','ТХП642');304 setText('LABEL_3','ТХП643');305 setText('LABEL_4','ТХП644');306 setText('LABEL_5','ТХП645');307 setText('LABEL_6','ТХП646');308 animateAlarmStroke('THPL_1_BACK','THPL_4_1');309 animateAlarmStroke('THPL_2_BACK','THPL_4_2');310 animateAlarmStroke('THPL_3_BACK','THPL_4_3');311 animateAlarmStroke('THPL_4_BACK','THPL_4_4');312 animateAlarmStroke('THPL_5_BACK','THPL_4_5');313 animateAlarmStroke('THPL_6_BACK','THPL_4_6');314 animateAlarmFill('THPL_HIST_1','THPL_4_1');315 animateAlarmFill('THPL_HIST_2','THPL_4_2');316 animateAlarmFill('THPL_HIST_3','THPL_4_3');317 animateAlarmFill('THPL_HIST_4','THPL_4_4');318 animateAlarmFill('THPL_HIST_5','THPL_4_5');319 animateAlarmFill('THPL_HIST_6','THPL_4_6');320 break;321 case 5:322 animateButton('THPL_I_1',false);323 animateButton('THPL_I_2',false);324 animateButton('THPL_I_3',false);325 animateButton('THPL_I_4',false);326 animateButton('THPL_I_5',true);327 animateButton('THPL_I_6',false);328 var THPL_1=getFltTag('THPL_5_1');329 var THPL_2=getFltTag('THPL_5_2');330 var THPL_3=getFltTag('THPL_5_3');331 var THPL_4=getFltTag('THPL_5_4');332 var THPL_5=getFltTag('THPL_5_5');333 var THPL_6=getFltTag('THPL_5_6');334 setText('THPL_1',THPL_1.format(0,''));335 setText('THPL_2',THPL_2.format(0,''));336 setText('THPL_3',THPL_3.format(0,''));337 setText('THPL_4',THPL_4.format(0,''));338 setText('THPL_5',THPL_5.format(0,''));339 setText('THPL_6',THPL_6.format(0,''));340 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));341 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));342 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));343 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));344 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));345 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));346 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));347 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));348 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));349 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));350 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));351 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));352 setText('LABEL_1','ТХП651');353 setText('LABEL_2','ТХП652');354 setText('LABEL_3','ТХП653');355 setText('LABEL_4','ТХП654');356 setText('LABEL_5','ТХП655');357 setText('LABEL_6','ТХП656');358 animateAlarmStroke('THPL_1_BACK','THPL_5_1');359 animateAlarmStroke('THPL_2_BACK','THPL_5_2');360 animateAlarmStroke('THPL_3_BACK','THPL_5_3');361 animateAlarmStroke('THPL_4_BACK','THPL_5_4');362 animateAlarmStroke('THPL_5_BACK','THPL_5_5');363 animateAlarmStroke('THPL_6_BACK','THPL_5_6');364 animateAlarmFill('THPL_HIST_1','THPL_5_1');365 animateAlarmFill('THPL_HIST_2','THPL_5_2');366 animateAlarmFill('THPL_HIST_3','THPL_5_3');367 animateAlarmFill('THPL_HIST_4','THPL_5_4');368 animateAlarmFill('THPL_HIST_5','THPL_5_5');369 animateAlarmFill('THPL_HIST_6','THPL_5_6');370 break;371 case 6:372 animateButton('THPL_I_1',false);373 animateButton('THPL_I_2',false);374 animateButton('THPL_I_3',false);375 animateButton('THPL_I_4',false);376 animateButton('THPL_I_5',false);377 animateButton('THPL_I_6',true);378 var THPL_1=getFltTag('THPL_6_1');379 var THPL_2=getFltTag('THPL_6_2');380 var THPL_3=getFltTag('THPL_6_3');381 var THPL_4=getFltTag('THPL_6_4');382 var THPL_5=getFltTag('THPL_6_5');383 var THPL_6=getFltTag('THPL_6_6');384 setText('THPL_1',THPL_1.format(0,''));385 setText('THPL_2',THPL_2.format(0,''));386 setText('THPL_3',THPL_3.format(0,''));387 setText('THPL_4',THPL_4.format(0,''));388 setText('THPL_5',THPL_5.format(0,''));389 setText('THPL_6',THPL_6.format(0,''));390 setAttr('THPL_HIST_1','height',checkLimits(THPL_1));391 setAttr('THPL_HIST_2','height',checkLimits(THPL_2));392 setAttr('THPL_HIST_3','height',checkLimits(THPL_3));393 setAttr('THPL_HIST_4','height',checkLimits(THPL_4));394 setAttr('THPL_HIST_5','height',checkLimits(THPL_5));395 setAttr('THPL_HIST_6','height',checkLimits(THPL_6));396 setAttr('THPL_HIST_1','y',340+checkLimits(600-THPL_1));397 setAttr('THPL_HIST_2','y',340+checkLimits(600-THPL_2));398 setAttr('THPL_HIST_3','y',340+checkLimits(600-THPL_3));399 setAttr('THPL_HIST_4','y',340+checkLimits(600-THPL_4));400 setAttr('THPL_HIST_5','y',340+checkLimits(600-THPL_5));401 setAttr('THPL_HIST_6','y',340+checkLimits(600-THPL_6));402 setText('LABEL_1','ТХП661');403 setText('LABEL_2','ТХП662');404 setText('LABEL_3','ТХП663');405 setText('LABEL_4','ТХП664');406 setText('LABEL_5','ТХП665');407 setText('LABEL_6','ТХП666');408 animateAlarmStroke('THPL_1_BACK','THPL_6_1');409 animateAlarmStroke('THPL_2_BACK','THPL_6_2');410 animateAlarmStroke('THPL_3_BACK','THPL_6_3');411 animateAlarmStroke('THPL_4_BACK','THPL_6_4');412 animateAlarmStroke('THPL_5_BACK','THPL_6_5');413 animateAlarmStroke('THPL_6_BACK','THPL_6_6');414 animateAlarmFill('THPL_HIST_1','THPL_6_1');415 animateAlarmFill('THPL_HIST_2','THPL_6_2');...

Full Screen

Full Screen

cak_prog.js

Source:cak_prog.js Github

copy

Full Screen

...128 setText('TVD_COL_HISTO_VALUE_2',getFltTag('TVD_COL_2').format(2,''));129 setText('TVD_COL_HISTO_VALUE_3',getFltTag('TVD_COL_3').format(2,''));130 setText('TVD_COL_HISTO_VALUE_4',getFltTag('TVD_COL_4').format(2,''));131 setText('TVD_COL_HISTO_VALUE_5',getFltTag('TVD_COL_5').format(2,''));132 setAttr('TVD_HISTO_1_8C','width',checkLimits(200*getFltTag('TVD_1_8C')/50));133 setAttr('TVD_HISTO_1_9C','width',checkLimits(200*getFltTag('TVD_1_9C')/50));134 setAttr('TVD_HISTO_1_10C','width',checkLimits(200*getFltTag('TVD_1_10C')/50));135 setAttr('TVD_HISTO_1_11C','width',checkLimits(200*getFltTag('TVD_1_11C')/50));136 setAttr('TVD_HISTO_1_14C','width',checkLimits(200*getFltTag('TVD_1_14C')/50));137 setAttr('TVD_HISTO_2_28C','width',checkLimits(200*getFltTag('TVD_2_28C')/50));138 setAttr('TVD_HISTO_2_29C','width',checkLimits(200*getFltTag('TVD_2_29C')/50));139 setAttr('TVD_HISTO_3_16C','width',checkLimits(200*getFltTag('TVD_3_16C')/50));140 setAttr('TVD_HISTO_3_17C','width',checkLimits(200*getFltTag('TVD_3_17C')/50));141 setAttr('TVD_HISTO_3_18C','width',checkLimits(200*getFltTag('TVD_3_18C')/50));142 setAttr('TVD_HISTO_4_16C','width',checkLimits(200*getFltTag('TVD_4_16C')/50));143 setAttr('TVD_HISTO_4_17C','width',checkLimits(200*getFltTag('TVD_4_17C')/50));144 setAttr('TVD_HISTO_4_18C','width',checkLimits(200*getFltTag('TVD_4_18C')/50));145 setAttr('TVD_HISTO_5_16C','width',checkLimits(200*getFltTag('TVD_5_16C')/50));146 setAttr('TVD_HISTO_5_17C','width',checkLimits(200*getFltTag('TVD_5_17C')/50));147 setAttr('TVD_HISTO_5_18C','width',checkLimits(200*getFltTag('TVD_5_18C')/50));148 setAttr('TVD_HISTO_5_19C','width',checkLimits(200*getFltTag('TVD_5_19C')/50));149 setAttr('TVD_HISTO_5_24C','width',checkLimits(200*getFltTag('TVD_5_24C')/50));150 setAttr('TVD_HISTO_5_25C','width',checkLimits(200*getFltTag('TVD_5_25C')/50));151 setAttr('TVD_HISTO_5_26C','width',checkLimits(200*getFltTag('TVD_5_26C')/50));152 setAttr('TVD_COL_HISTO_1','width',checkLimits(200*getFltTag('TVD_COL_1')/50));153 setAttr('TVD_COL_HISTO_2','width',checkLimits(200*getFltTag('TVD_COL_2')/50));154 setAttr('TVD_COL_HISTO_3','width',checkLimits(200*getFltTag('TVD_COL_3')/50));155 setAttr('TVD_COL_HISTO_4','width',checkLimits(200*getFltTag('TVD_COL_4')/50));156 setAttr('TVD_COL_HISTO_5','width',checkLimits(200*getFltTag('TVD_COL_5')/50));157 setText('PVD_HISTO_VALUE_7_3C',getFltTag('PVD_7_3C').format(4,''));158 setText('PVD_HISTO_VALUE_7_6C',getFltTag('PVD_7_6C').format(4,''));159 setText('PVD_HISTO_VALUE_7_8C',getFltTag('PVD_7_8C').format(4,''));160 setText('PVD_HISTO_VALUE_7_10C',getFltTag('PVD_7_10C').format(4,''));161 setText('PVD_HISTO_VALUE_7_12C',getFltTag('PVD_7_12C').format(4,''));162 setText('PVD_HISTO_VALUE_8_4C',getFltTag('PVD_8_4C').format(4,''));163 setText('PVD_HISTO_VALUE_8_8C',getFltTag('PVD_8_8C').format(4,''));164 setText('PVD_HISTO_VALUE_8_12C',getFltTag('PVD_8_12C').format(4,''));165 setText('PVD_HISTO_VALUE_8_16C',getFltTag('PVD_8_16C').format(4,''));166 setText('PVD_HISTO_VALUE_8_20C',getFltTag('PVD_8_20C').format(4,''));167 setText('PVD_HISTO_VALUE_9_4C',getFltTag('PVD_9_4C').format(4,''));168 setText('PVD_HISTO_VALUE_9_8C',getFltTag('PVD_9_8C').format(4,''));169 setText('PVD_HISTO_VALUE_9_12C',getFltTag('PVD_9_12C').format(4,''));170 setText('PVD_HISTO_VALUE_9_16C',getFltTag('PVD_9_16C').format(4,''));171 setText('PVD_HISTO_VALUE_9_20C',getFltTag('PVD_9_20C').format(4,''));172 setText('PVD_HISTO_VALUE_10_4C',getFltTag('PVD_10_4C').format(4,''));173 setText('PVD_HISTO_VALUE_10_8C',getFltTag('PVD_10_8C').format(4,''));174 setText('PVD_HISTO_VALUE_10_18C',getFltTag('PVD_10_18C').format(4,''));175 setText('PVD_HISTO_VALUE_10_20C',getFltTag('PVD_10_20C').format(4,''));176 setText('PVD_HISTO_VALUE_10_22C',getFltTag('PVD_10_22C').format(4,''));177 setAttr('PVD_HISTO_7_3C','width',checkLimits(200*getFltTag('PVD_7_3C')/0.025));178 setAttr('PVD_HISTO_7_6C','width',checkLimits(200*getFltTag('PVD_7_6C')/0.025));179 setAttr('PVD_HISTO_7_8C','width',checkLimits(200*getFltTag('PVD_7_8C')/0.025));180 setAttr('PVD_HISTO_7_10C','width',checkLimits(200*getFltTag('PVD_7_10C')/0.025));181 setAttr('PVD_HISTO_7_12C','width',checkLimits(200*getFltTag('PVD_7_12C')/0.025));182 setAttr('PVD_HISTO_8_4C','width',checkLimits(200*getFltTag('PVD_8_4C')/0.025));183 setAttr('PVD_HISTO_8_8C','width',checkLimits(200*getFltTag('PVD_8_8C')/0.025));184 setAttr('PVD_HISTO_8_12C','width',checkLimits(200*getFltTag('PVD_8_12C')/0.025));185 setAttr('PVD_HISTO_8_16C','width',checkLimits(200*getFltTag('PVD_8_16C')/0.025));186 setAttr('PVD_HISTO_8_20C','width',checkLimits(200*getFltTag('PVD_8_20C')/0.025));187 setAttr('PVD_HISTO_9_4C','width',checkLimits(200*getFltTag('PVD_9_4C')/0.025));188 setAttr('PVD_HISTO_9_8C','width',checkLimits(200*getFltTag('PVD_9_8C')/0.025));189 setAttr('PVD_HISTO_9_12C','width',checkLimits(200*getFltTag('PVD_9_12C')/0.025));190 setAttr('PVD_HISTO_9_16C','width',checkLimits(200*getFltTag('PVD_9_16C')/0.025));191 setAttr('PVD_HISTO_9_20C','width',checkLimits(200*getFltTag('PVD_9_20C')/0.025));192 setAttr('PVD_HISTO_10_4C','width',checkLimits(200*getFltTag('PVD_10_4C')/0.025));193 setAttr('PVD_HISTO_10_8C','width',checkLimits(200*getFltTag('PVD_10_8C')/0.025));194 setAttr('PVD_HISTO_10_18C','width',checkLimits(200*getFltTag('PVD_10_18C')/0.025));195 setAttr('PVD_HISTO_10_20C','width',checkLimits(200*getFltTag('PVD_10_20C')/0.025));196 setAttr('PVD_HISTO_10_22C','width',checkLimits(200*getFltTag('PVD_10_22C')/0.025));197 animateAlarmBackStroke('TVD_COL_1');198 animateAlarmBackStroke('TVD_COL_2');199 animateAlarmBackStroke('TVD_COL_3');200 animateAlarmBackStroke('TVD_COL_4');201 animateAlarmBackStroke('TVD_COL_5');202 animateAlarmBackStroke('TVD_1_8C');203 animateAlarmBackStroke('TVD_1_9C');204 animateAlarmBackStroke('TVD_1_10C');205 animateAlarmBackStroke('TVD_1_11C');206 animateAlarmBackStroke('TVD_1_14C');207 animateAlarmBackStroke('TVD_2_28C');208 animateAlarmBackStroke('TVD_2_29C');209 animateAlarmBackStroke('TVD_3_16C');210 animateAlarmBackStroke('TVD_3_17C');...

Full Screen

Full Screen

validate-attr-value.js

Source:validate-attr-value.js Github

copy

Full Screen

2 'use strict';3 var fixture = document.getElementById('fixture');4 var shadowSupport = axe.testUtils.shadowSupport;5 var node;6 function setAttr(node, attrName, attrValue) {7 node.setAttribute(attrName, attrValue);8 axe.teardown();9 return axe.setup(node);10 }11 beforeEach(function() {12 node = document.createElement('div');13 });14 afterEach(function() {15 axe.reset();16 });17 it('should return true if there is no matching attribute (future-compat???)', function() {18 setAttr(node, 'unknown-attr', 'hello');19 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'unknown-attr'));20 });21 it('works on virtual nodes', function() {22 axe.configure({23 standards: {24 ariaAttrs: {25 cats: {26 type: 'nmtoken',27 values: ['valid'],28 allowEmpty: true29 }30 }31 }32 });33 var vNode = axe.testUtils.queryFixture(34 '<div id="target" cats="valid"></div>'35 );36 assert.isTrue(axe.commons.aria.validateAttrValue(vNode, 'cats'));37 });38 describe('allowEmpty', function() {39 beforeEach(function() {40 axe.configure({41 standards: {42 ariaAttrs: {43 cats: {44 type: 'nmtoken',45 values: ['valid'],46 allowEmpty: true47 },48 dogs: {49 type: 'idref',50 allowEmpty: true51 },52 goats: {53 type: 'idrefs',54 allowEmpty: true55 },56 cows: {57 type: 'string',58 allowEmpty: true59 },60 sheep: {61 type: 'decimal',62 allowEmpty: true63 },64 pigs: {65 type: 'int',66 allowEmpty: true67 },68 horses: {69 type: 'boolean',70 allowEmpty: true71 }72 }73 }74 });75 });76 it('returns true for empty attributes with allowEmpty:true', function() {77 setAttr(node, 'cats', '');78 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cats'));79 setAttr(node, 'dogs', '');80 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'dogs'));81 setAttr(node, 'goats', '');82 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'goats'));83 setAttr(node, 'sheep', '');84 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));85 setAttr(node, 'cows', '');86 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cows'));87 setAttr(node, 'pigs', '');88 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));89 setAttr(node, 'horses', '');90 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'horses'));91 });92 it('returns true for whitespace-only attributes with allowEmpty:true', function() {93 setAttr(node, 'cats', ' \r\n\t ');94 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cats'));95 setAttr(node, 'dogs', ' \r\n\t ');96 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'dogs'));97 setAttr(node, 'goats', ' \r\n\t ');98 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'goats'));99 setAttr(node, 'cows', ' \r\n\t ');100 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cows'));101 setAttr(node, 'pigs', ' \r\n\t ');102 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));103 setAttr(node, 'sheep', ' \r\n\t ');104 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));105 setAttr(node, 'horses', ' \r\n\t ');106 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'horses'));107 });108 });109 describe('schema defintions', function() {110 describe('enumerated values', function() {111 beforeEach(function() {112 axe.configure({113 standards: {114 ariaAttrs: {115 cats: {116 type: 'nmtoken',117 values: ['valid']118 }119 }120 }121 });122 });123 it('should validate against enumerated .values if present', function() {124 setAttr(node, 'cats', 'valid');125 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cats'));126 setAttr(node, 'cats', 'invalid');127 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'cats'));128 });129 it('should be case-insensitive for enumerated values', function() {130 setAttr(node, 'cats', 'vaLiD');131 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cats'));132 });133 it('should reject empty strings', function() {134 setAttr(node, 'cats', '');135 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'cats'));136 });137 });138 describe('idref', function() {139 beforeEach(function() {140 axe.configure({141 standards: {142 ariaAttrs: {143 dogs: {144 type: 'idref'145 }146 }147 }148 });149 });150 it('should validate the referenced node exists', function() {151 fixture.innerHTML = '<div id="target"></div>';152 setAttr(node, 'dogs', 'target');153 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'dogs'));154 setAttr(node, 'dogs', 'invalid');155 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'dogs'));156 });157 it('should work in shadow DOM', function() {158 var shadEl;159 if (shadowSupport.v1) {160 // shadow DOM v1 - note: v0 is compatible with this code, so no need161 // to specifically test this162 fixture.innerHTML = '<div></div>';163 makeShadowTreeVAV(fixture.firstChild);164 axe.setup(fixture);165 shadEl = fixture.firstChild.shadowRoot.querySelector('input#myinput');166 assert.isTrue(167 axe.commons.aria.validateAttrValue(shadEl, 'aria-labelledby')168 );169 shadEl = fixture.firstChild.shadowRoot.querySelector('input#invalid');170 assert.isFalse(171 axe.commons.aria.validateAttrValue(shadEl, 'aria-labelledby')172 );173 }174 });175 it('returns false if empty without allowEmpty: true', function() {176 setAttr(node, 'dogs', '');177 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'dogs'));178 });179 });180 describe('idrefs', function() {181 beforeEach(function() {182 axe.configure({183 standards: {184 ariaAttrs: {185 goats: {186 type: 'idrefs'187 }188 }189 }190 });191 });192 it('should return false when a single referenced node is not found', function() {193 setAttr(node, 'goats', 'invalid');194 // target2 not found195 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'goats'));196 });197 it('should return false when no referenced element is found', function() {198 fixture.innerHTML = '<div id="target"></div>';199 setAttr(node, 'goats', 'target2 target3');200 // target2 not found201 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'goats'));202 });203 it('should return true when at least one referenced element is found', function() {204 fixture.innerHTML = '<div id="target"></div>';205 setAttr(node, 'goats', 'target target2');206 // target2 not found207 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'goats'));208 });209 it('should return true when all targets are found', function() {210 fixture.innerHTML = '<div id="target"></div><div id="target2"></div>';211 setAttr(node, 'goats', 'target target2');212 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'goats'));213 });214 it('should not fail on weird whitespace', function() {215 fixture.innerHTML = '<div id="target"></div><div id="target2"></div>';216 setAttr(node, 'goats', ' \t \ttarget \t target2 ');217 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'goats'));218 });219 it('returns false if empty without allowEmpty: true', function() {220 setAttr(node, 'goats', '');221 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'goats'));222 });223 });224 describe('string', function() {225 beforeEach(function() {226 axe.configure({227 standards: {228 ariaAttrs: {229 cows: {230 type: 'string'231 }232 }233 }234 });235 });236 it('returns true for non-empty strings', function() {237 setAttr(node, 'cows', 'hi');238 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'cows'));239 });240 it('returns false for non-empty strings without allowEmpty:true', function() {241 setAttr(node, 'cows', '');242 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'cows'));243 });244 });245 describe('decimal', function() {246 beforeEach(function() {247 axe.configure({248 standards: {249 ariaAttrs: {250 sheep: {251 type: 'decimal'252 }253 }254 }255 });256 });257 it('should allow, but not require, a preceeding sign', function() {258 setAttr(node, 'sheep', '+1.12');259 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));260 setAttr(node, 'sheep', '-1.12');261 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));262 setAttr(node, 'sheep', '1.12');263 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));264 });265 it('should make the decimal separator optional', function() {266 setAttr(node, 'sheep', '+1');267 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));268 setAttr(node, 'sheep', '-1');269 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));270 setAttr(node, 'sheep', '1');271 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));272 });273 it('should make the whole number optional', function() {274 setAttr(node, 'sheep', '+.1');275 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));276 setAttr(node, 'sheep', '-.1');277 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));278 setAttr(node, 'sheep', '.1');279 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));280 });281 it('should make the right-side optional', function() {282 setAttr(node, 'sheep', '+1.');283 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));284 setAttr(node, 'sheep', '-1.');285 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));286 setAttr(node, 'sheep', '1.');287 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'sheep'));288 });289 it('should validate the entire string', function() {290 setAttr(node, 'sheep', ' +1.12 ');291 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));292 setAttr(node, 'sheep', 'invalid +1.12');293 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));294 setAttr(node, 'sheep', '+1.12 invalid');295 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));296 });297 it('should only allow for numbers', function() {298 setAttr(node, 'sheep', '+a.12');299 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));300 setAttr(node, 'sheep', '+1.b');301 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));302 setAttr(node, 'sheep', 'b1.1');303 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));304 });305 it('should require at least one number', function() {306 setAttr(node, 'sheep', '+.');307 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));308 setAttr(node, 'sheep', '-.');309 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));310 setAttr(node, 'sheep', '+');311 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));312 setAttr(node, 'sheep', '-');313 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));314 setAttr(node, 'sheep', '.');315 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));316 setAttr(node, 'sheep', '');317 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));318 });319 it('returns false for empty strings without allowEmpty:true', function() {320 setAttr(node, 'sheep', '');321 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'sheep'));322 });323 });324 describe('int', function() {325 beforeEach(function() {326 axe.configure({327 standards: {328 ariaAttrs: {329 pigs: {330 type: 'int'331 }332 }333 }334 });335 });336 it('should only allow for numbers by an optional preceding sign', function() {337 setAttr(node, 'pigs', '+1234234');338 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));339 setAttr(node, 'pigs', '-137456745');340 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));341 setAttr(node, 'pigs', '1234523452');342 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));343 });344 it('should return true for value greater than or equal to minValue', function() {345 axe.configure({346 standards: {347 ariaAttrs: {348 pigs: {349 type: 'int',350 minValue: -1351 }352 }353 }354 });355 setAttr(node, 'pigs', '-1');356 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));357 setAttr(node, 'pigs', '0');358 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));359 setAttr(node, 'pigs', '1000');360 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'pigs'));361 });362 it('returns false for empty strings without allowEmpty:true', function() {363 setAttr(node, 'pigs', '');364 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'pigs'));365 });366 it('should return false for value less than the minValue', function() {367 axe.configure({368 standards: {369 ariaAttrs: {370 pigs: {371 type: 'int',372 minValue: 0373 }374 }375 }376 });377 setAttr(node, 'pigs', '-1');378 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'pigs'));379 });380 });381 describe('boolean', function() {382 beforeEach(function() {383 axe.configure({384 standards: {385 ariaAttrs: {386 horses: {387 type: 'boolean'388 }389 }390 }391 });392 });393 it('returns true for boolean value', function() {394 setAttr(node, 'horses', 'true');395 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'horses'));396 setAttr(node, 'horses', 'false');397 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'horses'));398 });399 it('should be case-insensitive', function() {400 setAttr(node, 'horses', 'trUE');401 assert.isTrue(axe.commons.aria.validateAttrValue(node, 'horses'));402 });403 it('returns false for non-boolean values', function() {404 setAttr(node, 'horses', 'hi');405 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'horses'));406 setAttr(node, 'horses', '1');407 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'horses'));408 });409 it('returns false for non-empty strings without allowEmpty:true', function() {410 setAttr(node, 'horses', '');411 assert.isFalse(axe.commons.aria.validateAttrValue(node, 'horses'));412 });413 });414 });415});416function makeShadowTreeVAV(node) {417 'use strict';418 var root = node.attachShadow({ mode: 'open' });419 var div = document.createElement('div');420 div.className = 'parent';421 root.appendChild(div);422 div.appendChild(createContentVAV());423}424function createContentVAV() {...

Full Screen

Full Screen

prog.js

Source:prog.js Github

copy

Full Screen

...101 setText('PPROG_17',PPROG_17.format(0,''));102 setText('PPROG_18',PPROG_18.format(0,''));103 setText('PPROG_19',PPROG_19.format(0,''));104 setText('PPROG_20',PPROG_20.format(0,''));105 setAttr('PPROG_1_G','height',checkLimits(200*(PPROG_1+125)/250));106 setAttr('PPROG_1_G','y',154.97693+checkLimits(200*(1-(PPROG_1+125)/250)));107 setAttr('PPROG_2_G','height',checkLimits(200*(PPROG_2+125)/250));108 setAttr('PPROG_2_G','y',154.97693+checkLimits(200*(1-(PPROG_2+125)/250)));109 setAttr('PPROG_3_G','height',checkLimits(200*(PPROG_3+125)/250));110 setAttr('PPROG_3_G','y',154.97693+checkLimits(200*(1-(PPROG_3+125)/250)));111 setAttr('PPROG_4_G','height',checkLimits(200*(PPROG_4+125)/250));112 setAttr('PPROG_4_G','y',154.97693+checkLimits(200*(1-(PPROG_4+125)/250)));113 setAttr('PPROG_5_G','height',checkLimits(200*(PPROG_5+125)/250));114 setAttr('PPROG_5_G','y',154.97693+checkLimits(200*(1-(PPROG_5+125)/250)));115 setAttr('PPROG_6_G','height',checkLimits(200*(PPROG_6+125)/250));116 setAttr('PPROG_6_G','y',154.97693+checkLimits(200*(1-(PPROG_6+125)/250)));117 setAttr('PPROG_7_G','height',checkLimits(200*(PPROG_7+125)/250));118 setAttr('PPROG_7_G','y',154.97693+checkLimits(200*(1-(PPROG_7+125)/250)));119 setAttr('PPROG_8_G','height',checkLimits(200*(PPROG_8+125)/250));120 setAttr('PPROG_8_G','y',154.97693+checkLimits(200*(1-(PPROG_8+125)/250)));121 setAttr('PPROG_9_G','height',checkLimits(200*(PPROG_9+125)/250));122 setAttr('PPROG_9_G','y',154.97693+checkLimits(200*(1-(PPROG_9+125)/250)));123 setAttr('PPROG_10_G','height',checkLimits(200*(PPROG_10+125)/250));124 setAttr('PPROG_10_G','y',154.97693+checkLimits(200*(1-(PPROG_10+125)/250)));125 setAttr('PPROG_11_G','height',checkLimits(200*(PPROG_11+125)/250));126 setAttr('PPROG_11_G','y',154.97693+checkLimits(200*(1-(PPROG_11+125)/250)));127 setAttr('PPROG_12_G','height',checkLimits(200*(PPROG_12+125)/250));128 setAttr('PPROG_12_G','y',154.97693+checkLimits(200*(1-(PPROG_12+125)/250)));129 setAttr('PPROG_13_G','height',checkLimits(200*(PPROG_13+125)/250));130 setAttr('PPROG_13_G','y',154.97693+checkLimits(200*(1-(PPROG_13+125)/250)));131 setAttr('PPROG_14_G','height',checkLimits(200*(PPROG_14+125)/250));132 setAttr('PPROG_14_G','y',154.97693+checkLimits(200*(1-(PPROG_14+125)/250)));133 setAttr('PPROG_15_G','height',checkLimits(200*(PPROG_15+125)/250));134 setAttr('PPROG_15_G','y',154.97693+checkLimits(200*(1-(PPROG_15+125)/250)));135 setAttr('PPROG_16_G','height',checkLimits(200*(PPROG_16+125)/250));136 setAttr('PPROG_16_G','y',154.97693+checkLimits(200*(1-(PPROG_16+125)/250)));137 setAttr('PPROG_17_G','height',checkLimits(200*(PPROG_17+125)/250));138 setAttr('PPROG_17_G','y',154.97693+checkLimits(200*(1-(PPROG_17+125)/250)));139 setAttr('PPROG_18_G','height',checkLimits(200*(PPROG_18+125)/250));140 setAttr('PPROG_18_G','y',154.97693+checkLimits(200*(1-(PPROG_18+125)/250)));141 setAttr('PPROG_19_G','height',checkLimits(200*(PPROG_19+125)/250));142 setAttr('PPROG_19_G','y',154.97693+checkLimits(200*(1-(PPROG_19+125)/250)));143 setAttr('PPROG_20_G','height',checkLimits(200*(PPROG_20+125)/250));144 setAttr('PPROG_20_G','y',154.97693+checkLimits(200*(1-(PPROG_20+125)/250)));145 animatePressure('PPROG_1_G',PPROG_1);146 animatePressure('PPROG_2_G',PPROG_2);147 animatePressure('PPROG_3_G',PPROG_3);148 animatePressure('PPROG_4_G',PPROG_4);149 animatePressure('PPROG_5_G',PPROG_5);150 animatePressure('PPROG_6_G',PPROG_6);151 animatePressure('PPROG_7_G',PPROG_7);152 animatePressure('PPROG_8_G',PPROG_8);153 animatePressure('PPROG_9_G',PPROG_9);154 animatePressure('PPROG_10_G',PPROG_10);155 animatePressure('PPROG_11_G',PPROG_11);156 animatePressure('PPROG_12_G',PPROG_12);157 animatePressure('PPROG_13_G',PPROG_13);158 animatePressure('PPROG_14_G',PPROG_14);...

Full Screen

Full Screen

_MayaExporter.js

Source:_MayaExporter.js Github

copy

Full Screen

1Clazz.declarePackage ("J.export");2Clazz.load (["J.export.__CartesianExporter"], "J.export._MayaExporter", null, function () {3c$ = Clazz.decorateAsClass (function () {4this.nBalls = 0;5this.nCyl = 0;6this.name = null;7this.id = null;8Clazz.instantialize (this, arguments);9}, J["export"], "_MayaExporter", J["export"].__CartesianExporter);10Clazz.makeConstructor (c$, 11function () {12Clazz.superConstructor (this, J["export"]._MayaExporter, []);13this.commentChar = "// ";14});15Clazz.overrideMethod (c$, "outputHeader", 16function () {17this.output ("// Maya ASCII 8.5 scene\n");18this.output ("// Name: ball_stripped.ma\n");19this.output ("// Last modified: Thu, Jul 5, 2007 10:25:55 PM\n");20this.output ("// Codeset: UTF-8\n");21this.output ("requires maya \"8.5\";\n");22this.output ("currentUnit -l centimeter -a degree -t film;\n");23this.output ("fileInfo \"application\" \"maya\";\n");24this.output ("fileInfo \"product\" \"Maya Unlimited 8.5\";\n");25this.output ("fileInfo \"version\" \"8.5\";\n");26this.output ("fileInfo \"cutIdentifier\" \"200612170012-692032\";\n");27this.output ("fileInfo \"osv\" \"Mac OS X 10.4.9\"; \n");28});29Clazz.defineMethod (c$, "addAttr", 30 function () {31this.output (" setAttr -k off \".v\";\n");32this.output (" setAttr \".vir\" yes;\n");33this.output (" setAttr \".vif\" yes;\n");34this.output (" setAttr \".tw\" yes;\n");35this.output (" setAttr \".covm[0]\" 0 1 1;\n");36this.output (" setAttr \".cdvm[0]\" 0 1 1;\n");37});38Clazz.defineMethod (c$, "addConnect", 39 function () {40this.output (" connectAttr \"make" + this.name + ".os\" \"" + this.id + ".cr\";\n");41this.output ("connectAttr \"" + this.id + ".iog\" \":initialShadingGroup.dsm\" -na;\n");42});43Clazz.defineMethod (c$, "setAttr", 44 function (attr, val) {45this.output (" setAttr \"." + attr + "\" " + val + ";\n");46}, "~S,~N");47Clazz.defineMethod (c$, "setAttr", 48 function (attr, val) {49this.output (" setAttr \"." + attr + "\" " + val + ";\n");50}, "~S,~N");51Clazz.defineMethod (c$, "setAttr", 52 function (attr, pt) {53this.output (" setAttr \"." + attr + "\" -type \"double3\" " + pt.x + " " + pt.y + " " + pt.z + ";\n");54}, "~S,JU.T3");55Clazz.overrideMethod (c$, "outputCylinder", 56function (ptCenter, pt1, pt2, colix, endcaps, radius, ptX, ptY, checkRadius) {57if (ptX != null) return false;58this.nCyl++;59this.name = "nurbsCylinder" + this.nCyl;60this.id = "nurbsCylinderShape" + this.nCyl;61this.output (" createNode transform -n \"" + this.name + "\";\n");62var length = pt1.distance (pt2);63this.tempV1.ave (pt2, pt1);64this.setAttr ("t", this.tempV1);65this.tempV1.sub (pt1);66this.tempV2.setT (this.tempV1);67this.tempV2.normalize ();68var r = this.tempV1.length ();69var rX = Math.acos (this.tempV1.y / r) * 57.29578;70if (this.tempV1.x < 0) rX += 180;71var rY = Math.atan2 (this.tempV1.x, this.tempV1.z) * 57.29578;72this.tempV2.set (rX, rY, 0);73this.setAttr ("r", this.tempV2);74this.output (" createNode nurbsSurface -n \"" + this.id + "\" -p \"" + this.name + "\";\n");75this.addAttr ();76this.output ("createNode makeNurbCylinder -n \"make" + this.name + "\";\n");77this.output (" setAttr \".ax\" -type \"double3\" 0 1 0;\n");78this.setAttr ("r", radius);79this.setAttr ("s", 4);80this.setAttr ("hr", length / radius);81this.addConnect ();82return true;83}, "JU.P3,JU.P3,JU.P3,~N,~N,~N,JU.P3,JU.P3,~B");84Clazz.overrideMethod (c$, "outputSphere", 85function (pt, radius, colix, checkRadius) {86this.nBalls++;87this.name = "nurbsSphere" + this.nBalls;88this.id = "nurbsSphereShape" + this.nBalls;89this.output ("createNode transform -n \"" + this.name + "\";\n");90this.setAttr ("t", pt);91this.output ("createNode nurbsSurface -n \"" + this.id + "\" -p \"" + this.name + "\";\n");92this.addAttr ();93this.output ("createNode makeNurbSphere -n \"make" + this.name + "\";\n");94this.output (" setAttr \".ax\" -type \"double3\" 0 1 0;\n");95this.setAttr ("r", radius);96this.setAttr ("s", 4);97this.setAttr ("nsp", 3);98this.addConnect ();99}, "JU.P3,~N,~N,~B");100Clazz.overrideMethod (c$, "drawTextPixel", 101function (argb, x, y, z) {102}, "~N,~N,~N,~N");103Clazz.overrideMethod (c$, "outputTextPixel", 104function (pt, argb) {105}, "JU.P3,~N");106Clazz.overrideMethod (c$, "outputSurface", 107function (vertices, normals, colixes, indices, polygonColixes, nVertices, nPolygons, nFaces, bsPolygons, faceVertexMax, colix, colorList, htColixes, offset) {108}, "~A,~A,~A,~A,~A,~N,~N,~N,JU.BS,~N,~N,JU.Lst,java.util.Map,JU.P3");109Clazz.overrideMethod (c$, "outputTriangle", 110function (pt1, pt2, pt3, colix) {111}, "JU.P3,JU.P3,JU.P3,~N");112Clazz.overrideMethod (c$, "outputCircle", 113function (pt1, pt2, radius, colix, doFill) {114}, "JU.P3,JU.P3,~N,~N,~B");115Clazz.overrideMethod (c$, "outputCone", 116function (ptBase, ptTip, radius, colix) {117}, "JU.P3,JU.P3,~N,~N");118Clazz.overrideMethod (c$, "outputEllipsoid", 119function (center, points, colix) {120}, "JU.P3,~A,~N");121Clazz.overrideMethod (c$, "outputFace", 122function (is, coordMap, faceVertexMax) {123}, "~A,~A,~N");124Clazz.defineMethod (c$, "output", 125function (pt) {126}, "JU.T3"); ...

Full Screen

Full Screen

JDK-8066226.js

Source:JDK-8066226.js Github

copy

Full Screen

...69 print(e);70 }71 print();72}73function setAttr(o, id) {74 print("setAttr(" + o + ", " + id + ")")75 o[id] = 1;76 print();77}78function setAttrStrict(o, id) {79 "use strict";80 print("setAttrStrict(" + o + ", " + id + ")")81 try {82 o[id] = 1;83 } catch (e) {84 print(e);85 }86 print();87}88set(1);89set("str");90set(true);91set({});92set([]);93setStrict(1);94setStrict("str");95setStrict(true);96setStrict({});97setStrict([]);98setAttr(1, "foo");99setAttr(1, "constructor");100setAttr(1, "accessor");101setAttr(1, "getterOnly");102setAttr("str", "foo");103setAttr("str", "constructor");104setAttr("str", "accessor");105setAttr("str", "getterOnly");106setAttr(true, "foo");107setAttr(true, "constructor");108setAttr(true, "accessor");109setAttr(true, "getterOnly");110setAttrStrict(1, "foo");111setAttrStrict(1, "constructor");112setAttrStrict(1, "accessor");113setAttrStrict(1, "getterOnly");114setAttrStrict("str", "foo");115setAttrStrict("str", "constructor");116setAttrStrict("str", "accessor");117setAttrStrict("str", "getterOnly");118setAttrStrict(true, "foo");119setAttrStrict(true, "constructor");120setAttrStrict(true, "accessor");...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.setAttr('input[name="q"]', 'value', 'Playwright');7 await page.screenshot({ path: 'example.png' });8 await browser.close();9})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const {chromium} = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.click('text="Get started"');7 const elementHandle = await page.$('text="API"');8 await page.click('text="API"');9 await browser.close();10})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { setAttr } = require('playwright/lib/server/dom.js');2const { chromium } = require('playwright');3(async () => {4 const browser = await chromium.launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 await page.evaluate(async () => {8 const element = document.querySelector('input[name="q"]');9 await setAttr(element, 'value', 'Hello World');10 });11 await page.screenshot({ path: 'test.png' });12 await browser.close();13})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { setAttr } = require('playwright-core/lib/server/dom.js');2const { chromium } = require('playwright-core');3(async () => {4 const browser = await chromium.launch({ headless: false });5 const context = await browser.newContext();6 const page = await context.newPage();7 const input = await page.$('input[name="q"]');8 await setAttr(input, 'value', 'Hello World');9 await input.press('Enter');10 await page.waitForNavigation();11 await browser.close();12})();13const { setAttr } = require('playwright-core/lib/server/dom.js');14const { chromium } = require('playwright-core');15(async () => {16 const browser = await chromium.launch({ headless: false });17 const context = await browser.newContext();18 const page = await context.newPage();19 const input = await page.$('input[name="q"]');20 await setAttr(input, 'value', 'Hello World');21 await input.press('Enter');22 await page.waitForNavigation();23 await browser.close();24})();25const { setAttr } = require('playwright-core/lib/server/dom.js');26const { chromium } = require('playwright-core');27(async () => {28 const browser = await chromium.launch({ headless: false });29 const context = await browser.newContext();30 const page = await context.newPage();31 const input = await page.$('input[name="q"]');32 await setAttr(input, 'value', 'Hello World');33 await input.press('Enter');34 await page.waitForNavigation();35 await browser.close();36})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { setAttr } = require('@playwright/test/lib/autowaiting');2const { test } = require('@playwright/test');3test('setAttr', async ({ page }) => {4 await page.click('text=Get Started');5 await page.click('text=Docs');6 await page.click('text=API');7 await page.click('text=BrowserType');8 await page.click('text=BrowserType.launch');

Full Screen

Using AI Code Generation

copy

Full Screen

1const { setAttr } = require('@playwright/test/lib/frames');2const page = await context.newPage();3await setAttr(page.mainFrame(), 'data-testid', 'header', 'data-attr', 'value');4await page.screenshot({ path: 'test.png' });5const { test } = require('@playwright/test');6test('test', async ({ page }) => {7 await page.setAttr('data-testid', 'header', 'data-attr', 'value');8 await page.screenshot({ path: 'test.png' });9});10const { setAttrs } = require('@playwright/test/lib/frames');11const page = await context.newPage();12await setAttrs(page.mainFrame(), 'data-testid', 'header', { 'data-attr': 'value', 'data-attr-2': 'value-2' });13await page.screenshot({ path: 'test.png' });14const { test } = require('@playwright/test');15test('test', async ({ page }) => {16 await page.setAttrs('data-testid', 'header', { 'data-attr': 'value', 'data-attr-2': 'value-2' });17 await page.screenshot({ path: 'test.png' });18});19const { setHTML } = require('@playwright/test/lib/frames');20const page = await context.newPage();21await page.goto('https

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Playwright } = require('playwright');2const playwright = new Playwright();3const { ElementHandle } = require('playwright/lib/cjs/puppeteer/common/JSHandle');4const { setAttr } = require('playwright/lib/cjs/puppeteer/common/DOMWorld');5ElementHandle.prototype.setAttr = setAttr;6(async () => {7 const browser = await playwright.chromium.launch();8 const context = await browser.newContext();9 const page = await context.newPage();10 await page.setAttr('input[name="q"]', 'value', 'Hello World');11 await browser.close();12})();13const { Playwright } = require('playwright');14const playwright = new Playwright();15const { ElementHandle } = require('playwright/lib/cjs/puppeteer/common/JSHandle');16const { setAttr } = require('playwright/lib/cjs/puppeteer/common/DOMWorld');17ElementHandle.prototype.setAttr = setAttr;18(async () => {19 const browser = await playwright.chromium.launch();20 const context = await browser.newContext();21 const page = await context.newPage();22 await page.setAttr('input[name="q"]', 'value', 'Hello World');23 await browser.close();24})();25const { Playwright } = require('playwright');26const playwright = new Playwright();27const { ElementHandle } = require('playwright/lib/cjs/puppeteer/common/JSHandle');28const { setAttr } = require('playwright/lib/cjs/puppeteer/common/DOMWorld');29ElementHandle.prototype.setAttr = setAttr;30(async () => {31 const browser = await playwright.chromium.launch();32 const context = await browser.newContext();33 const page = await context.newPage();34 await page.setAttr('input[name="q"]', 'value', 'Hello World');35 await browser.close();36})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 const input = await page.$('input[name="q"]');7 await input.evaluateHandle((el, value) => el.setAttribute('value', value), 'playwright');8 await browser.close();9})();10const { chromium } = require('playwright');11(async () => {12 const browser = await chromium.launch();13 const context = await browser.newContext();14 const page = await context.newPage();15 const input = await page.$('input[name="q"]');16 await input.evaluateHandle((el, value) => el.setAttribute('value', value), 'playwright');17 await browser.close();18})();19const { chromium } = require('playwright');20(async () => {21 const browser = await chromium.launch();22 const context = await browser.newContext();23 const page = await context.newPage();24 const input = await page.$('input[name="q"]');25 await input.evaluateHandle((el, value) => el.setAttribute('value', value), 'playwright');26 await browser.close();27})();

Full Screen

Playwright tutorial

LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.

Chapters:

  1. What is Playwright : Playwright is comparatively new but has gained good popularity. Get to know some history of the Playwright with some interesting facts connected with it.
  2. How To Install Playwright : Learn in detail about what basic configuration and dependencies are required for installing Playwright and run a test. Get a step-by-step direction for installing the Playwright automation framework.
  3. Playwright Futuristic Features: Launched in 2020, Playwright gained huge popularity quickly because of some obliging features such as Playwright Test Generator and Inspector, Playwright Reporter, Playwright auto-waiting mechanism and etc. Read up on those features to master Playwright testing.
  4. What is Component Testing: Component testing in Playwright is a unique feature that allows a tester to test a single component of a web application without integrating them with other elements. Learn how to perform Component testing on the Playwright automation framework.
  5. Inputs And Buttons In Playwright: Every website has Input boxes and buttons; learn about testing inputs and buttons with different scenarios and examples.
  6. Functions and Selectors in Playwright: Learn how to launch the Chromium browser with Playwright. Also, gain a better understanding of some important functions like “BrowserContext,” which allows you to run multiple browser sessions, and “newPage” which interacts with a page.
  7. Handling Alerts and Dropdowns in Playwright : Playwright interact with different types of alerts and pop-ups, such as simple, confirmation, and prompt, and different types of dropdowns, such as single selector and multi-selector get your hands-on with handling alerts and dropdown in Playright testing.
  8. Playwright vs Puppeteer: Get to know about the difference between two testing frameworks and how they are different than one another, which browsers they support, and what features they provide.
  9. Run Playwright Tests on LambdaTest: Playwright testing with LambdaTest leverages test performance to the utmost. You can run multiple Playwright tests in Parallel with the LammbdaTest test cloud. Get a step-by-step guide to run your Playwright test on the LambdaTest platform.
  10. Playwright Python Tutorial: Playwright automation framework support all major languages such as Python, JavaScript, TypeScript, .NET and etc. However, there are various advantages to Python end-to-end testing with Playwright because of its versatile utility. Get the hang of Playwright python testing with this chapter.
  11. Playwright End To End Testing Tutorial: Get your hands on with Playwright end-to-end testing and learn to use some exciting features such as TraceViewer, Debugging, Networking, Component testing, Visual testing, and many more.
  12. Playwright Video Tutorial: Watch the video tutorials on Playwright testing from experts and get a consecutive in-depth explanation of Playwright automation testing.

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful