Searched refs:mediaStatus (Results 1 – 2 of 2) sorted by relevance
/third_party/jsframework/runtime/main/extend/mediaquery/ |
D | mediaQuery.ts | 66 export function matchMediaQueryCondition(condition: string, mediaStatus: object, jsQuery: boolean):… 67 if (!condition || !mediaStatus) { 73 if (mediaStatus['width'] === 0 && (condition.includes('width') || condition.includes('height'))) { 78 if (queryHistory && JSON.stringify(queryHistory.status) === JSON.stringify(mediaStatus)) { 82 const result: boolean = doMatchMediaQueryCondition(condition, mediaStatus); 83 queryHistoryList.set(condition, {status: mediaStatus, result: result}); 97 function doMatchMediaQueryCondition(condition: string, mediaStatus: object): boolean { 132 const result: boolean = parseAndCondtion(conditionArr[i], mediaStatus, failReason); 140 if (parseSingleCondition(conditionArr[i], mediaStatus, failReason)) { 158 function parseSingleCondition(condition: string, mediaStatus: object, failReason: FailReason): bool… [all …]
|
/third_party/jsframework/runtime/main/model/ |
D | directive.ts | 538 const mediaStatus = vm._mediaStatus; constant 539 if (!mediaStatus) { 555 if (matchMediaQueryCondition(mqArr[i$1].condition, mediaStatus, false)) {
|