How to use prop method in wpt

Best JavaScript code snippet using wpt

InfoManageTableType.ts

Source:InfoManageTableType.ts Github

copy

Full Screen

1export default {2 //地址灾害隐患点3 geologicalDisasterPoint:[4 {5 prop:'name',6 label:'灾害点名称',7 width:'200',8 align:'',9 },10 {11 prop:'manager',12 label:'负责人',13 width:'100',14 align:'center',15 },16 {17 prop:'cellphone',18 label:'联系电话',19 width:'140',20 align:'center',21 },22 {23 prop:'type',24 label:'灾害点类型',25 width:'130',26 align:'center',27 },28 {29 prop:'scale',30 label:'规模',31 width:'80',32 align:'center',33 },34 {35 prop:'stability',36 label:'稳定性',37 width:'80',38 align:'center',39 },40 {41 prop:'risk',42 label:'风险大小',43 width:'80',44 align:'center',45 },46 {47 prop:'factor',48 label:'产生因素',49 width:'80',50 align:'',51 },52 {53 prop:'people',54 label:'受害人数',55 width:'80',56 align:'center',57 },58 {59 prop:'gdp',60 label:'经济损失(万元)',61 width:'80',62 align:'center',63 },64 {65 prop:'measure',66 label:'采取措施',67 width:'280',68 align:'',69 },70 {71 prop:'level',72 label:'灾害等级',73 width:'80',74 align:'center',75 },76 {77 prop:'address',78 label:'灾害地址',79 width:'130',80 align:'',81 },82 {83 prop:'detail',84 label:'详细',85 width:'140',86 align:'',87 },88 ],89 //地质灾害预警状态90 geologicalDisasterState:[91 {92 prop:'name',93 label:'灾害点名称',94 width:'250',95 align:'center',96 },97 {98 prop:'type',99 label:'灾害点类型',100 width:'100',101 align:'center',102 },103 {104 prop:'lon',105 label:'经度',106 width:'80',107 align:'center',108 },109 {110 prop:'lat',111 label:'纬度',112 width:'80',113 align:'center',114 },115 {116 prop:'ddatetime',117 label:'预警时间',118 width:'120',119 align:'center',120 },121 {122 prop:'level',123 label:'预警等级',124 width:'80',125 align:'center',126 },127 {128 prop:'cause',129 label:'预警类型',130 width:'140',131 align:'center',132 },133 {134 prop:'address',135 label:'灾害地址',136 width:'',137 align:'left',138 },139 ],140 //地质灾害预警报告141 geologicalDisasterReport: [142 {143 prop:'dataTime',144 label:'生成时间',145 width:'150',146 align:'center',147 },148 {149 prop:'fileName',150 label:'报告名称',151 width:'',152 align:'center',153 },154 ],155 //山洪预警状态156 mountainTorrentsState:[157 {158 prop:'name',159 label:'站点',160 width:'200',161 align:'center'162 },163 {164 prop:'type',165 label:'类型',166 width:'80',167 align:'center'168 },169 {170 prop:'lon',171 label:'经度',172 width:'70',173 align:'center'174 },175 {176 prop:'lat',177 label:'纬度',178 width:'70',179 align:'center'180 },181 {182 prop:'ddatetime',183 label:'时间',184 width:'140',185 align:'center'186 },187 {188 prop:'waterlevel',189 label:'当前水位(米)',190 width:'100',191 align:'center'192 },193 {194 prop:'alertlevel',195 label:'警戒水位(米)',196 width:'100',197 align:'center'198 },199 {200 prop:'cause',201 label:'预警原因',202 width:'',203 align:''204 },205 ],206 //山洪预警报告207 mountainTorrentsReport:[208 {209 prop:'dataTime',210 label:'生成时间',211 width:'200',212 align:'center'213 },214 {215 prop:'fileName',216 label:'报告名称',217 width:'',218 align:'center'219 },220 ],221 //山洪水库222 reservoir:[223 {224 prop:'VF01015_CN',225 label:'水库名称',226 width:'',227 align:'center'228 },229 {230 prop:'V06001',231 label:'经度',232 width:'',233 align:'center'234 },235 {236 prop:'V05001',237 label:'纬度',238 width:'',239 align:'center'240 },241 {242 prop:'V_COUNTY',243 label:'城市',244 width:'',245 align:'center'246 },247 {248 prop:'V_ADDRESS',249 label:'水库地址',250 width:'',251 align:'center'252 },253 {254 prop:'DDATETIME',255 label:'预警时间',256 width:'',257 align:'center'258 },259 {260 prop:'RZ',261 label:'当前水位(米)',262 width:'',263 align:'center'264 },265 {266 prop:'alertlevel',267 label:'警戒水位(米)',268 width:'',269 align:'center'270 },271 {272 prop:'Differ',273 label:'水位涨幅(米)',274 width:'',275 align:'center'276 }277 ],278 //山洪河流279 river:[280 {281 prop:'RIVER',282 label:'河流名称',283 width:'',284 align:'center'285 },286 {287 prop:'V06001',288 label:'经度',289 width:'',290 align:'center'291 },292 {293 prop:'V05001',294 label:'纬度',295 width:'',296 align:'center'297 },298 {299 prop:'DDATETIME',300 label:'预警时间',301 width:'',302 align:'center'303 },304 {305 prop:'WATERLEV',306 label:'当前水位(米)',307 width:'',308 align:'center'309 },310 {311 prop:'alertlevel(米)',312 label:'警戒水位',313 width:'',314 align:'center'315 },316 {317 prop:'Differ(米)',318 label:'水位涨幅',319 width:'',320 align:'center'321 }322 ],323 //内涝点324 waterloggingPoint: [325 {326 prop: 'name',327 label: '内涝点',328 width: '150',329 align:'center'330 },331 {332 prop: 'lat',333 label: '纬度',334 width: '120',335 align:'center',336 },337 {338 prop: 'lon',339 label: '经度',340 width: '120',341 align:'center'342 },343 {344 prop: 'manager',345 label: '负责人',346 width: '80',347 align:'center'348 },349 {350 prop: 'cellphone',351 label: '联系方式',352 width: '120',353 align:'center'354 },355 {356 prop: 'address',357 label: '地址',358 width: '250',359 align:''360 },361 {362 prop: 'detail',363 label: '详细',364 width: '',365 align:''366 },367 ],368 //内涝预警状态369 warningState: [370 {371 prop: 'name',372 label: '内涝点',373 width: '200',374 align:'center'375 },376 {377 prop:'lon',378 label:'经度',379 width:'100',380 align:'center'381 },382 {383 prop:'lat',384 label:'纬度',385 width:'100',386 align:'center'387 },388 {389 prop: 'ddatetime',390 label: '更新时间',391 width: '',392 align:'center'393 },394 ],395 //内涝预警报告396 warningReport: [397 {398 prop:'dataTime',399 label:'生成时间',400 width:'200',401 align:'center'402 },403 {404 prop:'fileName',405 label:'报告名称',406 width:'',407 align:'center'408 },409 ],410 //台风库411 typhoonInfo:[412 {413 prop:'tsid',414 label:'台风ID',415 width:'100',416 align:'center'417 },418 {419 prop:'name',420 label:'台风名称',421 width:'80',422 align:'center'423 },424 {425 prop:'level',426 label:'台风等级',427 width:'80',428 align:'center'429 },430 {431 prop:'landings',432 label:'登录地点',433 width:'80',434 align:'center'435 },436 {437 prop:'landingsLevel',438 label:'登录广东省强度',439 width:'120',440 align:'center'441 },442 {443 prop:'distance',444 label:'距站点(G2971)距离(公里)',445 width:'200',446 align:'center'447 },448 {449 prop:'landingsMonth',450 label:'登陆月份',451 width:'80',452 align:'center'453 },454 {455 prop:'maxWind',456 label:'自动站最大风力(m/s)',457 width:'',458 align:'center'459 },460 {461 prop:'maxRain',462 label:'自动站最大日雨量(mm)',463 width:'',464 align:'center'465 },466 ],467 //值班管理468 duty:[469 {470 prop:'dutydate',471 label:'值班日期',472 width:'',473 align:''474 },//值班日期475 {476 prop:'leader',477 label:'值班领导',478 width:'',479 align:''480 },//值班领导481 {482 prop:'cheif',483 label:'首席岗',484 width:'',485 align:''486 },//首席岗487 {488 prop:'captain_day',489 label:'白天领班',490 width:'',491 align:''492 },//白天领班493 {494 prop:'short_impending',495 label:'短临',496 width:'',497 align:''498 },//短临499 {500 prop:'audit',501 label:'审核',502 width:'',503 align:''504 },//审核505 {506 prop:'captain_night',507 label:'夜间领班',508 width:'',509 align:''510 },//夜间领班511 {512 prop:'emergency_day',513 label:'应急白班',514 width:'',515 align:''516 },//应急白班517 {518 prop:'cheif_service',519 label:'服务首席',520 width:'',521 align:''522 },//服务首席523 {524 prop:'onbusiness',525 label:'出差',526 width:'',527 align:''528 },//出差529 {530 prop:'vacation',531 label:'休假',532 width:'',533 align:''534 },//休假535 {536 prop:'vice_day',537 label:'白天副班',538 width:'',539 align:''540 },//白天副班541 {542 prop:'vice_night',543 label:'夜间副班',544 width:'',545 align:''546 },//夜间副班547 {548 prop:'office',549 label:'办公班',550 width:'',551 align:''552 },//办公班553 {554 prop:'consultation',555 label:'会商',556 width:'',557 align:''558 },//会商559 {560 prop:'remark',561 label:'备注',562 width:'',563 align:''564 }//备注565 ],566 //用户管理567 users:[568 {569 prop:'account',570 label:'账号',571 align:'center',572 width:''573 },574 {575 prop:'name',576 label:'用户名',577 align:'center',578 width:''579 },580 {581 prop:'nick',582 label:'姓名',583 align:'center',584 width:''585 },586 {587 prop:'phone',588 label:'手机号码',589 align:'center',590 width:''591 },592 {593 prop:'department',594 label:'部门',595 align:'center',596 width:''597 },598 {599 prop:'office',600 label:'科室',601 align:'center',602 width:''603 },604 ],605 //发布系统预警录入606 waringEntry:[607 {608 prop:'units',609 label:'单位',610 width:'80',611 align:'center',612 },613 {614 prop:'time',615 label:'录入时间',616 width:'150',617 align:'center',618 },619 {620 prop:'typeWarn',621 label:'事件类型',622 width:'120',623 align:'center',624 },625 {626 prop:'forecaster',627 label:'预报员',628 width:'80',629 align:'center',630 },631 {632 prop:'signer',633 label:'签发人',634 width:'80',635 align:'center',636 },637 {638 prop:'affirmNumber',639 label:'确认电话',640 width:'120',641 align:'center',642 },643 {644 prop:'smsGroup',645 label:'短信群',646 width:'100',647 align:'center',648 },649 /* // {650 // prop:'fax',651 // label:'传真',652 // width:'',653 // align:'center',654 // },655 {656 prop:'web',657 label:'微博',658 width:'',659 align:'center',660 },661 {662 prop:'wechat',663 label:'微信',664 width:'',665 align:'center',666 },667 {668 prop:'pNote',669 label:'省突',670 width:'',671 align:'center',672 },673 {674 prop:'nNote',675 label:'本地短信',676 width:'',677 align:'center',678 },679 {680 prop:'website',681 label:'网站',682 width:'',683 align:'center',684 },685 {686 prop:'ftp',687 label:'FTP',688 width:'',689 align:'center',690 },691 {692 prop:'faxes',693 label:'传真',694 width:'',695 align:'center',696 },*/697 {698 prop:'noteMessage',699 label:'预警消息',700 width:'200',701 align:'',702 },703 {704 prop:'noteMessage',705 label:'备注消息',706 width:'200',707 align:'',708 },709 // {710 // prop:'defense',711 // label:'国防',712 // width:'',713 // align:'center',714 // },715 ],716 //学校717 school:[718 {719 prop:'name',720 label:'学校名称',721 width:'250',722 align:'center',723 },724 {725 prop:'lat',726 label:'纬度',727 width:'120',728 align:'center',729 },730 {731 prop:'lon',732 label:'纬度',733 width:'120',734 align:'center',735 },736 {737 prop:'people',738 label:'学校人数',739 width:'120',740 align:'center',741 },742 {743 prop:'manager',744 label:'负责人',745 width:'120',746 align:'center',747 },748 {749 prop:'cellphone',750 label:'手机号',751 width:'120',752 align:'center',753 },754 {755 prop:'phone',756 label:'电话号码',757 width:'120',758 align:'center',759 },760 {761 prop:'address',762 label:'地址',763 width:'',764 align:'center',765 }766 ],767 //医院768 hospital:[769 {770 prop:'name',771 label:'医院/诊所名',772 width:'200',773 align:'center',774 },775 {776 prop:'lat',777 label:'纬度',778 width:'100',779 align:'center',780 },781 {782 prop:'lon',783 label:'经度',784 width:'100',785 align:'center',786 },787 {788 prop:'ambulance',789 label:'救护车数量',790 width:'100',791 align:'center',792 },793 {794 prop:'beds',795 label:'床位',796 width:'60',797 align:'center',798 },799 {800 prop:'doctor',801 label:'医生人数',802 width:'80',803 align:'center',804 },805 {806 prop:'nurse',807 label:'护士人数',808 width:'80',809 align:'center',810 },811 {812 prop:'manager',813 label:'负责人',814 width:'120',815 align:'center',816 },817 {818 prop:'phone',819 label:'电话号码',820 width:'100',821 align:'center',822 },823 {824 prop:'cellphone',825 label:'手机号',826 width:'120',827 align:'center',828 },829 {830 prop:'fax',831 label:'传真号',832 width:'100',833 align:'',834 },835 {836 prop:'address',837 label:'地址',838 width:'200',839 align:'center',840 },841 ],842 //危化品企业843 chemical:[844 {845 prop:'name',846 label:'危化品企业',847 width:'300',848 align:'center',849 },850 {851 prop:'lat',852 label:'纬度',853 width:'',854 align:'center',855 },856 {857 prop:'lon',858 label:'经度',859 width:'',860 align:'center',861 },862 {863 prop:'type',864 label:'类型',865 width:'120',866 align:'center',867 },868 {869 prop:'manager',870 label:'负责人',871 width:'',872 align:'center',873 },874 {875 prop:'cellphone',876 label:'负责人电话',877 width:'120',878 align:'center',879 },880 {881 prop:'reporter',882 label:'填报人',883 width:'',884 align:'center',885 },886 {887 prop:'reporterphone',888 label:'填报人电话',889 width:'120',890 align:'center',891 },892 {893 prop:'address',894 label:'地址',895 width:'350',896 align:'center',897 },898 ],899 //避难所900 shelter:[901 {902 prop:'name',903 label:'避难所',904 width:'250',905 align:'center',906 },907 {908 prop:'lat',909 label:'纬度',910 width:'100',911 align:'center',912 },913 {914 prop:'lon',915 label:'经度',916 width:'100',917 align:'center',918 },919 {920 prop:'manager',921 label:'负责人',922 width:'80',923 align:'center',924 },925 {926 prop:'managerphone',927 label:'负责人电话',928 width:'120',929 align:'center',930 },931 {932 prop:'managercellphone',933 label:'负责人手机号码',934 width:'120',935 align:'center',936 },937 {938 prop:'contact',939 label:'联系人',940 width:'80',941 align:'center',942 },943 {944 prop:'contactphone',945 label:'联系人电话',946 width:'120',947 align:'center',948 },949 {950 prop:'contactcellphone',951 label:'联系人手机号码',952 width:'120',953 align:'center',954 },955 {956 prop:'area',957 label:'占地面积(平方米)',958 width:'130',959 align:'center',960 },961 {962 prop:'people',963 label:'容纳人数',964 width:'80',965 align:'center',966 },967 {968 prop:'address',969 label:'地址',970 width:'400',971 align:'center',972 },973 ],974 //人口经济975 economy:[976 {977 prop:'name',978 label:'地名',979 width:'140',980 align:'center',981 },982 {983 prop:'lat',984 label:'纬度',985 width:'100',986 align:'center',987 },988 {989 prop:'lon',990 label:'经度',991 width:'100',992 align:'center',993 },994 {995 prop:'people',996 label:'总人口',997 width:'80',998 align:'center',999 },1000 {1001 prop:'gdp',1002 label:'gdp指数',1003 width:'80',1004 align:'center',1005 },1006 {1007 prop:'area',1008 label:'占地面积(公顷)',1009 width:'120',1010 align:'center',1011 },1012 {1013 prop:'plough',1014 label:'耕地面积(公顷)',1015 width:'120',1016 align:'center',1017 },1018 {1019 prop:'agriculture',1020 label:'农业产值(万元)',1021 width:'120',1022 align:'center',1023 },1024 {1025 prop:'aquaculture',1026 label:'水产养殖面积(公顷)',1027 width:'150',1028 align:'center',1029 },1030 {1031 prop:'industrial',1032 label:'工业用电(千瓦/小时)',1033 width:'150',1034 align:'center',1035 },1036 {1037 prop:'irrigationarea',1038 label:'灌溉面积(公顷)',1039 width:'130',1040 align:'center',1041 },1042 {1043 prop:'fruit',1044 label:'林果种植面积(公顷)',1045 width:'150',1046 align:'center',1047 },1048 ],1049 //专家库1050 experts:[],1051 //地址灾害1052 geohazard:[],1053//救援队伍1054 rescueteam:[1055 {1056 prop:'name',1057 label:'队伍名称',1058 width:'250',1059 align:'center',1060 },1061 {1062 prop:'department',1063 label:'所属部门',1064 width:'250',1065 align:'center',1066 },1067 {1068 prop:'teamtype',1069 label:'队伍类型',1070 width:'250',1071 align:'center',1072 },1073 {1074 prop:'lat',1075 label:'纬度',1076 width:'250',1077 align:'center',1078 },1079 {1080 prop:'lon',1081 label:'经度',1082 width:'250',1083 align:'center',1084 },1085 {1086 prop:'people',1087 label:'队伍人数',1088 width:'100',1089 align:'center',1090 },1091 {1092 prop:'manager',1093 label:'负责人',1094 width:'250',1095 align:'center',1096 },1097 {1098 prop:'managercellphone',1099 label:'负责人手机号',1100 width:'250',1101 align:'center',1102 },1103 {1104 prop:'managerphone',1105 label:'负责人电话',1106 width:'150',1107 align:'center'1108 },1109 {1110 prop:'teamcontact',1111 label:'联系人',1112 width:'250',1113 align:'center',1114 },1115 {1116 prop:'contactcellphone',1117 label:'联系人手机号',1118 width:'250',1119 align:'center',1120 },1121 {1122 prop:'contactphone',1123 label:'联系人电话',1124 width:'250',1125 align:'center',1126 },1127 {1128 prop:'address',1129 label:'地址',1130 width:'250',1131 align:'center',1132 },1133 ],1134//救援物资1135 material:[1136 {1137 prop:'name',1138 label:'名称',1139 width:'250',1140 align:'center',1141 },1142 {1143 prop:'lat',1144 label:'纬度',1145 width:'250',1146 align:'center',1147 },1148 {1149 prop:'lon',1150 label:'经度',1151 width:'250',1152 align:'center',1153 },1154 {1155 prop:'amount',1156 label:'总额',1157 width:'250',1158 align:'center',1159 },1160 {1161 prop:'contact',1162 label:'联系人',1163 width:'250',1164 align:'center',1165 },1166 {1167 prop:'contactcellphone',1168 label:'联系人手机号',1169 width:'250',1170 align:'center',1171 },1172 {1173 prop:'contactphone',1174 label:'联系人电话',1175 width:'250',1176 align:'center',1177 },1178 {1179 prop:'department',1180 label:'所属部门',1181 width:'250',1182 align:'center',1183 },1184 {1185 prop:'departmentphone',1186 label:'部门电话',1187 width:'250',1188 align:'center',1189 },1190 {1191 prop:'purpose',1192 label:'用途',1193 width:'250',1194 align:'center',1195 },1196 {1197 prop:'reporttime',1198 label:'上报时间',1199 width:'250',1200 align:'center',1201 },1202 {1203 prop:'unit',1204 label:'单位',1205 width:'250',1206 align:'center',1207 },1208 {1209 prop:'address',1210 label:'地址',1211 width:'250',1212 align:'center',1213 },1214 ],1215//通讯录1216 mail:[1217 {1218 prop:'name',1219 label:'姓名',1220 width:'',1221 align:'center',1222 },1223 {1224 prop:'title',1225 label:'职位',1226 width:'',1227 align:'center',1228 },1229 {1230 prop:'department',1231 label:'部门',1232 width:'',1233 align:'center',1234 },1235 {1236 prop:'cellphone',1237 label:'手机号码',1238 width:'',1239 align:'center',1240 },1241 {1242 prop:'phone',1243 label:'电话',1244 width:'',1245 align:'center',1246 }1247 ],1248//预案录入1249 PlansEntry:[1250 {1251 prop:'e_name',1252 label:'预案类型',1253 width:'150',1254 align:'center',1255 },1256 {1257 prop:'level',1258 label:'预案等级',1259 width:'',1260 align:'center',1261 },1262 {1263 prop:'department',1264 label:'部门',1265 width:'',1266 align:'center',1267 },1268 {1269 prop:'measure',1270 label:'单位预案',1271 width:'',1272 align:'center',1273 },1274 {1275 prop:'detail',1276 label:'短信',1277 width:'',1278 align:'center',1279 },1280 ],1281//历史预案1282 HistoryPlan:[1283 {1284 prop:'emergencyname',1285 label:'事件名称',1286 width:'150',1287 align:'center',1288 },1289 {1290 prop:'emergencytype',1291 label:'事件类型',1292 width:'150',1293 align:'center',1294 },1295 {1296 prop:'responsegrade',1297 label:'响应等级',1298 width:'150',1299 align:'center',1300 },1301 {1302 prop:'unit',1303 label:'成员单位',1304 width:'150',1305 align:'center',1306 },1307 {1308 prop:'memo',1309 label:'工作备忘',1310 width:'',1311 align:'center',1312 },1313 ],1314//组织机构部门负责人1315 InstiFrame:[1316 {1317 prop:'name',1318 label:'姓名',1319 width:'',1320 align:'center',1321 },1322 {1323 prop:'department',1324 label:'部门',1325 width:'',1326 align:'center',1327 },1328 {1329 prop:'position',1330 label:'职位',1331 width:'',1332 align:'center',1333 },1334 {1335 prop:'phone',1336 label:'电话',1337 width:'',1338 align:'center',1339 },1340 {1341 prop:'cellphone',1342 label:'手机号',1343 width:'',1344 align:'center',1345 },1346 ],1347//专家库信息1348 expertDatabase:[1349 {1350 prop:'name',1351 label:'姓名',1352 width:'',1353 align:'center',1354 },1355 {1356 prop:'department',1357 label:'所属部门',1358 width:'',1359 align:'center',1360 } ,1361 {1362 prop:'address',1363 label:'居住地',1364 width:'',1365 align:'center',1366 },1367 {1368 prop:'phone',1369 label:'电话',1370 width:'',1371 align:'center',1372 },1373 {1374 prop:'cellphone',1375 label:'手机号',1376 width:'',1377 align:'center',1378 }1379 ],1380//预案模板的事件类型1381 PTAlertInfo:[1382 {1383 prop:'e_name',1384 label:'预案名称',1385 width:'',1386 align:'center',1387 },1388 {1389 prop:'starttip',1390 label:'启动提示',1391 width:'',1392 align:'center',1393 },1394 {1395 prop:'downtip',1396 label:'降级提示',1397 width:'',1398 align:'center',1399 },1400 {1401 prop:'uptip',1402 label:'升级提示',1403 width:'',1404 align:'center',1405 },1406 {1407 prop:'finishtip',1408 label:'结束提示',1409 width:'',1410 align:'center',1411 },1412 {1413 prop:'description',1414 label:'描述',1415 width:'',1416 align:'center',1417 },1418 ],1419//预案模板的工作备忘1420 PTWorkingMemo: [1421 {1422 prop:'name',1423 label:'备忘内容',1424 width:'',1425 align:'center',1426 }1427 ],1428 //灾情审核1429 disasterAudit:[1430 {1431 prop:'disaster',1432 label:'灾情类型',1433 width:'150',1434 align:'center',1435 },1436 {1437 prop:'remarks',1438 label:'灾情内容',1439 width:'250',1440 align:'center',1441 },1442 {1443 prop:'starttime',1444 label:'灾情发生时间',1445 width:'150',1446 align:'center',1447 },1448 {1449 prop:'economyLoss',1450 label:'经济损失(万元)',1451 width:'120',1452 align:'center',1453 },1454 {1455 prop:'injuryPerson',1456 label:'死亡人数(人)',1457 width:'120',1458 align:'center',1459 },1460 {1461 prop:'releaseUnit',1462 label:'上报单位',1463 width:'120',1464 align:'center',1465 },1466 {1467 prop:'reportMan',1468 label:'上报人',1469 width:'80',1470 align:'center',1471 },1472 ],1473 //历史灾情1474 disasterHistory:[1475 {1476 prop:'disaster',1477 label:'灾情类型',1478 width:'150',1479 align:'center',1480 },1481 {1482 prop:'remarks',1483 label:'灾情内容',1484 width:'250',1485 align:'center',1486 },1487 {1488 prop:'starttime',1489 label:'灾情发生时间',1490 width:'150',1491 align:'center',1492 },1493 {1494 prop:'economyLoss',1495 label:'经济损失(万元)',1496 width:'120',1497 align:'center',1498 },1499 {1500 prop:'injuryPerson',1501 label:'死亡人数(人)',1502 width:'120',1503 align:'center',1504 },1505 {1506 prop:'releaseUnit',1507 label:'上报单位',1508 width:'120',1509 align:'center',1510 },1511 {1512 prop:'reportMan',1513 label:'上报人',1514 width:'80',1515 align:'center',1516 },1517 ],1518 //发布系统模板管理1519 templateManage:[1520 {1521 prop:'id',1522 label:'编号',1523 width:'50',1524 align:'center',1525 },1526 {1527 prop:'forecaster',1528 label:'预报员',1529 width:'100',1530 align:'center',1531 },1532 {1533 prop:'signer',1534 label:'签发人',1535 width:'100',1536 align:'center',1537 },1538 {1539 prop:'affirmNumber',1540 label:'确认数量',1541 width:'100',1542 align:'center',1543 },1544 {1545 prop:'fax',1546 label:'传真号',1547 width:'150',1548 align:'center',1549 },1550 {1551 prop:'units',1552 label:'发布单位',1553 width:'150',1554 align:'center',1555 },1556 {1557 prop:'warnType',1558 label:'预警类型',1559 width:'100',1560 align:'center',1561 },1562 ]...

Full Screen

Full Screen

properties_data_modifier.py

Source:properties_data_modifier.py Github

copy

Full Screen

...39 def ARMATURE(self, layout, ob, md):40 split = layout.split()41 col = split.column()42 col.label(text="Object:")43 col.prop(md, "object", text="")44 col.prop(md, "use_deform_preserve_volume")45 col = split.column()46 col.label(text="Bind To:")47 col.prop(md, "use_vertex_groups", text="Vertex Groups")48 col.prop(md, "use_bone_envelopes", text="Bone Envelopes")49 layout.separator()50 row = layout.row()51 row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")52 sub = row.row()53 sub.active = bool(md.vertex_group)54 sub.prop(md, "invert_vertex_group")55 layout.prop(md, "use_multi_modifier")56 def ARRAY(self, layout, ob, md):57 layout.prop(md, "fit_type")58 if md.fit_type == 'FIXED_COUNT':59 layout.prop(md, "count")60 elif md.fit_type == 'FIT_LENGTH':61 layout.prop(md, "fit_length")62 elif md.fit_type == 'FIT_CURVE':63 layout.prop(md, "curve")64 layout.separator()65 split = layout.split()66 col = split.column()67 col.prop(md, "use_constant_offset")68 sub = col.column()69 sub.active = md.use_constant_offset70 sub.prop(md, "constant_offset_displace", text="")71 col.separator()72 col.prop(md, "use_merge_vertices", text="Merge")73 sub = col.column()74 sub.active = md.use_merge_vertices75 sub.prop(md, "use_merge_vertices_cap", text="First Last")76 sub.prop(md, "merge_threshold", text="Distance")77 col = split.column()78 col.prop(md, "use_relative_offset")79 sub = col.column()80 sub.active = md.use_relative_offset81 sub.prop(md, "relative_offset_displace", text="")82 col.separator()83 col.prop(md, "use_object_offset")84 sub = col.column()85 sub.active = md.use_object_offset86 sub.prop(md, "offset_object", text="")87 layout.separator()88 layout.prop(md, "start_cap")89 layout.prop(md, "end_cap")90 def BEVEL(self, layout, ob, md):91 split = layout.split()92 split.prop(md, "width")93 split.prop(md, "use_only_vertices")94 layout.label(text="Limit Method:")95 layout.row().prop(md, "limit_method", expand=True)96 if md.limit_method == 'ANGLE':97 layout.prop(md, "angle_limit")98 elif md.limit_method == 'WEIGHT':99 layout.row().prop(md, "edge_weight_method", expand=True)100 def BOOLEAN(self, layout, ob, md):101 split = layout.split()102 col = split.column()103 col.label(text="Operation:")104 col.prop(md, "operation", text="")105 col = split.column()106 col.label(text="Object:")107 col.prop(md, "object", text="")108 def BUILD(self, layout, ob, md):109 split = layout.split()110 col = split.column()111 col.prop(md, "frame_start")112 col.prop(md, "frame_duration")113 col = split.column()114 col.prop(md, "use_random_order")115 sub = col.column()116 sub.active = md.use_random_order117 sub.prop(md, "seed")118 def CAST(self, layout, ob, md):119 split = layout.split(percentage=0.25)120 split.label(text="Cast Type:")121 split.prop(md, "cast_type", text="")122 split = layout.split(percentage=0.25)123 col = split.column()124 col.prop(md, "use_x")125 col.prop(md, "use_y")126 col.prop(md, "use_z")127 col = split.column()128 col.prop(md, "factor")129 col.prop(md, "radius")130 col.prop(md, "size")131 col.prop(md, "use_radius_as_size")132 split = layout.split()133 col = split.column()134 col.label(text="Vertex Group:")135 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")136 col = split.column()137 col.label(text="Control Object:")138 col.prop(md, "object", text="")139 if md.object:140 col.prop(md, "use_transform")141 def CLOTH(self, layout, ob, md):142 layout.label(text="Settings can be found inside the Physics context")143 def COLLISION(self, layout, ob, md):144 layout.label(text="Settings can be found inside the Physics context")145 def CURVE(self, layout, ob, md):146 split = layout.split()147 col = split.column()148 col.label(text="Object:")149 col.prop(md, "object", text="")150 col = split.column()151 col.label(text="Vertex Group:")152 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")153 layout.label(text="Deformation Axis:")154 layout.row().prop(md, "deform_axis", expand=True)155 def DECIMATE(self, layout, ob, md):156 layout.prop(md, "ratio")157 layout.label(text="Face Count: %s" % str(md.face_count))158 def DISPLACE(self, layout, ob, md):159 split = layout.split()160 col = split.column()161 col.label(text="Texture:")162 col.template_ID(md, "texture", new="texture.new")163 col.label(text="Vertex Group:")164 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")165 col = split.column()166 col.label(text="Direction:")167 col.prop(md, "direction", text="")168 col.label(text="Texture Coordinates:")169 col.prop(md, "texture_coords", text="")170 if md.texture_coords == 'OBJECT':171 layout.prop(md, "texture_coords_object", text="Object")172 elif md.texture_coords == 'UV' and ob.type == 'MESH':173 layout.prop_search(md, "uv_layer", ob.data, "uv_textures")174 layout.separator()175 row = layout.row()176 row.prop(md, "mid_level")177 row.prop(md, "strength")178 def EDGE_SPLIT(self, layout, ob, md):179 split = layout.split()180 col = split.column()181 col.prop(md, "use_edge_angle", text="Edge Angle")182 sub = col.column()183 sub.active = md.use_edge_angle184 sub.prop(md, "split_angle")185 split.prop(md, "use_edge_sharp", text="Sharp Edges")186 def EXPLODE(self, layout, ob, md):187 split = layout.split()188 col = split.column()189 col.label(text="Vertex group:")190 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")191 sub = col.column()192 sub.active = bool(md.vertex_group)193 sub.prop(md, "protect")194 col.label(text="Particle UV")195 col.prop_search(md, "particle_uv", ob.data, "uv_textures", text="")196 col = split.column()197 col.prop(md, "use_edge_cut")198 col.prop(md, "show_unborn")199 col.prop(md, "show_alive")200 col.prop(md, "show_dead")201 col.prop(md, "use_size")202 layout.operator("object.explode_refresh", text="Refresh")203 def FLUID_SIMULATION(self, layout, ob, md):204 layout.label(text="Settings can be found inside the Physics context")205 def HOOK(self, layout, ob, md):206 split = layout.split()207 col = split.column()208 col.label(text="Object:")209 col.prop(md, "object", text="")210 if md.object and md.object.type == 'ARMATURE':211 col.label(text="Bone:")212 col.prop_search(md, "subtarget", md.object.data, "bones", text="")213 col = split.column()214 col.label(text="Vertex Group:")215 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")216 layout.separator()217 split = layout.split()218 col = split.column()219 col.prop(md, "falloff")220 col.prop(md, "force", slider=True)221 col = split.column()222 col.operator("object.hook_reset", text="Reset")223 col.operator("object.hook_recenter", text="Recenter")224 if ob.mode == 'EDIT':225 layout.separator()226 row = layout.row()227 row.operator("object.hook_select", text="Select")228 row.operator("object.hook_assign", text="Assign")229 def LATTICE(self, layout, ob, md):230 split = layout.split()231 col = split.column()232 col.label(text="Object:")233 col.prop(md, "object", text="")234 col = split.column()235 col.label(text="Vertex Group:")236 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")237 def MASK(self, layout, ob, md):238 split = layout.split()239 col = split.column()240 col.label(text="Mode:")241 col.prop(md, "mode", text="")242 col = split.column()243 if md.mode == 'ARMATURE':244 col.label(text="Armature:")245 col.prop(md, "armature", text="")246 elif md.mode == 'VERTEX_GROUP':247 col.label(text="Vertex Group:")248 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")249 sub = col.column()250 sub.active = bool(md.vertex_group)251 sub.prop(md, "invert_vertex_group")252 def MESH_DEFORM(self, layout, ob, md):253 split = layout.split()254 col = split.column()255 sub = col.column()256 sub.label(text="Object:")257 sub.prop(md, "object", text="")258 sub.active = not md.is_bound259 col = split.column()260 col.label(text="Vertex Group:")261 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")262 sub = col.column()263 sub.active = bool(md.vertex_group)264 sub.prop(md, "invert_vertex_group")265 layout.separator()266 if md.is_bound:267 layout.operator("object.meshdeform_bind", text="Unbind")268 else:269 layout.operator("object.meshdeform_bind", text="Bind")270 row = layout.row()271 row.prop(md, "precision")272 row.prop(md, "use_dynamic_bind")273 def MIRROR(self, layout, ob, md):274 split = layout.split(percentage=0.25)275 col = split.column()276 col.label(text="Axis:")277 col.prop(md, "use_x")278 col.prop(md, "use_y")279 col.prop(md, "use_z")280 col = split.column()281 col.label(text="Options:")282 col.prop(md, "use_mirror_merge", text="Merge")283 col.prop(md, "use_clip", text="Clipping")284 col.prop(md, "use_mirror_vertex_groups", text="Vertex Groups")285 col = split.column()286 col.label(text="Textures:")287 col.prop(md, "use_mirror_u", text="U")288 col.prop(md, "use_mirror_v", text="V")289 col = layout.column()290 if md.use_mirror_merge == True:291 col.prop(md, "merge_threshold")292 col.label(text="Mirror Object:")293 col.prop(md, "mirror_object", text="")294 def MULTIRES(self, layout, ob, md):295 layout.row().prop(md, "subdivision_type", expand=True)296 split = layout.split()297 col = split.column()298 col.prop(md, "levels", text="Preview")299 col.prop(md, "sculpt_levels", text="Sculpt")300 col.prop(md, "render_levels", text="Render")301 col = split.column()302 col.enabled = ob.mode != 'EDIT'303 col.operator("object.multires_subdivide", text="Subdivide")304 col.operator("object.multires_higher_levels_delete", text="Delete Higher")305 col.operator("object.multires_reshape", text="Reshape")306 col.operator("object.multires_base_apply", text="Apply Base")307 col.prop(md, "use_subsurf_uv")308 col.prop(md, "show_only_control_edges")309 layout.separator()310 col = layout.column()311 row = col.row()312 if md.is_external:313 row.operator("object.multires_external_pack", text="Pack External")314 row.label()315 row = col.row()316 row.prop(md, "filepath", text="")317 else:318 row.operator("object.multires_external_save", text="Save External...")319 row.label()320 def PARTICLE_INSTANCE(self, layout, ob, md):321 layout.prop(md, "object")322 layout.prop(md, "particle_system_index", text="Particle System")323 split = layout.split()324 col = split.column()325 col.label(text="Create From:")326 col.prop(md, "use_normal")327 col.prop(md, "use_children")328 col.prop(md, "use_size")329 col = split.column()330 col.label(text="Show Particles When:")331 col.prop(md, "show_alive")332 col.prop(md, "show_unborn")333 col.prop(md, "show_dead")334 layout.separator()335 layout.prop(md, "use_path", text="Create Along Paths")336 split = layout.split()337 split.active = md.use_path338 col = split.column()339 col.row().prop(md, "axis", expand=True)340 col.prop(md, "use_preserve_shape")341 col = split.column()342 col.prop(md, "position", slider=True)343 col.prop(md, "random_position", text="Random", slider=True)344 def PARTICLE_SYSTEM(self, layout, ob, md):345 layout.label(text="Settings can be found inside the Particle context")346 def SCREW(self, layout, ob, md):347 split = layout.split()348 col = split.column()349 col.prop(md, "axis")350 col.prop(md, "object", text="AxisOb")351 col.prop(md, "angle")352 col.prop(md, "steps")353 col.prop(md, "render_steps")354 col = split.column()355 row = col.row()356 row.active = (md.object is None or md.use_object_screw_offset == False)357 row.prop(md, "screw_offset")358 row = col.row()359 row.active = (md.object is not None)360 row.prop(md, "use_object_screw_offset")361 col.prop(md, "use_normal_calculate")362 col.prop(md, "use_normal_flip")363 col.prop(md, "iterations")364 def SHRINKWRAP(self, layout, ob, md):365 split = layout.split()366 col = split.column()367 col.label(text="Target:")368 col.prop(md, "target", text="")369 col = split.column()370 col.label(text="Vertex Group:")371 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")372 split = layout.split()373 col = split.column()374 col.prop(md, "offset")375 col.prop(md, "subsurf_levels")376 col = split.column()377 col.label(text="Mode:")378 col.prop(md, "wrap_method", text="")379 if md.wrap_method == 'PROJECT':380 split = layout.split(percentage=0.25)381 col = split.column()382 col.label(text="Axis:")383 col.prop(md, "use_project_x")384 col.prop(md, "use_project_y")385 col.prop(md, "use_project_z")386 col = split.column()387 col.label(text="Direction:")388 col.prop(md, "use_negative_direction")389 col.prop(md, "use_positive_direction")390 col = split.column()391 col.label(text="Cull Faces:")392 col.prop(md, "cull_face", expand=True)393 layout.label(text="Auxiliary Target:")394 layout.prop(md, "auxiliary_target", text="")395 elif md.wrap_method == 'NEAREST_SURFACEPOINT':396 layout.prop(md, "use_keep_above_surface")397 def SIMPLE_DEFORM(self, layout, ob, md):398 split = layout.split()399 col = split.column()400 col.label(text="Mode:")401 col.prop(md, "deform_method", text="")402 col = split.column()403 col.label(text="Vertex Group:")404 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")405 split = layout.split()406 col = split.column()407 col.label(text="Origin:")408 col.prop(md, "origin", text="")409 sub = col.column()410 sub.active = (md.origin is not None)411 sub.prop(md, "use_relative")412 col = split.column()413 col.label(text="Deform:")414 col.prop(md, "factor")415 col.prop(md, "limits", slider=True)416 if md.deform_method in {'TAPER', 'STRETCH'}:417 col.prop(md, "lock_x")418 col.prop(md, "lock_y")419 def SMOKE(self, layout, ob, md):420 layout.label(text="Settings can be found inside the Physics context")421 def SMOOTH(self, layout, ob, md):422 split = layout.split(percentage=0.25)423 col = split.column()424 col.label(text="Axis:")425 col.prop(md, "use_x")426 col.prop(md, "use_y")427 col.prop(md, "use_z")428 col = split.column()429 col.prop(md, "factor")430 col.prop(md, "iterations")431 col.label(text="Vertex Group:")432 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")433 def SOFT_BODY(self, layout, ob, md):434 layout.label(text="See Soft Body panel.")435 436 def RTPS(self, layout, ob, md):437 layout.row().prop(md, "system", expand=True)438 #layout.prop(md, "system")439 if md.system == "SIMPLE":440 layout.label(text="Maximum number of particles:")441 layout.prop(md, "max_num")442 if md.system == "SPH":443 split = layout.split()444 col = split.column()445 #col.label(text="Maximum number of particles:")446 col.prop(md, "max_num")447 col.prop(md, "dt")448 col.prop(md, "sub_intervals")449 col.prop(md, "collision")450 col.prop(md, "gravity")451 col.prop(md, "gas_constant")452 col.prop(md, "viscosity")453 col.prop(md, "velocity_limit")454 col.prop(md, "xsph_factor")455 col.prop(md, "boundary_stiffness")456 col.prop(md, "boundary_dampening")457 col = split.column()458 col.label(text="Rendering options")459 #col.prop(md, "glsl")460 col.prop(md, "blending")461 #layout.prop(md, "radius")462 col.prop(md, "render_type")463 if md.render_type == "SPRITE":464 col.prop(md, "render_radius_scale")465 if md.render_type == "SSF":466 col.prop(md, "render_radius_scale")467 col.prop(md, "render_blur_scale")468 #row = split.row()469 #col = row.col()470 #split2 = col.split()471 #row = split2.row()472 #col = row.col()473 474 elif md.system == "BOIDS":475 split = layout.split(percentage=0.5)476 col = split.column()477 478 col.label(text="Simulation Parameters")479 col.prop(md, "max_num")480 col.prop(md, "dt")481 col.prop(md, "dim")482 483 col.label(text="Flock Parameters")484 col.prop(md, "maxspeed", text="MaxSpeed")485 col.prop(md, "separationdist", text="SeparationDist")486 col.prop(md, "searchradius", text="SearchRadius")487 col.prop(md, "angular_velocity", text="AngularVel")488 489 col = split.column()490 491 col.label(text="Render Type")492 col.prop(md, "render_type", text="")493 if md.render_type == "SSF" or md.render_type == "SPRITE" or md.render_type == "SPHERE":494 col.prop(md, "render_radius_scale")495 col.prop(md, "render_blur_scale")496 #col.prop(md, "glsl")497 #col.prop(md, "blending")498 col.label(text="Weights of the Rules")499 col.prop(md, "w_sep", text="Separation", slider=True)500 col.prop(md, "w_align", text="Alignment", slider=True)501 col.prop(md, "w_coh", text="Cohesion", slider=True)502 def SOLIDIFY(self, layout, ob, md):503 split = layout.split()504 col = split.column()505 col.prop(md, "thickness")506 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")507 col.label(text="Crease:")508 col.prop(md, "edge_crease_inner", text="Inner")509 col.prop(md, "edge_crease_outer", text="Outer")510 col.prop(md, "edge_crease_rim", text="Rim")511 col.label(text="Material Index Offset:")512 col = split.column()513 col.prop(md, "offset")514 sub = col.column()515 sub.active = bool(md.vertex_group)516 sub.prop(md, "invert_vertex_group", text="Invert")517 sub.prop(md, "thickness_vertex_group", text="Factor")518 col.prop(md, "use_even_offset")519 col.prop(md, "use_quality_normals")520 col.prop(md, "use_rim")521 sub = col.column()522 row = sub.split(align=True, percentage=0.4)523 row.prop(md, "material_offset", text="")524 row = row.row()525 row.active = md.use_rim526 row.prop(md, "material_offset_rim", text="Rim")527 def SUBSURF(self, layout, ob, md):528 layout.row().prop(md, "subdivision_type", expand=True)529 split = layout.split()530 col = split.column()531 col.label(text="Subdivisions:")532 col.prop(md, "levels", text="View")533 col.prop(md, "render_levels", text="Render")534 col = split.column()535 col.label(text="Options:")536 col.prop(md, "use_subsurf_uv")537 col.prop(md, "show_only_control_edges")538 def SURFACE(self, layout, ob, md):539 layout.label(text="Settings can be found inside the Physics context")540 def UV_PROJECT(self, layout, ob, md):541 if ob.type == 'MESH':542 split = layout.split()543 col = split.column()544 col.label(text="Image:")545 col.prop(md, "image", text="")546 col = split.column()547 col.label(text="UV Layer:")548 col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")549 split = layout.split()550 col = split.column()551 col.prop(md, "use_image_override")552 col.prop(md, "projector_count", text="Projectors")553 for proj in md.projectors:554 col.prop(proj, "object", text="")555 col = split.column()556 sub = col.column(align=True)557 sub.prop(md, "aspect_x", text="Aspect X")558 sub.prop(md, "aspect_y", text="Aspect Y")559 sub = col.column(align=True)560 sub.prop(md, "scale_x", text="Scale X")561 sub.prop(md, "scale_y", text="Scale Y")562 def WARP(self, layout, ob, md):563 use_falloff = (md.falloff_type != 'NONE')564 split = layout.split()565 col = split.column()566 col.label(text="From:")567 col.prop(md, "object_from", text="")568 col.prop(md, "use_volume_preserve")569 col = split.column()570 col.label(text="To:")571 col.prop(md, "object_to", text="")572 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")573 col = layout.column()574 row = col.row(align=True)575 row.prop(md, "strength")576 if use_falloff:577 row.prop(md, "falloff_radius")578 col.prop(md, "falloff_type")579 if use_falloff:580 if md.falloff_type == 'CURVE':581 col.template_curve_mapping(md, "falloff_curve")582 # 2 new columns583 split = layout.split()584 col = split.column()585 col.label(text="Texture:")586 col.prop(md, "texture", text="")587 col = split.column()588 col.label(text="Texture Coordinates:")589 col.prop(md, "texture_coords", text="")590 if md.texture_coords == 'OBJECT':591 layout.prop(md, "texture_coords_object", text="Object")592 elif md.texture_coords == 'UV' and ob.type == 'MESH':593 layout.prop_search(md, "uv_layer", ob.data, "uv_textures")594 def WAVE(self, layout, ob, md):595 split = layout.split()596 col = split.column()597 col.label(text="Motion:")598 col.prop(md, "use_x")599 col.prop(md, "use_y")600 col.prop(md, "use_cyclic")601 col = split.column()602 col.prop(md, "use_normal")603 sub = col.column()604 sub.active = md.use_normal605 sub.prop(md, "use_normal_x", text="X")606 sub.prop(md, "use_normal_y", text="Y")607 sub.prop(md, "use_normal_z", text="Z")608 split = layout.split()609 col = split.column()610 col.label(text="Time:")611 sub = col.column(align=True)612 sub.prop(md, "time_offset", text="Offset")613 sub.prop(md, "lifetime", text="Life")614 col.prop(md, "damping_time", text="Damping")615 col = split.column()616 col.label(text="Position:")617 sub = col.column(align=True)618 sub.prop(md, "start_position_x", text="X")619 sub.prop(md, "start_position_y", text="Y")620 col.prop(md, "falloff_radius", text="Falloff")621 layout.separator()622 layout.prop(md, "start_position_object")623 layout.prop_search(md, "vertex_group", ob, "vertex_groups")624 split = layout.split(percentage=0.33)625 col = split.column()626 col.label(text="Texture")627 col = split.column()628 col.template_ID(md, "texture", new="texture.new")629 layout.prop(md, "texture_coords")630 if md.texture_coords == 'MAP_UV' and ob.type == 'MESH':631 layout.prop_search(md, "uv_layer", ob.data, "uv_textures")632 elif md.texture_coords == 'OBJECT':633 layout.prop(md, "texture_coords_object")634 layout.separator()635 split = layout.split()636 col = split.column()637 col.prop(md, "speed", slider=True)638 col.prop(md, "height", slider=True)639 col = split.column()640 col.prop(md, "width", slider=True)641 col.prop(md, "narrowness", slider=True)642if __name__ == "__main__": # only for live edit....

Full Screen

Full Screen

styleProps.js

Source:styleProps.js Github

copy

Full Screen

1import PropTypes from "prop-types";2const styleProps = {3 /** The description for myProp */4 gridTemplateColumns: PropTypes.oneOfType([5 PropTypes.number,6 PropTypes.string,7 PropTypes.object8 ]),9 gridGap: PropTypes.oneOfType([10 PropTypes.number,11 PropTypes.string,12 PropTypes.object13 ]),14 pointerEvents: PropTypes.oneOfType([15 PropTypes.number,16 PropTypes.string,17 PropTypes.object18 ]),19 alignContent: PropTypes.oneOfType([20 PropTypes.number,21 PropTypes.string,22 PropTypes.object23 ]),24 alignItems: PropTypes.oneOfType([25 PropTypes.number,26 PropTypes.string,27 PropTypes.object28 ]),29 alignSelf: PropTypes.oneOfType([30 PropTypes.number,31 PropTypes.string,32 PropTypes.object33 ]),34 animation: PropTypes.oneOfType([35 PropTypes.number,36 PropTypes.string,37 PropTypes.object38 ]),39 animationDelay: PropTypes.oneOfType([40 PropTypes.number,41 PropTypes.string,42 PropTypes.object43 ]),44 animationDirection: PropTypes.oneOfType([45 PropTypes.number,46 PropTypes.string,47 PropTypes.object48 ]),49 animationDuration: PropTypes.oneOfType([50 PropTypes.number,51 PropTypes.string,52 PropTypes.object53 ]),54 animationFillMode: PropTypes.oneOfType([55 PropTypes.number,56 PropTypes.string,57 PropTypes.object58 ]),59 animationIterationCount: PropTypes.oneOfType([60 PropTypes.number,61 PropTypes.string,62 PropTypes.object63 ]),64 animationName: PropTypes.oneOfType([65 PropTypes.number,66 PropTypes.string,67 PropTypes.object68 ]),69 animationTimingFunction: PropTypes.oneOfType([70 PropTypes.number,71 PropTypes.string,72 PropTypes.object73 ]),74 animationPlayState: PropTypes.oneOfType([75 PropTypes.number,76 PropTypes.string,77 PropTypes.object78 ]),79 background: PropTypes.oneOfType([80 PropTypes.number,81 PropTypes.string,82 PropTypes.object83 ]),84 backgroundAttachment: PropTypes.oneOfType([85 PropTypes.number,86 PropTypes.string,87 PropTypes.object88 ]),89 backgroundColor: PropTypes.oneOfType([90 PropTypes.number,91 PropTypes.string,92 PropTypes.object93 ]),94 backgroundImage: PropTypes.oneOfType([95 PropTypes.number,96 PropTypes.string,97 PropTypes.object98 ]),99 backgroundPosition: PropTypes.oneOfType([100 PropTypes.number,101 PropTypes.string,102 PropTypes.object103 ]),104 backgroundRepeat: PropTypes.oneOfType([105 PropTypes.number,106 PropTypes.string,107 PropTypes.object108 ]),109 backgroundClip: PropTypes.oneOfType([110 PropTypes.number,111 PropTypes.string,112 PropTypes.object113 ]),114 clipPath: PropTypes.oneOfType([115 PropTypes.number,116 PropTypes.string,117 PropTypes.object118 ]),119 backgroundSize: PropTypes.oneOfType([120 PropTypes.number,121 PropTypes.string,122 PropTypes.object123 ]),124 backfaceVisibility: PropTypes.oneOfType([125 PropTypes.number,126 PropTypes.string,127 PropTypes.object128 ]),129 border: PropTypes.oneOfType([130 PropTypes.number,131 PropTypes.string,132 PropTypes.object133 ]),134 borderBottom: PropTypes.oneOfType([135 PropTypes.number,136 PropTypes.string,137 PropTypes.object138 ]),139 borderBottomColor: PropTypes.oneOfType([140 PropTypes.number,141 PropTypes.string,142 PropTypes.object143 ]),144 borderBottomLeftRadius: PropTypes.oneOfType([145 PropTypes.number,146 PropTypes.string,147 PropTypes.object148 ]),149 borderBottomRightRadius: PropTypes.oneOfType([150 PropTypes.number,151 PropTypes.string,152 PropTypes.object153 ]),154 borderBottomStyle: PropTypes.oneOfType([155 PropTypes.number,156 PropTypes.string,157 PropTypes.object158 ]),159 borderBottomWidth: PropTypes.oneOfType([160 PropTypes.number,161 PropTypes.string,162 PropTypes.object163 ]),164 borderCollapse: PropTypes.oneOfType([165 PropTypes.number,166 PropTypes.string,167 PropTypes.object168 ]),169 borderColor: PropTypes.oneOfType([170 PropTypes.number,171 PropTypes.string,172 PropTypes.object173 ]),174 borderImage: PropTypes.oneOfType([175 PropTypes.number,176 PropTypes.string,177 PropTypes.object178 ]),179 borderImageOutset: PropTypes.oneOfType([180 PropTypes.number,181 PropTypes.string,182 PropTypes.object183 ]),184 borderImageRepeat: PropTypes.oneOfType([185 PropTypes.number,186 PropTypes.string,187 PropTypes.object188 ]),189 borderImageSlice: PropTypes.oneOfType([190 PropTypes.number,191 PropTypes.string,192 PropTypes.object193 ]),194 borderImageSource: PropTypes.oneOfType([195 PropTypes.number,196 PropTypes.string,197 PropTypes.object198 ]),199 borderImageWidth: PropTypes.oneOfType([200 PropTypes.number,201 PropTypes.string,202 PropTypes.object203 ]),204 borderLeft: PropTypes.oneOfType([205 PropTypes.number,206 PropTypes.string,207 PropTypes.object208 ]),209 borderLeftColor: PropTypes.oneOfType([210 PropTypes.number,211 PropTypes.string,212 PropTypes.object213 ]),214 borderLeftStyle: PropTypes.oneOfType([215 PropTypes.number,216 PropTypes.string,217 PropTypes.object218 ]),219 borderLeftWidth: PropTypes.oneOfType([220 PropTypes.number,221 PropTypes.string,222 PropTypes.object223 ]),224 borderRadius: PropTypes.oneOfType([225 PropTypes.number,226 PropTypes.string,227 PropTypes.object228 ]),229 borderRight: PropTypes.oneOfType([230 PropTypes.number,231 PropTypes.string,232 PropTypes.object233 ]),234 borderRightColor: PropTypes.oneOfType([235 PropTypes.number,236 PropTypes.string,237 PropTypes.object238 ]),239 borderRightStyle: PropTypes.oneOfType([240 PropTypes.number,241 PropTypes.string,242 PropTypes.object243 ]),244 borderRightWidth: PropTypes.oneOfType([245 PropTypes.number,246 PropTypes.string,247 PropTypes.object248 ]),249 borderSpacing: PropTypes.oneOfType([250 PropTypes.number,251 PropTypes.string,252 PropTypes.object253 ]),254 borderStyle: PropTypes.oneOfType([255 PropTypes.number,256 PropTypes.string,257 PropTypes.object258 ]),259 borderTop: PropTypes.oneOfType([260 PropTypes.number,261 PropTypes.string,262 PropTypes.object263 ]),264 borderTopColor: PropTypes.oneOfType([265 PropTypes.number,266 PropTypes.string,267 PropTypes.object268 ]),269 borderTopLeftRadius: PropTypes.oneOfType([270 PropTypes.number,271 PropTypes.string,272 PropTypes.object273 ]),274 borderTopRightRadius: PropTypes.oneOfType([275 PropTypes.number,276 PropTypes.string,277 PropTypes.object278 ]),279 borderTopStyle: PropTypes.oneOfType([280 PropTypes.number,281 PropTypes.string,282 PropTypes.object283 ]),284 borderTopWidth: PropTypes.oneOfType([285 PropTypes.number,286 PropTypes.string,287 PropTypes.object288 ]),289 borderWidth: PropTypes.oneOfType([290 PropTypes.number,291 PropTypes.string,292 PropTypes.object293 ]),294 bottom: PropTypes.oneOfType([295 PropTypes.number,296 PropTypes.string,297 PropTypes.object298 ]),299 boxDecorationBreak: PropTypes.oneOfType([300 PropTypes.number,301 PropTypes.string,302 PropTypes.object303 ]),304 boxShadow: PropTypes.oneOfType([305 PropTypes.number,306 PropTypes.string,307 PropTypes.object308 ]),309 boxSizing: PropTypes.oneOfType([310 PropTypes.number,311 PropTypes.string,312 PropTypes.object313 ]),314 captionSide: PropTypes.oneOfType([315 PropTypes.number,316 PropTypes.string,317 PropTypes.object318 ]),319 clear: PropTypes.oneOfType([320 PropTypes.number,321 PropTypes.string,322 PropTypes.object323 ]),324 clip: PropTypes.oneOfType([325 PropTypes.number,326 PropTypes.string,327 PropTypes.object328 ]),329 color: PropTypes.oneOfType([330 PropTypes.number,331 PropTypes.string,332 PropTypes.object333 ]),334 columnCount: PropTypes.oneOfType([335 PropTypes.number,336 PropTypes.string,337 PropTypes.object338 ]),339 columnFill: PropTypes.oneOfType([340 PropTypes.number,341 PropTypes.string,342 PropTypes.object343 ]),344 columnGap: PropTypes.oneOfType([345 PropTypes.number,346 PropTypes.string,347 PropTypes.object348 ]),349 columnRule: PropTypes.oneOfType([350 PropTypes.number,351 PropTypes.string,352 PropTypes.object353 ]),354 columnRuleColor: PropTypes.oneOfType([355 PropTypes.number,356 PropTypes.string,357 PropTypes.object358 ]),359 columnRuleStyle: PropTypes.oneOfType([360 PropTypes.number,361 PropTypes.string,362 PropTypes.object363 ]),364 columnRuleWidth: PropTypes.oneOfType([365 PropTypes.number,366 PropTypes.string,367 PropTypes.object368 ]),369 columns: PropTypes.oneOfType([370 PropTypes.number,371 PropTypes.string,372 PropTypes.object373 ]),374 columnSpan: PropTypes.oneOfType([375 PropTypes.number,376 PropTypes.string,377 PropTypes.object378 ]),379 columnWidth: PropTypes.oneOfType([380 PropTypes.number,381 PropTypes.string,382 PropTypes.object383 ]),384 content: PropTypes.oneOfType([385 PropTypes.number,386 PropTypes.string,387 PropTypes.object388 ]),389 counterIncrement: PropTypes.oneOfType([390 PropTypes.number,391 PropTypes.string,392 PropTypes.object393 ]),394 counterReset: PropTypes.oneOfType([395 PropTypes.number,396 PropTypes.string,397 PropTypes.object398 ]),399 cursor: PropTypes.oneOfType([400 PropTypes.number,401 PropTypes.string,402 PropTypes.object403 ]),404 direction: PropTypes.oneOfType([405 PropTypes.number,406 PropTypes.string,407 PropTypes.object408 ]),409 display: PropTypes.oneOfType([410 PropTypes.number,411 PropTypes.string,412 PropTypes.object413 ]),414 emptyCells: PropTypes.oneOfType([415 PropTypes.number,416 PropTypes.string,417 PropTypes.object418 ]),419 backdropFilter: PropTypes.oneOfType([420 PropTypes.number,421 PropTypes.string,422 PropTypes.object423 ]),424 filter: PropTypes.oneOfType([425 PropTypes.number,426 PropTypes.string,427 PropTypes.object428 ]),429 flex: PropTypes.oneOfType([430 PropTypes.number,431 PropTypes.string,432 PropTypes.object433 ]),434 flexBasis: PropTypes.oneOfType([435 PropTypes.number,436 PropTypes.string,437 PropTypes.object438 ]),439 flexDirection: PropTypes.oneOfType([440 PropTypes.number,441 PropTypes.string,442 PropTypes.object443 ]),444 flexFlow: PropTypes.oneOfType([445 PropTypes.number,446 PropTypes.string,447 PropTypes.object448 ]),449 flexGrow: PropTypes.oneOfType([450 PropTypes.number,451 PropTypes.string,452 PropTypes.object453 ]),454 flexShrink: PropTypes.oneOfType([455 PropTypes.number,456 PropTypes.string,457 PropTypes.object458 ]),459 flexWrap: PropTypes.oneOfType([460 PropTypes.number,461 PropTypes.string,462 PropTypes.object463 ]),464 cssFloat: PropTypes.oneOfType([465 PropTypes.number,466 PropTypes.string,467 PropTypes.object468 ]),469 font: PropTypes.oneOfType([470 PropTypes.number,471 PropTypes.string,472 PropTypes.object473 ]),474 fontFamily: PropTypes.oneOfType([475 PropTypes.number,476 PropTypes.string,477 PropTypes.object478 ]),479 fontSize: PropTypes.oneOfType([480 PropTypes.number,481 PropTypes.string,482 PropTypes.object483 ]),484 fontStyle: PropTypes.oneOfType([485 PropTypes.number,486 PropTypes.string,487 PropTypes.object488 ]),489 fontVariant: PropTypes.oneOfType([490 PropTypes.number,491 PropTypes.string,492 PropTypes.object493 ]),494 fontWeight: PropTypes.oneOfType([495 PropTypes.number,496 PropTypes.string,497 PropTypes.object498 ]),499 fontSizeAdjust: PropTypes.oneOfType([500 PropTypes.number,501 PropTypes.string,502 PropTypes.object503 ]),504 fontStretch: PropTypes.oneOfType([505 PropTypes.number,506 PropTypes.string,507 PropTypes.object508 ]),509 hangingPunctuation: PropTypes.oneOfType([510 PropTypes.number,511 PropTypes.string,512 PropTypes.object513 ]),514 height: PropTypes.oneOfType([515 PropTypes.number,516 PropTypes.string,517 PropTypes.object518 ]),519 hyphens: PropTypes.oneOfType([520 PropTypes.number,521 PropTypes.string,522 PropTypes.object523 ]),524 imageOrientation: PropTypes.oneOfType([525 PropTypes.number,526 PropTypes.string,527 PropTypes.object528 ]),529 isolation: PropTypes.oneOfType([530 PropTypes.number,531 PropTypes.string,532 PropTypes.object533 ]),534 justifyContent: PropTypes.oneOfType([535 PropTypes.number,536 PropTypes.string,537 PropTypes.object538 ]),539 left: PropTypes.oneOfType([540 PropTypes.number,541 PropTypes.string,542 PropTypes.object543 ]),544 letterSpacing: PropTypes.oneOfType([545 PropTypes.number,546 PropTypes.string,547 PropTypes.object548 ]),549 lineHeight: PropTypes.oneOfType([550 PropTypes.number,551 PropTypes.string,552 PropTypes.object553 ]),554 listStyle: PropTypes.oneOfType([555 PropTypes.number,556 PropTypes.string,557 PropTypes.object558 ]),559 listStyleImage: PropTypes.oneOfType([560 PropTypes.number,561 PropTypes.string,562 PropTypes.object563 ]),564 listStylePosition: PropTypes.oneOfType([565 PropTypes.number,566 PropTypes.string,567 PropTypes.object568 ]),569 listStyleType: PropTypes.oneOfType([570 PropTypes.number,571 PropTypes.string,572 PropTypes.object573 ]),574 margin: PropTypes.oneOfType([575 PropTypes.number,576 PropTypes.string,577 PropTypes.object578 ]),579 marginBottom: PropTypes.oneOfType([580 PropTypes.number,581 PropTypes.string,582 PropTypes.object583 ]),584 marginLeft: PropTypes.oneOfType([585 PropTypes.number,586 PropTypes.string,587 PropTypes.object588 ]),589 marginRight: PropTypes.oneOfType([590 PropTypes.number,591 PropTypes.string,592 PropTypes.object593 ]),594 marginTop: PropTypes.oneOfType([595 PropTypes.number,596 PropTypes.string,597 PropTypes.object598 ]),599 maxHeight: PropTypes.oneOfType([600 PropTypes.number,601 PropTypes.string,602 PropTypes.object603 ]),604 maxWidth: PropTypes.oneOfType([605 PropTypes.number,606 PropTypes.string,607 PropTypes.object608 ]),609 minHeight: PropTypes.oneOfType([610 PropTypes.number,611 PropTypes.string,612 PropTypes.object613 ]),614 minWidth: PropTypes.oneOfType([615 PropTypes.number,616 PropTypes.string,617 PropTypes.object618 ]),619 navDown: PropTypes.oneOfType([620 PropTypes.number,621 PropTypes.string,622 PropTypes.object623 ]),624 navIndex: PropTypes.oneOfType([625 PropTypes.number,626 PropTypes.string,627 PropTypes.object628 ]),629 navLeft: PropTypes.oneOfType([630 PropTypes.number,631 PropTypes.string,632 PropTypes.object633 ]),634 navRight: PropTypes.oneOfType([635 PropTypes.number,636 PropTypes.string,637 PropTypes.object638 ]),639 navUp: PropTypes.oneOfType([640 PropTypes.number,641 PropTypes.string,642 PropTypes.object643 ]),644 objectFit: PropTypes.oneOfType([645 PropTypes.number,646 PropTypes.string,647 PropTypes.object648 ]),649 objectPosition: PropTypes.oneOfType([650 PropTypes.number,651 PropTypes.string,652 PropTypes.object653 ]),654 opacity: PropTypes.oneOfType([655 PropTypes.number,656 PropTypes.string,657 PropTypes.object658 ]),659 order: PropTypes.oneOfType([660 PropTypes.number,661 PropTypes.string,662 PropTypes.object663 ]),664 orphans: PropTypes.oneOfType([665 PropTypes.number,666 PropTypes.string,667 PropTypes.object668 ]),669 outline: PropTypes.oneOfType([670 PropTypes.number,671 PropTypes.string,672 PropTypes.object673 ]),674 outlineColor: PropTypes.oneOfType([675 PropTypes.number,676 PropTypes.string,677 PropTypes.object678 ]),679 outlineOffset: PropTypes.oneOfType([680 PropTypes.number,681 PropTypes.string,682 PropTypes.object683 ]),684 outlineStyle: PropTypes.oneOfType([685 PropTypes.number,686 PropTypes.string,687 PropTypes.object688 ]),689 outlineWidth: PropTypes.oneOfType([690 PropTypes.number,691 PropTypes.string,692 PropTypes.object693 ]),694 overflow: PropTypes.oneOfType([695 PropTypes.number,696 PropTypes.string,697 PropTypes.object698 ]),699 overflowX: PropTypes.oneOfType([700 PropTypes.number,701 PropTypes.string,702 PropTypes.object703 ]),704 overflowY: PropTypes.oneOfType([705 PropTypes.number,706 PropTypes.string,707 PropTypes.object708 ]),709 padding: PropTypes.oneOfType([710 PropTypes.number,711 PropTypes.string,712 PropTypes.object713 ]),714 paddingBottom: PropTypes.oneOfType([715 PropTypes.number,716 PropTypes.string,717 PropTypes.object718 ]),719 paddingLeft: PropTypes.oneOfType([720 PropTypes.number,721 PropTypes.string,722 PropTypes.object723 ]),724 paddingRight: PropTypes.oneOfType([725 PropTypes.number,726 PropTypes.string,727 PropTypes.object728 ]),729 paddingTop: PropTypes.oneOfType([730 PropTypes.number,731 PropTypes.string,732 PropTypes.object733 ]),734 pageBreakAfter: PropTypes.oneOfType([735 PropTypes.number,736 PropTypes.string,737 PropTypes.object738 ]),739 pageBreakBefore: PropTypes.oneOfType([740 PropTypes.number,741 PropTypes.string,742 PropTypes.object743 ]),744 pageBreakInside: PropTypes.oneOfType([745 PropTypes.number,746 PropTypes.string,747 PropTypes.object748 ]),749 perspective: PropTypes.oneOfType([750 PropTypes.number,751 PropTypes.string,752 PropTypes.object753 ]),754 perspectiveOrigin: PropTypes.oneOfType([755 PropTypes.number,756 PropTypes.string,757 PropTypes.object758 ]),759 position: PropTypes.oneOfType([760 PropTypes.number,761 PropTypes.string,762 PropTypes.object763 ]),764 quotes: PropTypes.oneOfType([765 PropTypes.number,766 PropTypes.string,767 PropTypes.object768 ]),769 resize: PropTypes.oneOfType([770 PropTypes.number,771 PropTypes.string,772 PropTypes.object773 ]),774 right: PropTypes.oneOfType([775 PropTypes.number,776 PropTypes.string,777 PropTypes.object778 ]),779 tableLayout: PropTypes.oneOfType([780 PropTypes.number,781 PropTypes.string,782 PropTypes.object783 ]),784 tabSize: PropTypes.oneOfType([785 PropTypes.number,786 PropTypes.string,787 PropTypes.object788 ]),789 textAlign: PropTypes.oneOfType([790 PropTypes.number,791 PropTypes.string,792 PropTypes.object793 ]),794 textAlignLast: PropTypes.oneOfType([795 PropTypes.number,796 PropTypes.string,797 PropTypes.object798 ]),799 textDecoration: PropTypes.oneOfType([800 PropTypes.number,801 PropTypes.string,802 PropTypes.object803 ]),804 textDecorationColor: PropTypes.oneOfType([805 PropTypes.number,806 PropTypes.string,807 PropTypes.object808 ]),809 textDecorationLine: PropTypes.oneOfType([810 PropTypes.number,811 PropTypes.string,812 PropTypes.object813 ]),814 textDecorationStyle: PropTypes.oneOfType([815 PropTypes.number,816 PropTypes.string,817 PropTypes.object818 ]),819 textIndent: PropTypes.oneOfType([820 PropTypes.number,821 PropTypes.string,822 PropTypes.object823 ]),824 textJustify: PropTypes.oneOfType([825 PropTypes.number,826 PropTypes.string,827 PropTypes.object828 ]),829 textOverflow: PropTypes.oneOfType([830 PropTypes.number,831 PropTypes.string,832 PropTypes.object833 ]),834 textShadow: PropTypes.oneOfType([835 PropTypes.number,836 PropTypes.string,837 PropTypes.object838 ]),839 textTransform: PropTypes.oneOfType([840 PropTypes.number,841 PropTypes.string,842 PropTypes.object843 ]),844 top: PropTypes.oneOfType([845 PropTypes.number,846 PropTypes.string,847 PropTypes.object848 ]),849 transform: PropTypes.oneOfType([850 PropTypes.number,851 PropTypes.string,852 PropTypes.object853 ]),854 transformOrigin: PropTypes.oneOfType([855 PropTypes.number,856 PropTypes.string,857 PropTypes.object858 ]),859 transformStyle: PropTypes.oneOfType([860 PropTypes.number,861 PropTypes.string,862 PropTypes.object863 ]),864 transition: PropTypes.oneOfType([865 PropTypes.number,866 PropTypes.string,867 PropTypes.object868 ]),869 transitionProperty: PropTypes.oneOfType([870 PropTypes.number,871 PropTypes.string,872 PropTypes.object873 ]),874 transitionDuration: PropTypes.oneOfType([875 PropTypes.number,876 PropTypes.string,877 PropTypes.object878 ]),879 transitionTimingFunction: PropTypes.oneOfType([880 PropTypes.number,881 PropTypes.string,882 PropTypes.object883 ]),884 transitionDelay: PropTypes.oneOfType([885 PropTypes.number,886 PropTypes.string,887 PropTypes.object888 ]),889 unicodeBidi: PropTypes.oneOfType([890 PropTypes.number,891 PropTypes.string,892 PropTypes.object893 ]),894 userSelect: PropTypes.oneOfType([895 PropTypes.number,896 PropTypes.string,897 PropTypes.object898 ]),899 verticalAlign: PropTypes.oneOfType([900 PropTypes.number,901 PropTypes.string,902 PropTypes.object903 ]),904 visibility: PropTypes.oneOfType([905 PropTypes.number,906 PropTypes.string,907 PropTypes.object908 ]),909 whiteSpace: PropTypes.oneOfType([910 PropTypes.number,911 PropTypes.string,912 PropTypes.object913 ]),914 width: PropTypes.oneOfType([915 PropTypes.number,916 PropTypes.string,917 PropTypes.object918 ]),919 wordBreak: PropTypes.oneOfType([920 PropTypes.number,921 PropTypes.string,922 PropTypes.object923 ]),924 wordSpacing: PropTypes.oneOfType([925 PropTypes.number,926 PropTypes.string,927 PropTypes.object928 ]),929 wordWrap: PropTypes.oneOfType([930 PropTypes.number,931 PropTypes.string,932 PropTypes.object933 ]),934 widows: PropTypes.oneOfType([935 PropTypes.number,936 PropTypes.string,937 PropTypes.object938 ]),939 zIndex: PropTypes.oneOfType([940 PropTypes.number,941 PropTypes.string,942 PropTypes.object943 ])944};...

Full Screen

Full Screen

BattleProps.py

Source:BattleProps.py Github

copy

Full Screen

1from panda3d.core import *2from direct.actor import Actor3from direct.directnotify import DirectNotifyGlobal4from otp.otpbase import OTPGlobals5import BattleParticles6import random7Props = ((5, 'partyBall', 'partyBall'),8 (5,9 'feather',10 'feather-mod',11 'feather-chan'),12 (5, 'lips', 'lips'),13 (5, 'lipstick', 'lipstick'),14 (5, 'hat', 'hat'),15 (5, 'cane', 'cane'),16 (5,17 'cubes',18 'cubes-mod',19 'cubes-chan'),20 (5, 'ladder', 'ladder2'),21 (4,22 'fishing-pole',23 'fishing-pole-mod',24 'fishing-pole-chan'),25 (5,26 '1dollar',27 '1dollar-bill-mod',28 '1dollar-bill-chan'),29 (5, 'big-magnet', 'magnet'),30 (5,31 'hypno-goggles',32 'hypnotize-mod',33 'hypnotize-chan'),34 (5, 'slideshow', 'av_screen'),35 (5,36 'banana',37 'banana-peel-mod',38 'banana-peel-chan'),39 (5,40 'rake',41 'rake-mod',42 'rake-chan'),43 (5,44 'marbles',45 'marbles-mod',46 'marbles-chan'),47 (5,48 'tnt',49 'tnt-mod',50 'tnt-chan'),51 (5, 'trapdoor', 'trapdoor'),52 (5, 'quicksand', 'quicksand'),53 (5, 'traintrack', 'traintrack2'),54 (5, 'train', 'train'),55 (5, 'megaphone', 'megaphone'),56 (5, 'aoogah', 'aoogah'),57 (5, 'bikehorn', 'bikehorn'),58 (5, 'bugle', 'bugle'),59 (5, 'elephant', 'elephant'),60 (5, 'fog_horn', 'fog_horn'),61 (5, 'whistle', 'whistle'),62 (5, 'singing', 'singing'),63 (3.5, 'creampie', 'tart'),64 (5, 'fruitpie-slice', 'fruit-pie-slice'),65 (5, 'creampie-slice', 'cream-pie-slice'),66 (5,67 'birthday-cake',68 'birthday-cake-mod',69 'birthday-cake-chan'),70 (5, 'wedding-cake', 'wedding_cake'),71 (3.5, 'squirting-flower', 'squirting-flower'),72 (5,73 'glass',74 'glass-mod',75 'glass-chan'),76 (4, 'water-gun', 'water-gun'),77 (3.5, 'bottle', 'bottle'),78 (5,79 'firehose',80 'firehose-mod',81 'firehose-chan'),82 (5, 'hydrant', 'battle_hydrant'),83 (4,84 'stormcloud',85 'stormcloud-mod',86 'stormcloud-chan'),87 (5, 'geyser', 'geyser'),88 (3.5, 'button', 'button'),89 (5,90 'flowerpot',91 'flowerpot-mod',92 'flowerpot-chan'),93 (5,94 'sandbag',95 'sandbag-mod',96 'sandbag-chan'),97 (4,98 'anvil',99 'anvil-mod',100 'anvil-chan'),101 (5,102 'weight',103 'weight-mod',104 'weight-chan'),105 (5,106 'safe',107 'safe-mod',108 'safe-chan'),109 (5,110 'piano',111 'piano-mod',112 'piano-chan'),113 (5,114 'rake-react',115 'rake-step-mod',116 'rake-step-chan'),117 (5, 'pad', 'pad'),118 (4,119 'propeller',120 'propeller-mod',121 'propeller-chan'),122 (5,123 'calculator',124 'calculator-mod',125 'calculator-chan'),126 (5, 'rollodex', 'roll-o-dex'),127 (5, 'rubber-stamp', 'rubber-stamp'),128 (5,129 'rubber-stamp-pad',130 'rubber-stamp-pad-mod',131 'rubber-stamp-pad-chan'),132 (5,133 'smile',134 'smile-mod',135 'smile-chan'),136 (5, 'golf-club', 'golf-club'),137 (5, 'golf-ball', 'golf-ball'),138 (5, 'redtape', 'redtape'),139 (5, 'redtape-tube', 'redtape-tube'),140 (5, 'bounced-check', 'bounced-check'),141 (5,142 'calculator',143 'calculator-mod',144 'calculator-chan'),145 (3.5,146 'clip-on-tie',147 'clip-on-tie-mod',148 'clip-on-tie-chan'),149 (5, 'pen', 'pen'),150 (5, 'pencil', 'pencil'),151 (3.5, 'phone', 'phone'),152 (3.5, 'receiver', 'receiver'),153 (5, 'sharpener', 'sharpener'),154 (3.5, 'shredder', 'shredder'),155 (3.5,156 'shredder-paper',157 'shredder-paper-mod',158 'shredder-paper-chan'),159 (5, 'watercooler', 'watercooler'),160 (5, 'dagger', 'dagger'),161 (5, 'card', 'card'),162 (5, 'baseball', 'baseball'),163 (5, 'bird', 'bird'),164 (5, 'can', 'can'),165 (5, 'cigar', 'cigar'),166 (5, 'evil-eye', 'evil-eye'),167 (5, 'gavel', 'gavel'),168 (5, 'half-windsor', 'half-windsor'),169 (5, 'lawbook', 'lawbook'),170 (5, 'newspaper', 'newspaper'),171 (5, 'pink-slip', 'pink-slip'),172 (5,173 'teeth',174 'teeth-mod',175 'teeth-chan'),176 (5, 'power-tie', 'power-tie'),177 (3.5, 'spray', 'spray'),178 (3.5, 'splash', 'splash'),179 (3.5,180 'splat',181 'splat-mod',182 'splat-chan'),183 (3.5,184 'stun',185 'stun-mod',186 'stun-chan'),187 (3.5, 'glow', 'glow'),188 (3.5,189 'suit_explosion',190 'suit_explosion-mod',191 'suit_explosion-chan'),192 (3.5, 'suit_explosion_dust', 'dust_cloud'),193 (4, 'ripples', 'ripples'),194 (4, 'wake', 'wake'),195 (4,196 'splashdown',197 'SZ_splashdown-mod',198 'SZ_splashdown-chan'))199CreampieColor = VBase4(250.0 / 255.0, 241.0 / 255.0, 24.0 / 255.0, 1.0)200FruitpieColor = VBase4(55.0 / 255.0, 40.0 / 255.0, 148.0 / 255.0, 1.0)201BirthdayCakeColor = VBase4(253.0 / 255.0, 119.0 / 255.0, 220.0 / 255.0, 1.0)202Splats = {'tart': (0.3, FruitpieColor),203 'fruitpie-slice': (0.5, FruitpieColor),204 'creampie-slice': (0.5, CreampieColor),205 'fruitpie': (0.7, FruitpieColor),206 'creampie': (0.7, CreampieColor),207 'birthday-cake': (0.9, BirthdayCakeColor)}208Variants = ('tart',209 'fruitpie',210 'splat-tart',211 'dust',212 'kapow',213 'double-windsor',214 'splat-fruitpie-slice',215 'splat-creampie-slice',216 'splat-fruitpie',217 'splat-creampie',218 'splat-birthday-cake',219 'splash-from-splat',220 'clip-on-tie',221 'lips',222 'small-magnet',223 '5dollar',224 '10dollar',225 'suit_explosion',226 'quicksand',227 'trapdoor',228 'geyser',229 'ship',230 'trolley',231 'traintrack')232class PropPool:233 notify = DirectNotifyGlobal.directNotify.newCategory('PropPool')234 def __init__(self):235 self.props = {}236 self.propCache = []237 self.propStrings = {}238 self.propTypes = {}239 self.gagsByTrack = []240 self.maxPoolSize = base.config.GetInt('prop-pool-size', 8)241 for p in Props:242 phase = p[0]243 propName = p[1]244 modelName = p[2]245 if len(p) == 4:246 animName = p[3]247 propPath = self.getPath(phase, modelName)248 animPath = self.getPath(phase, animName)249 self.propTypes[propName] = 'actor'250 self.propStrings[propName] = (propPath, animPath)251 else:252 propPath = self.getPath(phase, modelName)253 self.propTypes[propName] = 'model'254 self.propStrings[propName] = (propPath,)255 propName = 'tart'256 self.propStrings[propName] = (self.getPath(3.5, 'tart'),)257 self.propTypes[propName] = 'model'258 propName = 'fruitpie'259 self.propStrings[propName] = (self.getPath(3.5, 'tart'),)260 self.propTypes[propName] = 'model'261 propName = 'double-windsor'262 self.propStrings[propName] = (self.getPath(5, 'half-windsor'),)263 self.propTypes[propName] = 'model'264 splatAnimFileName = self.getPath(3.5, 'splat-chan')265 for splat in Splats.keys():266 propName = 'splat-' + splat267 self.propStrings[propName] = (self.getPath(3.5, 'splat-mod'), splatAnimFileName)268 self.propTypes[propName] = 'actor'269 propName = 'splash-from-splat'270 self.propStrings[propName] = (self.getPath(3.5, 'splat-mod'), splatAnimFileName)271 self.propTypes[propName] = 'actor'272 propName = 'small-magnet'273 self.propStrings[propName] = (self.getPath(5, 'magnet'),)274 self.propTypes[propName] = 'model'275 propName = '5dollar'276 self.propStrings[propName] = (self.getPath(5, '1dollar-bill-mod'), self.getPath(5, '1dollar-bill-chan'))277 self.propTypes[propName] = 'actor'278 propName = '10dollar'279 self.propStrings[propName] = (self.getPath(5, '1dollar-bill-mod'), self.getPath(5, '1dollar-bill-chan'))280 self.propTypes[propName] = 'actor'281 propName = 'dust'282 self.propStrings[propName] = (self.getPath(5, 'dust-mod'), self.getPath(5, 'dust-chan'))283 self.propTypes[propName] = 'actor'284 propName = 'kapow'285 self.propStrings[propName] = (self.getPath(5, 'kapow-mod'), self.getPath(5, 'kapow-chan'))286 self.propTypes[propName] = 'actor'287 propName = 'ship'288 self.propStrings[propName] = ('phase_5/models/props/ship.bam',)289 self.propTypes[propName] = 'model'290 propName = 'trolley'291 self.propStrings[propName] = ('phase_4/models/modules/trolley_station_TT',)292 self.propTypes[propName] = 'model'293 def getPath(self, phase, model):294 return 'phase_%s/models/props/%s' % (phase, model)295 def makeVariant(self, name):296 if name == 'tart':297 self.props[name].setScale(0.5)298 elif name == 'fruitpie':299 self.props[name].setScale(0.75)300 elif name == 'double-windsor':301 self.props[name].setScale(1.5)302 elif name[:6] == 'splat-':303 prop = self.props[name]304 scale = prop.getScale() * Splats[name[6:]][0]305 prop.setScale(scale)306 prop.setColor(Splats[name[6:]][1])307 elif name == 'splash-from-splat':308 self.props[name].setColor(0.75, 0.75, 1.0, 1.0)309 elif name == 'clip-on-tie':310 tie = self.props[name]311 tie.getChild(0).setHpr(23.86, -16.03, 9.18)312 elif name == 'small-magnet':313 self.props[name].setScale(0.5)314 elif name == 'shredder-paper':315 paper = self.props[name]316 paper.setPosHpr(2.22, -0.95, 1.16, -48.61, 26.57, -111.51)317 paper.flattenMedium()318 elif name == 'lips':319 lips = self.props[name]320 lips.setPos(0, 0, -3.04)321 lips.flattenMedium()322 elif name == '5dollar':323 tex = loader.loadTexture('phase_5/maps/dollar_5.jpg')324 tex.setMinfilter(Texture.FTLinearMipmapLinear)325 tex.setMagfilter(Texture.FTLinear)326 self.props[name].setTexture(tex, 1)327 elif name == '10dollar':328 tex = loader.loadTexture('phase_5/maps/dollar_10.jpg')329 tex.setMinfilter(Texture.FTLinearMipmapLinear)330 tex.setMagfilter(Texture.FTLinear)331 self.props[name].setTexture(tex, 1)332 elif name == 'dust':333 bin = 110334 for cloudNum in xrange(1, 12):335 cloudName = '**/cloud' + str(cloudNum)336 cloud = self.props[name].find(cloudName)337 cloud.setBin('fixed', bin)338 bin -= 10339 elif name == 'kapow':340 l = self.props[name].find('**/letters')341 l.setBin('fixed', 20)342 e = self.props[name].find('**/explosion')343 e.setBin('fixed', 10)344 elif name == 'suit_explosion':345 joints = ['**/joint_scale_POW', '**/joint_scale_BLAM', '**/joint_scale_BOOM']346 joint = random.choice(joints)347 self.props[name].find(joint).hide()348 joints.remove(joint)349 joint = random.choice(joints)350 self.props[name].find(joint).hide()351 elif name == 'quicksand' or name == 'trapdoor':352 p = self.props[name]353 p.setBin('shadow', -5)354 p.setDepthWrite(0)355 p.getChild(0).setPos(0, 0, OTPGlobals.FloorOffset)356 elif name == 'traintrack' or name == 'traintrack2':357 prop = self.props[name]358 prop.find('**/tunnel3').hide()359 prop.find('**/tunnel2').hide()360 prop.find('**/tracksA').setPos(0, 0, OTPGlobals.FloorOffset)361 elif name == 'geyser':362 p = self.props[name]363 s = SequenceNode('geyser')364 p.findAllMatches('**/Splash*').reparentTo(NodePath(s))365 s.loop(0)366 s.setFrameRate(12)367 p.attachNewNode(s)368 elif name == 'ship':369 self.props[name] = self.props[name].find('**/ship_gag')370 elif name == 'trolley':371 self.props[name] = self.props[name].find('**/trolley_car')372 def unloadProps(self):373 for p in self.props.values():374 if type(p) != type(()):375 self.__delProp(p)376 self.props = {}377 self.propCache = []378 def getProp(self, name):379 return self.__getPropCopy(name)380 def __getPropCopy(self, name):381 if self.propTypes[name] == 'actor':382 if name not in self.props:383 prop = Actor.Actor()384 prop.loadModel(self.propStrings[name][0])385 animDict = {}386 animDict[name] = self.propStrings[name][1]387 prop.loadAnims(animDict)388 prop.setName(name)389 self.storeProp(name, prop)390 if name in Variants:391 self.makeVariant(name)392 return Actor.Actor(other=self.props[name])393 else:394 if name not in self.props:395 prop = loader.loadModel(self.propStrings[name][0])396 prop.setName(name)397 self.storeProp(name, prop)398 if name in Variants:399 self.makeVariant(name)400 return self.props[name].copyTo(hidden)401 def storeProp(self, name, prop):402 self.props[name] = prop403 self.propCache.append(prop)404 if len(self.props) > self.maxPoolSize:405 oldest = self.propCache.pop(0)406 del self.props[oldest.getName()]407 self.__delProp(oldest)408 self.notify.debug('props = %s' % self.props)409 self.notify.debug('propCache = %s' % self.propCache)410 def getPropType(self, name):411 return self.propTypes[name]412 def __delProp(self, prop):413 if prop == None:414 self.notify.warning('tried to delete null prop!')415 return416 if isinstance(prop, Actor.Actor):417 prop.cleanup()418 else:419 prop.removeNode()420 return421 def getGagsByTrack(self):422 self.gagsByTrack = [423 [self.getProp('feather'), self.getProp('megaphone'), self.getProp('lipstick'), self.getProp('cane'), BattleParticles.createParticleEffect(file='pixieSpray'), self.getProp('cubes'), self.getProp('ladder')],424 [self.getProp('banana'), self.getProp('rake'), self.getProp('marbles'), self.getProp('quicksand'), self.getProp('trapdoor'), self.getProp('tnt'), self.getProp('train')],425 [self.getProp('1dollar'), self.getProp('small-magnet'), self.getProp('5dollar'), self.getProp('big-magnet'), self.getProp('10dollar'), self.getProp('hypno-goggles'), self.getProp('slideshow')],426 [self.getProp('bikehorn'), self.getProp('whistle'), self.getProp('bugle'), self.getProp('aoogah'), self.getProp('elephant'), self.getProp('fog_horn'), self.getProp('singing')],427 [self.getProp('tart'), self.getProp('fruitpie-slice'), self.getProp('creampie-slice'), self.getProp('fruitpie'), self.getProp('creampie'), self.getProp('birthday-cake'), self.getProp('wedding-cake')],428 [self.getProp('squirting-flower'), self.getProp('glass'), self.getProp('water-gun'), self.getProp('bottle'), self.getProp('hydrant'), self.getProp('stormcloud'), self.getProp('geyser')],429 [self.getProp('flowerpot'), self.getProp('sandbag'), self.getProp('anvil'), self.getProp('weight'), self.getProp('safe'), self.getProp('piano'), self.getProp('ship')]]430 return self.gagsByTrack...

Full Screen

Full Screen

prop-types.js

Source:prop-types.js Github

copy

Full Screen

1"use strict";2var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");3Object.defineProperty(exports, "__esModule", {4 value: true5});6exports.propTypes = void 0;7var _propTypes = _interopRequireDefault(require("prop-types"));8var RefComponent = _propTypes.default.shape({9 current: _propTypes.default.element10});11var StyledComponent = _propTypes.default.shape({12 classes: _propTypes.default.object,13 innerRef: RefComponent14});15var propTypes = {16 actions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({17 icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, _propTypes.default.string, RefComponent]).isRequired,18 isFreeAction: _propTypes.default.bool,19 position: _propTypes.default.oneOf(["auto", "toolbar", "toolbarOnSelect", "row"]),20 tooltip: _propTypes.default.string,21 onClick: _propTypes.default.func.isRequired,22 iconProps: _propTypes.default.object,23 disabled: _propTypes.default.bool,24 hidden: _propTypes.default.bool25 })])),26 columns: _propTypes.default.arrayOf(_propTypes.default.shape({27 cellStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.func]),28 currencySetting: _propTypes.default.shape({29 locale: _propTypes.default.string,30 currencyCode: _propTypes.default.string,31 minimumFractionDigits: _propTypes.default.number,32 maximumFractionDigits: _propTypes.default.number33 }),34 customFilterAndSearch: _propTypes.default.func,35 customSort: _propTypes.default.func,36 defaultFilter: _propTypes.default.any,37 defaultSort: _propTypes.default.oneOf(["asc", "desc"]),38 editComponent: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),39 emptyValue: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node, _propTypes.default.func]),40 export: _propTypes.default.bool,41 field: _propTypes.default.string,42 filtering: _propTypes.default.bool,43 filterCellStyle: _propTypes.default.object,44 filterPlaceholder: _propTypes.default.string,45 filterComponent: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),46 grouping: _propTypes.default.bool,47 headerStyle: _propTypes.default.object,48 hidden: _propTypes.default.bool,49 hideFilterIcon: _propTypes.default.bool,50 initialEditValue: _propTypes.default.any,51 lookup: _propTypes.default.object,52 editable: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.oneOf(["always", "onUpdate", "onAdd", "never"])]),53 removable: _propTypes.default.bool,54 render: _propTypes.default.func,55 searchable: _propTypes.default.bool,56 sorting: _propTypes.default.bool,57 title: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.string]),58 type: _propTypes.default.oneOf(["string", "boolean", "numeric", "date", "datetime", "time", "currency"])59 })).isRequired,60 components: _propTypes.default.shape({61 Action: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),62 Actions: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),63 Body: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),64 Cell: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),65 Container: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),66 EditField: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),67 EditRow: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),68 FilterRow: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),69 Groupbar: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),70 GroupRow: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),71 Header: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),72 OverlayLoading: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),73 OverlayError: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),74 Pagination: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),75 Row: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent]),76 Toolbar: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, StyledComponent])77 }),78 data: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.object), _propTypes.default.func]).isRequired,79 editable: _propTypes.default.shape({80 isEditable: _propTypes.default.func,81 isDeletable: _propTypes.default.func,82 onRowAdd: _propTypes.default.func,83 onRowUpdate: _propTypes.default.func,84 onRowDelete: _propTypes.default.func,85 onRowAddCancelled: _propTypes.default.func,86 onRowUpdateCancelled: _propTypes.default.func,87 isEditHidden: _propTypes.default.func,88 isDeleteHidden: _propTypes.default.func89 }),90 detailPanel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({91 disabled: _propTypes.default.bool,92 icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, _propTypes.default.string, RefComponent]),93 openIcon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, _propTypes.default.string, RefComponent]),94 tooltip: _propTypes.default.string,95 render: _propTypes.default.func.isRequired96 })]))]),97 icons: _propTypes.default.shape({98 Add: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),99 Check: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),100 Clear: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),101 Delete: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),102 DetailPanel: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),103 Edit: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),104 Export: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),105 Filter: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),106 FirstPage: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),107 LastPage: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),108 NextPage: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),109 PreviousPage: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),110 Refresh: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),111 ResetSearch: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),112 Search: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),113 SortArrow: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),114 ThirdStateCheck: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent]),115 ViewColumn: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, RefComponent])116 }),117 isLoading: _propTypes.default.bool,118 title: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.string]),119 options: _propTypes.default.shape({120 actionsCellStyle: _propTypes.default.object,121 editCellStyle: _propTypes.default.object,122 detailPanelColumnStyle: _propTypes.default.object,123 actionsColumnIndex: _propTypes.default.number,124 addRowPosition: _propTypes.default.oneOf(["first", "last"]),125 columnsButton: _propTypes.default.bool,126 defaultExpanded: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.func]),127 debounceInterval: _propTypes.default.number,128 detailPanelType: _propTypes.default.oneOf(["single", "multiple"]),129 doubleHorizontalScroll: _propTypes.default.bool,130 emptyRowsWhenPaging: _propTypes.default.bool,131 exportAllData: _propTypes.default.bool,132 exportButton: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.shape({133 csv: _propTypes.default.bool,134 pdf: _propTypes.default.bool135 })]),136 exportDelimiter: _propTypes.default.string,137 exportFileName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),138 exportCsv: _propTypes.default.func,139 filtering: _propTypes.default.bool,140 filterCellStyle: _propTypes.default.object,141 filterRowStyle: _propTypes.default.object,142 header: _propTypes.default.bool,143 headerSelectionProps: _propTypes.default.object,144 headerStyle: _propTypes.default.object,145 hideFilterIcons: _propTypes.default.bool,146 initialPage: _propTypes.default.number,147 maxBodyHeight: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),148 minBodyHeight: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),149 loadingType: _propTypes.default.oneOf(["overlay", "linear"]),150 overflowY: _propTypes.default.oneOf(["visible", "hidden", "scroll", "auto", "initial", "inherit"]),151 padding: _propTypes.default.oneOf(["default", "dense"]),152 paging: _propTypes.default.bool,153 pageSize: _propTypes.default.number,154 pageSizeOptions: _propTypes.default.arrayOf(_propTypes.default.number),155 paginationType: _propTypes.default.oneOf(["normal", "stepped"]),156 paginationPosition: _propTypes.default.oneOf(["bottom", "top", "both"]),157 rowStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.func]),158 search: _propTypes.default.bool,159 searchText: _propTypes.default.string,160 toolbarButtonAlignment: _propTypes.default.oneOf(["left", "right"]),161 searchFieldAlignment: _propTypes.default.oneOf(["left", "right"]),162 searchFieldStyle: _propTypes.default.object,163 searchAutoFocus: _propTypes.default.bool,164 searchFieldVariant: _propTypes.default.oneOf(["standard", "filled", "outlined"]),165 selection: _propTypes.default.bool,166 selectionProps: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.func]),167 showEmptyDataSourceMessage: _propTypes.default.bool,168 showFirstLastPageButtons: _propTypes.default.bool,169 showSelectAllCheckbox: _propTypes.default.bool,170 showTitle: _propTypes.default.bool,171 showTextRowsSelected: _propTypes.default.bool,172 sorting: _propTypes.default.bool,173 toolbar: _propTypes.default.bool,174 thirdSortClick: _propTypes.default.bool175 }),176 localization: _propTypes.default.shape({177 grouping: _propTypes.default.shape({178 groupedBy: _propTypes.default.string,179 placeholder: _propTypes.default.string180 }),181 pagination: _propTypes.default.object,182 toolbar: _propTypes.default.object,183 header: _propTypes.default.object,184 body: _propTypes.default.object185 }),186 initialFormData: _propTypes.default.object,187 onSearchChange: _propTypes.default.func,188 onFilterChange: _propTypes.default.func,189 onColumnDragged: _propTypes.default.func,190 onGroupRemoved: _propTypes.default.func,191 onSelectionChange: _propTypes.default.func,192 onChangeRowsPerPage: _propTypes.default.func,193 onChangePage: _propTypes.default.func,194 onChangeColumnHidden: _propTypes.default.func,195 onOrderChange: _propTypes.default.func,196 onRowClick: _propTypes.default.func,197 onTreeExpandChange: _propTypes.default.func,198 onQueryChange: _propTypes.default.func,199 tableRef: _propTypes.default.any,200 style: _propTypes.default.object,201 page: _propTypes.default.number,202 totalCount: _propTypes.default.number203};...

Full Screen

Full Screen

Basics.js

Source:Basics.js Github

copy

Full Screen

1import React from 'react';2import { ButtonReset as StyledButtonReset, List as StyledList } from '../ui';3import StyledStack from './Stack';4import PropTypes from 'prop-types';5export const ButtonReset = props => <StyledButtonReset {...props} />;6ButtonReset.propTypes = {7 size: PropTypes.oneOf(['full']),8};9export const Stack = props => <StyledStack {...props} />;10Stack.defaultProps = {11 direction: 'row',12 alignX: 'flex-start',13 alignY: 'flex-start',14};15Stack.propTypes = {16 direction: PropTypes.oneOfType([17 PropTypes.oneOf(['column', 'row']),18 PropTypes.shape({19 default: PropTypes.oneOf(['column', 'row']),20 tablet: PropTypes.oneOf(['column', 'row']),21 medium: PropTypes.oneOf(['column', 'row']),22 desktop: PropTypes.oneOf(['column', 'row']),23 }),24 ]),25 /**26 * You can add all justify-content and align-items27 * properties28 */29 alignY: PropTypes.oneOfType([30 PropTypes.oneOf(['flex-start', 'center', 'flex-end', 'space-between']),31 PropTypes.shape({32 default: PropTypes.oneOf([33 'flex-start',34 'center',35 'flex-end',36 'space-between',37 ]),38 tablet: PropTypes.oneOf([39 'flex-start',40 'center',41 'flex-end',42 'space-between',43 ]),44 medium: PropTypes.oneOf([45 'flex-start',46 'center',47 'flex-end',48 'space-between',49 ]),50 desktop: PropTypes.oneOf([51 'flex-start',52 'center',53 'flex-end',54 'space-between',55 ]),56 }),57 ]),58 /**59 * You can add all justify-content and align-items60 * properties61 */62 alignX: PropTypes.oneOfType([63 PropTypes.oneOf(['flex-start', 'center', 'flex-end', 'space-between']),64 PropTypes.shape({65 default: PropTypes.oneOf([66 'flex-start',67 'center',68 'flex-end',69 'space-between',70 ]),71 tablet: PropTypes.oneOf([72 'flex-start',73 'center',74 'flex-end',75 'space-between',76 ]),77 medium: PropTypes.oneOf([78 'flex-start',79 'center',80 'flex-end',81 'space-between',82 ]),83 desktop: PropTypes.oneOf([84 'flex-start',85 'center',86 'flex-end',87 'space-between',88 ]),89 }),90 ]),91 size: PropTypes.oneOf(['full']),92 /**93 * This is the size between two elements94 * 1 = 16px95 * */96 gutterSize: PropTypes.oneOfType([97 PropTypes.number,98 PropTypes.shape({99 default: PropTypes.number,100 tablet: PropTypes.number,101 medium: PropTypes.number,102 desktop: PropTypes.number,103 }),104 ]),105 marginTop: PropTypes.oneOfType([106 PropTypes.number,107 PropTypes.shape({108 default: PropTypes.number,109 tablet: PropTypes.number,110 medium: PropTypes.number,111 desktop: PropTypes.number,112 }),113 ]),114 marginBottom: PropTypes.oneOfType([115 PropTypes.number,116 PropTypes.shape({117 default: PropTypes.number,118 tablet: PropTypes.number,119 medium: PropTypes.number,120 desktop: PropTypes.number,121 }),122 ]),123 marginLeft: PropTypes.oneOfType([124 PropTypes.number,125 PropTypes.shape({126 default: PropTypes.number,127 tablet: PropTypes.number,128 medium: PropTypes.number,129 desktop: PropTypes.number,130 }),131 ]),132 marginRight: PropTypes.oneOfType([133 PropTypes.number,134 PropTypes.shape({135 default: PropTypes.number,136 tablet: PropTypes.number,137 medium: PropTypes.number,138 desktop: PropTypes.number,139 }),140 ]),141 marginVertical: PropTypes.oneOfType([142 PropTypes.number,143 PropTypes.shape({144 default: PropTypes.number,145 tablet: PropTypes.number,146 medium: PropTypes.number,147 desktop: PropTypes.number,148 }),149 ]),150 marginHorizontal: PropTypes.oneOfType([151 PropTypes.number,152 PropTypes.shape({153 default: PropTypes.number,154 tablet: PropTypes.number,155 medium: PropTypes.number,156 desktop: PropTypes.number,157 }),158 ]),159 margin: PropTypes.oneOfType([160 PropTypes.number,161 PropTypes.shape({162 default: PropTypes.number,163 tablet: PropTypes.number,164 medium: PropTypes.number,165 desktop: PropTypes.number,166 }),167 ]),168 paddingTop: PropTypes.oneOfType([169 PropTypes.number,170 PropTypes.shape({171 default: PropTypes.number,172 tablet: PropTypes.number,173 medium: PropTypes.number,174 desktop: PropTypes.number,175 }),176 ]),177 paddingBottom: PropTypes.oneOfType([178 PropTypes.number,179 PropTypes.shape({180 default: PropTypes.number,181 tablet: PropTypes.number,182 medium: PropTypes.number,183 desktop: PropTypes.number,184 }),185 ]),186 paddingLeft: PropTypes.oneOfType([187 PropTypes.number,188 PropTypes.shape({189 default: PropTypes.number,190 tablet: PropTypes.number,191 medium: PropTypes.number,192 desktop: PropTypes.number,193 }),194 ]),195 paddingRight: PropTypes.oneOfType([196 PropTypes.number,197 PropTypes.shape({198 default: PropTypes.number,199 tablet: PropTypes.number,200 medium: PropTypes.number,201 desktop: PropTypes.number,202 }),203 ]),204 paddingVertical: PropTypes.oneOfType([205 PropTypes.number,206 PropTypes.shape({207 default: PropTypes.number,208 tablet: PropTypes.number,209 medium: PropTypes.number,210 desktop: PropTypes.number,211 }),212 ]),213 paddingHorizontal: PropTypes.oneOfType([214 PropTypes.number,215 PropTypes.shape({216 default: PropTypes.number,217 tablet: PropTypes.number,218 medium: PropTypes.number,219 desktop: PropTypes.number,220 }),221 ]),222 padding: PropTypes.oneOfType([223 PropTypes.number,224 PropTypes.shape({225 default: PropTypes.number,226 tablet: PropTypes.number,227 medium: PropTypes.number,228 desktop: PropTypes.number,229 }),230 ]),231};232export const List = props => <StyledList {...props} />;233List.defaultProps = {234 as: 'ul',235 margin: 0,236 padding: 0,237};238List.propTypes = {239 as: PropTypes.string,240 direction: PropTypes.oneOfType([241 PropTypes.oneOf(['column', 'row']),242 PropTypes.shape({243 default: PropTypes.oneOf(['column', 'row']),244 tablet: PropTypes.oneOf(['column', 'row']),245 medium: PropTypes.oneOf(['column', 'row']),246 desktop: PropTypes.oneOf(['column', 'row']),247 }),248 ]),249 /**250 * You can add all justify-content and align-items251 * properties252 */253 alignY: PropTypes.oneOfType([254 PropTypes.oneOf(['flex-start', 'center', 'flex-end', 'space-between']),255 PropTypes.shape({256 default: PropTypes.oneOf([257 'flex-start',258 'center',259 'flex-end',260 'space-between',261 ]),262 tablet: PropTypes.oneOf([263 'flex-start',264 'center',265 'flex-end',266 'space-between',267 ]),268 medium: PropTypes.oneOf([269 'flex-start',270 'center',271 'flex-end',272 'space-between',273 ]),274 desktop: PropTypes.oneOf([275 'flex-start',276 'center',277 'flex-end',278 'space-between',279 ]),280 }),281 ]),282 /**283 * You can add all justify-content and align-items284 * properties285 */286 alignX: PropTypes.oneOfType([287 PropTypes.oneOf(['flex-start', 'center', 'flex-end', 'space-between']),288 PropTypes.shape({289 default: PropTypes.oneOf([290 'flex-start',291 'center',292 'flex-end',293 'space-between',294 ]),295 tablet: PropTypes.oneOf([296 'flex-start',297 'center',298 'flex-end',299 'space-between',300 ]),301 medium: PropTypes.oneOf([302 'flex-start',303 'center',304 'flex-end',305 'space-between',306 ]),307 desktop: PropTypes.oneOf([308 'flex-start',309 'center',310 'flex-end',311 'space-between',312 ]),313 }),314 ]),315 size: PropTypes.oneOf(['full']),316 /**317 * This is the size between two elements318 * 1 = 16px319 * */320 gutterSize: PropTypes.oneOfType([321 PropTypes.number,322 PropTypes.shape({323 default: PropTypes.number,324 tablet: PropTypes.number,325 medium: PropTypes.number,326 desktop: PropTypes.number,327 }),328 ]),329 marginTop: PropTypes.oneOfType([330 PropTypes.number,331 PropTypes.shape({332 default: PropTypes.number,333 tablet: PropTypes.number,334 medium: PropTypes.number,335 desktop: PropTypes.number,336 }),337 ]),338 marginBottom: PropTypes.oneOfType([339 PropTypes.number,340 PropTypes.shape({341 default: PropTypes.number,342 tablet: PropTypes.number,343 medium: PropTypes.number,344 desktop: PropTypes.number,345 }),346 ]),347 marginLeft: PropTypes.oneOfType([348 PropTypes.number,349 PropTypes.shape({350 default: PropTypes.number,351 tablet: PropTypes.number,352 medium: PropTypes.number,353 desktop: PropTypes.number,354 }),355 ]),356 marginRight: PropTypes.oneOfType([357 PropTypes.number,358 PropTypes.shape({359 default: PropTypes.number,360 tablet: PropTypes.number,361 medium: PropTypes.number,362 desktop: PropTypes.number,363 }),364 ]),365 marginVertical: PropTypes.oneOfType([366 PropTypes.number,367 PropTypes.shape({368 default: PropTypes.number,369 tablet: PropTypes.number,370 medium: PropTypes.number,371 desktop: PropTypes.number,372 }),373 ]),374 marginHorizontal: PropTypes.oneOfType([375 PropTypes.number,376 PropTypes.shape({377 default: PropTypes.number,378 tablet: PropTypes.number,379 medium: PropTypes.number,380 desktop: PropTypes.number,381 }),382 ]),383 margin: PropTypes.oneOfType([384 PropTypes.number,385 PropTypes.shape({386 default: PropTypes.number,387 tablet: PropTypes.number,388 medium: PropTypes.number,389 desktop: PropTypes.number,390 }),391 ]),392 paddingTop: PropTypes.oneOfType([393 PropTypes.number,394 PropTypes.shape({395 default: PropTypes.number,396 tablet: PropTypes.number,397 medium: PropTypes.number,398 desktop: PropTypes.number,399 }),400 ]),401 paddingBottom: PropTypes.oneOfType([402 PropTypes.number,403 PropTypes.shape({404 default: PropTypes.number,405 tablet: PropTypes.number,406 medium: PropTypes.number,407 desktop: PropTypes.number,408 }),409 ]),410 paddingLeft: PropTypes.oneOfType([411 PropTypes.number,412 PropTypes.shape({413 default: PropTypes.number,414 tablet: PropTypes.number,415 medium: PropTypes.number,416 desktop: PropTypes.number,417 }),418 ]),419 paddingRight: PropTypes.oneOfType([420 PropTypes.number,421 PropTypes.shape({422 default: PropTypes.number,423 tablet: PropTypes.number,424 medium: PropTypes.number,425 desktop: PropTypes.number,426 }),427 ]),428 paddingVertical: PropTypes.oneOfType([429 PropTypes.number,430 PropTypes.shape({431 default: PropTypes.number,432 tablet: PropTypes.number,433 medium: PropTypes.number,434 desktop: PropTypes.number,435 }),436 ]),437 paddingHorizontal: PropTypes.oneOfType([438 PropTypes.number,439 PropTypes.shape({440 default: PropTypes.number,441 tablet: PropTypes.number,442 medium: PropTypes.number,443 desktop: PropTypes.number,444 }),445 ]),446 padding: PropTypes.oneOfType([447 PropTypes.number,448 PropTypes.shape({449 default: PropTypes.number,450 tablet: PropTypes.number,451 medium: PropTypes.number,452 desktop: PropTypes.number,453 }),454 ]),...

Full Screen

Full Screen

Window_classes.py

Source:Window_classes.py Github

copy

Full Screen

1"""Suite Window classes: Classes representing windows2Level 1, version 13Generated from /System/Library/CoreServices/Finder.app4AETE/AEUT resource version 0/144, language 0, script 05"""6import aetools7import MacOS8_code = 'fndr'9class Window_classes_Events:10 pass11class Finder_window(aetools.ComponentItem):12 """Finder window - A file viewer window """13 want = 'brow'14class _Prop__3c_Inheritance_3e_(aetools.NProperty):15 """<Inheritance> - inherits some of its properties from the window class """16 which = 'c@#^'17 want = 'cwin'18class _Prop_current_view(aetools.NProperty):19 """current view - the current view for the container window """20 which = 'pvew'21 want = 'ecvw'22class _Prop_icon_view_options(aetools.NProperty):23 """icon view options - the icon view options for the container window """24 which = 'icop'25 want = 'icop'26class _Prop_list_view_options(aetools.NProperty):27 """list view options - the list view options for the container window """28 which = 'lvop'29 want = 'lvop'30class _Prop_target(aetools.NProperty):31 """target - the container at which this file viewer is targeted """32 which = 'fvtg'33 want = 'obj '34Finder_windows = Finder_window35class window(aetools.ComponentItem):36 """window - A window """37 want = 'cwin'38class _Prop_bounds(aetools.NProperty):39 """bounds - the boundary rectangle for the window """40 which = 'pbnd'41 want = 'qdrt'42class _Prop_closeable(aetools.NProperty):43 """closeable - Does the window have a close box? """44 which = 'hclb'45 want = 'bool'46class _Prop_collapsed(aetools.NProperty):47 """collapsed - Is the window collapsed """48 which = 'wshd'49 want = 'bool'50class _Prop_floating(aetools.NProperty):51 """floating - Does the window have a title bar? """52 which = 'isfl'53 want = 'bool'54class _Prop_id(aetools.NProperty):55 """id - the unique id for this window """56 which = 'ID '57 want = 'magn'58class _Prop_index(aetools.NProperty):59 """index - the number of the window in the front-to-back layer ordering """60 which = 'pidx'61 want = 'long'62class _Prop_modal(aetools.NProperty):63 """modal - Is the window modal? """64 which = 'pmod'65 want = 'bool'66class _Prop_name(aetools.NProperty):67 """name - the name of the window """68 which = 'pnam'69 want = 'utxt'70class _Prop_position(aetools.NProperty):71 """position - the upper left position of the window """72 which = 'posn'73 want = 'QDpt'74class _Prop_properties(aetools.NProperty):75 """properties - every property of a window """76 which = 'pALL'77 want = 'reco'78class _Prop_resizable(aetools.NProperty):79 """resizable - Is the window resizable? """80 which = 'prsz'81 want = 'bool'82class _Prop_titled(aetools.NProperty):83 """titled - Does the window have a title bar? """84 which = 'ptit'85 want = 'bool'86class _Prop_visible(aetools.NProperty):87 """visible - Is the window visible (always true for open Finder windows)? """88 which = 'pvis'89 want = 'bool'90class _Prop_zoomable(aetools.NProperty):91 """zoomable - Is the window zoomable? """92 which = 'iszm'93 want = 'bool'94class _Prop_zoomed(aetools.NProperty):95 """zoomed - Is the window zoomed? """96 which = 'pzum'97 want = 'bool'98class _Prop_zoomed_full_size(aetools.NProperty):99 """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read) """100 which = 'zumf'101 want = 'bool'102windows = window103class information_window(aetools.ComponentItem):104 """information window - An inspector window (opened by \xd2Show Info\xd3) """105 want = 'iwnd'106class _Prop_current_panel(aetools.NProperty):107 """current panel - the current panel in the information window """108 which = 'panl'109 want = 'ipnl'110class _Prop_item(aetools.NProperty):111 """item - the item from which this window was opened """112 which = 'cobj'113 want = 'obj '114class clipping_window(aetools.ComponentItem):115 """clipping window - The window containing a clipping """116 want = 'lwnd'117clipping_windows = clipping_window118class preferences_window(aetools.ComponentItem):119 """preferences window - (NOT AVAILABLE YET) The Finder Preferences window """120 want = 'pwnd'121Finder_window._superclassnames = ['window']122Finder_window._privpropdict = {123 '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,124 'current_view' : _Prop_current_view,125 'icon_view_options' : _Prop_icon_view_options,126 'list_view_options' : _Prop_list_view_options,127 'target' : _Prop_target,128}129Finder_window._privelemdict = {130}131window._superclassnames = []132window._privpropdict = {133 'bounds' : _Prop_bounds,134 'closeable' : _Prop_closeable,135 'collapsed' : _Prop_collapsed,136 'floating' : _Prop_floating,137 'id' : _Prop_id,138 'index' : _Prop_index,139 'modal' : _Prop_modal,140 'name' : _Prop_name,141 'position' : _Prop_position,142 'properties' : _Prop_properties,143 'resizable' : _Prop_resizable,144 'titled' : _Prop_titled,145 'visible' : _Prop_visible,146 'zoomable' : _Prop_zoomable,147 'zoomed' : _Prop_zoomed,148 'zoomed_full_size' : _Prop_zoomed_full_size,149}150window._privelemdict = {151}152information_window._superclassnames = ['window']153information_window._privpropdict = {154 '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,155 'current_panel' : _Prop_current_panel,156 'item' : _Prop_item,157}158information_window._privelemdict = {159}160clipping_window._superclassnames = ['window']161clipping_window._privpropdict = {162 '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,163}164clipping_window._privelemdict = {165}166preferences_window._superclassnames = ['window']167preferences_window._privpropdict = {168 '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,169 'current_panel' : _Prop_current_panel,170}171preferences_window._privelemdict = {172}173#174# Indices of types declared in this module175#176_classdeclarations = {177 'brow' : Finder_window,178 'cwin' : window,179 'iwnd' : information_window,180 'lwnd' : clipping_window,181 'pwnd' : preferences_window,182}183_propdeclarations = {184 'ID ' : _Prop_id,185 'c@#^' : _Prop__3c_Inheritance_3e_,186 'cobj' : _Prop_item,187 'fvtg' : _Prop_target,188 'hclb' : _Prop_closeable,189 'icop' : _Prop_icon_view_options,190 'isfl' : _Prop_floating,191 'iszm' : _Prop_zoomable,192 'lvop' : _Prop_list_view_options,193 'pALL' : _Prop_properties,194 'panl' : _Prop_current_panel,195 'pbnd' : _Prop_bounds,196 'pidx' : _Prop_index,197 'pmod' : _Prop_modal,198 'pnam' : _Prop_name,199 'posn' : _Prop_position,200 'prsz' : _Prop_resizable,201 'ptit' : _Prop_titled,202 'pvew' : _Prop_current_view,203 'pvis' : _Prop_visible,204 'pzum' : _Prop_zoomed,205 'wshd' : _Prop_collapsed,206 'zumf' : _Prop_zoomed_full_size,207}208_compdeclarations = {209}210_enumdeclarations = {...

Full Screen

Full Screen

test-call-prop.js

Source:test-call-prop.js Github

copy

Full Screen

...7 function f() { return; }8 var obj = { prop: f };9 var t1 = Date.now();10 for (i = 0; i < 4e5; i++) {11 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();12 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();13 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();14 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();15 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();16 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();17 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();18 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();19 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();20 obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop(); obj.prop();21 }22 var t2 = Date.now();23 print((4e5 * 100 / (t2 - t1)) + ' calls per millisecond');24}25try {26 test();27} catch (e) {28 print(e.stack || e);29 throw e;...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1wpt.prop("test", "test");2$(this).prop("test", "test");3wpt.prop("test2", "test2");4$(this).prop("test2", "test2");5wpt.prop("test3", "test3");6$(this).prop("test3", "test3");7wpt.prop("test4", "test4");8$(this).prop("test4", "test4");9wpt.prop("test5", "test5");10$(this).prop("test5", "test5");11wpt.prop("test6", "test6");12$(this).prop("test6", "test6");13wpt.prop("test7", "test7");14$(this).prop("test7", "test7");15wpt.prop("test8", "test8");16$(this).prop("test8", "test8");17wpt.prop("test9", "test9");18$(this).prop("test9", "test9");19wpt.prop("test10", "test10");20$(this).prop("test10", "test10");21wpt.prop("test11", "test11");

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var props = wpt.prop();3console.log(props);4var wpt = require('wpt');5console.log(test);6var wpt = require('wpt');7console.log(run);8var wpt = require('wpt');9console.log(runtest);10var wpt = require('wpt');11console.log(runtest);12var wpt = require('wpt');13console.log(runtest);14var wpt = require('wpt');15console.log(runtest);16var wpt = require('wpt');17console.log(runtest);18var wpt = require('wpt');19console.log(runtest);20var wpt = require('wpt');

Full Screen

Using AI Code Generation

copy

Full Screen

1var value = wpt.prop('property');2wpt.prop('property', value);3var value = wpt.prop('property');4wpt.prop('property', value);5var value = wpt.prop('property');6wpt.prop('property', value);7var value = wpt.prop('property');8wpt.prop('property', value);9var value = wpt.prop('property');10wpt.prop('property', value);11var value = wpt.prop('property');12wpt.prop('property', value);13var value = wpt.prop('property');14wpt.prop('property', value);15var value = wpt.prop('property');

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var page = wptools.page('wikipedia', 'en');3page.get(function(err, resp) {4 console.log(resp);5});6var wptools = require('wptools');7var page = wptools.page('wikipedia', 'en');8page.prop('info', function(err, resp) {9 console.log(resp);10});11var wptools = require('wptools');12var page = wptools.page('wikipedia', 'en');13page.prop('info|revisions', function(err, resp) {14 console.log(resp);15});16var wptools = require('wptools');17var page = wptools.page('wikipedia', 'en');18page.prop('info|revisions', {19}, function(err, resp) {20 console.log(resp);21});22var wptools = require('wptools');23var page = wptools.page('wikipedia', 'en');24page.prop('info|revisions', {25}, function(err, resp) {26 console.log(resp);27});28var wptools = require('wptools');29var page = wptools.page('wikipedia', 'en');30page.prop('info|revisions', {31}, function(err, resp) {32 console.log(resp);33});34var wptools = require('wptools');35var page = wptools.page('wikipedia', 'en');36page.prop('info|revisions', {37}, function(err, resp) {38 console.log(resp);39});40var wptools = require('wptools');41var page = wptools.page('wikipedia', 'en');42page.prop('info

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt 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