mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-10-10 09:07:03 +00:00
[adapters] 增加小游戏适配部分源码
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/* eslint-disable */
|
||||
import CommonComputedStyle from './CommonComputedStyle'
|
||||
|
||||
function getCanvasComputedStyle(canvas) {
|
||||
const rect = canvas.getBoundingClientRect();
|
||||
const style = Object.assign(CommonComputedStyle, {
|
||||
"display": "inline",
|
||||
"position": "static",
|
||||
"inlineSize": rect.width + "px",
|
||||
"perspectiveOrigin": rect.width / 2 + "px " + rect.height / 2 + "px",
|
||||
"transformOrigin": rect.width / 2 + "px " + rect.height / 2 + "px",
|
||||
"webkitLogicalWidth": rect.width + "px",
|
||||
"webkitLogicalHeight": rect.height + "px",
|
||||
"width": rect.width + "px",
|
||||
"height": rect.height + "px",
|
||||
});
|
||||
return style;
|
||||
}
|
||||
|
||||
export default getCanvasComputedStyle;
|
@@ -0,0 +1,593 @@
|
||||
/* eslint-disable */
|
||||
const style = {
|
||||
"0": "animation-delay",
|
||||
"1": "animation-direction",
|
||||
"2": "animation-duration",
|
||||
"3": "animation-fill-mode",
|
||||
"4": "animation-iteration-count",
|
||||
"5": "animation-name",
|
||||
"6": "animation-play-state",
|
||||
"7": "animation-timing-function",
|
||||
"8": "background-attachment",
|
||||
"9": "background-blend-mode",
|
||||
"10": "background-clip",
|
||||
"11": "background-color",
|
||||
"12": "background-image",
|
||||
"13": "background-origin",
|
||||
"14": "background-position",
|
||||
"15": "background-repeat",
|
||||
"16": "background-size",
|
||||
"17": "border-bottom-color",
|
||||
"18": "border-bottom-left-radius",
|
||||
"19": "border-bottom-right-radius",
|
||||
"20": "border-bottom-style",
|
||||
"21": "border-bottom-width",
|
||||
"22": "border-collapse",
|
||||
"23": "border-image-outset",
|
||||
"24": "border-image-repeat",
|
||||
"25": "border-image-slice",
|
||||
"26": "border-image-source",
|
||||
"27": "border-image-width",
|
||||
"28": "border-left-color",
|
||||
"29": "border-left-style",
|
||||
"30": "border-left-width",
|
||||
"31": "border-right-color",
|
||||
"32": "border-right-style",
|
||||
"33": "border-right-width",
|
||||
"34": "border-top-color",
|
||||
"35": "border-top-left-radius",
|
||||
"36": "border-top-right-radius",
|
||||
"37": "border-top-style",
|
||||
"38": "border-top-width",
|
||||
"39": "bottom",
|
||||
"40": "box-shadow",
|
||||
"41": "box-sizing",
|
||||
"42": "break-after",
|
||||
"43": "break-before",
|
||||
"44": "break-inside",
|
||||
"45": "caption-side",
|
||||
"46": "clear",
|
||||
"47": "clip",
|
||||
"48": "color",
|
||||
"49": "content",
|
||||
"50": "cursor",
|
||||
"51": "direction",
|
||||
"52": "display",
|
||||
"53": "empty-cells",
|
||||
"54": "float",
|
||||
"55": "font-family",
|
||||
"56": "font-kerning",
|
||||
"57": "font-size",
|
||||
"58": "font-stretch",
|
||||
"59": "font-style",
|
||||
"60": "font-variant",
|
||||
"61": "font-variant-ligatures",
|
||||
"62": "font-variant-caps",
|
||||
"63": "font-variant-numeric",
|
||||
"64": "font-variant-east-asian",
|
||||
"65": "font-weight",
|
||||
"66": "height",
|
||||
"67": "image-rendering",
|
||||
"68": "isolation",
|
||||
"69": "justify-items",
|
||||
"70": "justify-self",
|
||||
"71": "left",
|
||||
"72": "letter-spacing",
|
||||
"73": "line-height",
|
||||
"74": "list-style-image",
|
||||
"75": "list-style-position",
|
||||
"76": "list-style-type",
|
||||
"77": "margin-bottom",
|
||||
"78": "margin-left",
|
||||
"79": "margin-right",
|
||||
"80": "margin-top",
|
||||
"81": "max-height",
|
||||
"82": "max-width",
|
||||
"83": "min-height",
|
||||
"84": "min-width",
|
||||
"85": "mix-blend-mode",
|
||||
"86": "object-fit",
|
||||
"87": "object-position",
|
||||
"88": "offset-distance",
|
||||
"89": "offset-path",
|
||||
"90": "offset-rotate",
|
||||
"91": "opacity",
|
||||
"92": "orphans",
|
||||
"93": "outline-color",
|
||||
"94": "outline-offset",
|
||||
"95": "outline-style",
|
||||
"96": "outline-width",
|
||||
"97": "overflow-anchor",
|
||||
"98": "overflow-wrap",
|
||||
"99": "overflow-x",
|
||||
"100": "overflow-y",
|
||||
"101": "padding-bottom",
|
||||
"102": "padding-left",
|
||||
"103": "padding-right",
|
||||
"104": "padding-top",
|
||||
"105": "pointer-events",
|
||||
"106": "position",
|
||||
"107": "resize",
|
||||
"108": "right",
|
||||
"109": "scroll-behavior",
|
||||
"110": "speak",
|
||||
"111": "table-layout",
|
||||
"112": "tab-size",
|
||||
"113": "text-align",
|
||||
"114": "text-align-last",
|
||||
"115": "text-decoration",
|
||||
"116": "text-decoration-line",
|
||||
"117": "text-decoration-style",
|
||||
"118": "text-decoration-color",
|
||||
"119": "text-decoration-skip-ink",
|
||||
"120": "text-underline-position",
|
||||
"121": "text-indent",
|
||||
"122": "text-rendering",
|
||||
"123": "text-shadow",
|
||||
"124": "text-size-adjust",
|
||||
"125": "text-overflow",
|
||||
"126": "text-transform",
|
||||
"127": "top",
|
||||
"128": "touch-action",
|
||||
"129": "transition-delay",
|
||||
"130": "transition-duration",
|
||||
"131": "transition-property",
|
||||
"132": "transition-timing-function",
|
||||
"133": "unicode-bidi",
|
||||
"134": "vertical-align",
|
||||
"135": "visibility",
|
||||
"136": "white-space",
|
||||
"137": "widows",
|
||||
"138": "width",
|
||||
"139": "will-change",
|
||||
"140": "word-break",
|
||||
"141": "word-spacing",
|
||||
"142": "word-wrap",
|
||||
"143": "z-index",
|
||||
"144": "zoom",
|
||||
"145": "-webkit-appearance",
|
||||
"146": "backface-visibility",
|
||||
"147": "-webkit-border-horizontal-spacing",
|
||||
"148": "-webkit-border-image",
|
||||
"149": "-webkit-border-vertical-spacing",
|
||||
"150": "-webkit-box-align",
|
||||
"151": "-webkit-box-decoration-break",
|
||||
"152": "-webkit-box-direction",
|
||||
"153": "-webkit-box-flex",
|
||||
"154": "-webkit-box-flex-group",
|
||||
"155": "-webkit-box-lines",
|
||||
"156": "-webkit-box-ordinal-group",
|
||||
"157": "-webkit-box-orient",
|
||||
"158": "-webkit-box-pack",
|
||||
"159": "-webkit-box-reflect",
|
||||
"160": "column-count",
|
||||
"161": "column-gap",
|
||||
"162": "column-rule-color",
|
||||
"163": "column-rule-style",
|
||||
"164": "column-rule-width",
|
||||
"165": "column-span",
|
||||
"166": "column-width",
|
||||
"167": "align-content",
|
||||
"168": "align-items",
|
||||
"169": "align-self",
|
||||
"170": "flex-basis",
|
||||
"171": "flex-grow",
|
||||
"172": "flex-shrink",
|
||||
"173": "flex-direction",
|
||||
"174": "flex-wrap",
|
||||
"175": "justify-content",
|
||||
"176": "-webkit-font-smoothing",
|
||||
"177": "grid-auto-columns",
|
||||
"178": "grid-auto-flow",
|
||||
"179": "grid-auto-rows",
|
||||
"180": "grid-column-end",
|
||||
"181": "grid-column-start",
|
||||
"182": "grid-template-areas",
|
||||
"183": "grid-template-columns",
|
||||
"184": "grid-template-rows",
|
||||
"185": "grid-row-end",
|
||||
"186": "grid-row-start",
|
||||
"187": "grid-column-gap",
|
||||
"188": "grid-row-gap",
|
||||
"189": "-webkit-highlight",
|
||||
"190": "hyphens",
|
||||
"191": "-webkit-hyphenate-character",
|
||||
"192": "-webkit-line-break",
|
||||
"193": "-webkit-line-clamp",
|
||||
"194": "-webkit-locale",
|
||||
"195": "-webkit-margin-before-collapse",
|
||||
"196": "-webkit-margin-after-collapse",
|
||||
"197": "-webkit-mask-box-image",
|
||||
"198": "-webkit-mask-box-image-outset",
|
||||
"199": "-webkit-mask-box-image-repeat",
|
||||
"200": "-webkit-mask-box-image-slice",
|
||||
"201": "-webkit-mask-box-image-source",
|
||||
"202": "-webkit-mask-box-image-width",
|
||||
"203": "-webkit-mask-clip",
|
||||
"204": "-webkit-mask-composite",
|
||||
"205": "-webkit-mask-image",
|
||||
"206": "-webkit-mask-origin",
|
||||
"207": "-webkit-mask-position",
|
||||
"208": "-webkit-mask-repeat",
|
||||
"209": "-webkit-mask-size",
|
||||
"210": "order",
|
||||
"211": "perspective",
|
||||
"212": "perspective-origin",
|
||||
"213": "-webkit-print-color-adjust",
|
||||
"214": "-webkit-rtl-ordering",
|
||||
"215": "shape-outside",
|
||||
"216": "shape-image-threshold",
|
||||
"217": "shape-margin",
|
||||
"218": "-webkit-tap-highlight-color",
|
||||
"219": "-webkit-text-combine",
|
||||
"220": "-webkit-text-decorations-in-effect",
|
||||
"221": "-webkit-text-emphasis-color",
|
||||
"222": "-webkit-text-emphasis-position",
|
||||
"223": "-webkit-text-emphasis-style",
|
||||
"224": "-webkit-text-fill-color",
|
||||
"225": "-webkit-text-orientation",
|
||||
"226": "-webkit-text-security",
|
||||
"227": "-webkit-text-stroke-color",
|
||||
"228": "-webkit-text-stroke-width",
|
||||
"229": "transform",
|
||||
"230": "transform-origin",
|
||||
"231": "transform-style",
|
||||
"232": "-webkit-user-drag",
|
||||
"233": "-webkit-user-modify",
|
||||
"234": "user-select",
|
||||
"235": "-webkit-writing-mode",
|
||||
"236": "-webkit-app-region",
|
||||
"237": "buffered-rendering",
|
||||
"238": "clip-path",
|
||||
"239": "clip-rule",
|
||||
"240": "mask",
|
||||
"241": "filter",
|
||||
"242": "flood-color",
|
||||
"243": "flood-opacity",
|
||||
"244": "lighting-color",
|
||||
"245": "stop-color",
|
||||
"246": "stop-opacity",
|
||||
"247": "color-interpolation",
|
||||
"248": "color-interpolation-filters",
|
||||
"249": "color-rendering",
|
||||
"250": "fill",
|
||||
"251": "fill-opacity",
|
||||
"252": "fill-rule",
|
||||
"253": "marker-end",
|
||||
"254": "marker-mid",
|
||||
"255": "marker-start",
|
||||
"256": "mask-type",
|
||||
"257": "shape-rendering",
|
||||
"258": "stroke",
|
||||
"259": "stroke-dasharray",
|
||||
"260": "stroke-dashoffset",
|
||||
"261": "stroke-linecap",
|
||||
"262": "stroke-linejoin",
|
||||
"263": "stroke-miterlimit",
|
||||
"264": "stroke-opacity",
|
||||
"265": "stroke-width",
|
||||
"266": "alignment-baseline",
|
||||
"267": "baseline-shift",
|
||||
"268": "dominant-baseline",
|
||||
"269": "text-anchor",
|
||||
"270": "writing-mode",
|
||||
"271": "vector-effect",
|
||||
"272": "paint-order",
|
||||
"273": "d",
|
||||
"274": "cx",
|
||||
"275": "cy",
|
||||
"276": "x",
|
||||
"277": "y",
|
||||
"278": "r",
|
||||
"279": "rx",
|
||||
"280": "ry",
|
||||
"281": "caret-color",
|
||||
"282": "line-break",
|
||||
|
||||
"display": "inline",
|
||||
"dominantBaseline": "auto",
|
||||
"emptyCells": "show",
|
||||
"fill": "rgb(0, 0, 0)",
|
||||
"fillOpacity": "1",
|
||||
"fillRule": "nonzero",
|
||||
"filter": "none",
|
||||
"flex": "0 1 auto",
|
||||
"flexBasis": "auto",
|
||||
"flexDirection": "row",
|
||||
"flexFlow": "row nowrap",
|
||||
"flexGrow": "0",
|
||||
"flexShrink": "1",
|
||||
"flexWrap": "nowrap",
|
||||
"float": "none",
|
||||
"floodColor": "rgb(0, 0, 0)",
|
||||
"floodOpacity": "1",
|
||||
"font": "normal normal 400 normal 16px / normal \"PingFang SC\"",
|
||||
"fontDisplay": "",
|
||||
"fontFamily": "\"PingFang SC\"",
|
||||
"fontFeatureSettings": "normal",
|
||||
"fontKerning": "auto",
|
||||
"fontSize": "16px",
|
||||
"fontStretch": "100%",
|
||||
"fontStyle": "normal",
|
||||
"fontVariant": "normal",
|
||||
"fontVariantCaps": "normal",
|
||||
"fontVariantEastAsian": "normal",
|
||||
"fontVariantLigatures": "normal",
|
||||
"fontVariantNumeric": "normal",
|
||||
"fontVariationSettings": "normal",
|
||||
"fontWeight": "400",
|
||||
"grid": "none / none / none / row / auto / auto",
|
||||
"gridArea": "auto / auto / auto / auto",
|
||||
"gridAutoColumns": "auto",
|
||||
"gridAutoFlow": "row",
|
||||
"gridAutoRows": "auto",
|
||||
"gridColumn": "auto / auto",
|
||||
"gridColumnEnd": "auto",
|
||||
"gridColumnGap": "0px",
|
||||
"gridColumnStart": "auto",
|
||||
"gridGap": "0px 0px",
|
||||
"gridRow": "auto / auto",
|
||||
"gridRowEnd": "auto",
|
||||
"gridRowGap": "0px",
|
||||
"gridRowStart": "auto",
|
||||
"gridTemplate": "none / none / none",
|
||||
"gridTemplateAreas": "none",
|
||||
"gridTemplateColumns": "none",
|
||||
"gridTemplateRows": "none",
|
||||
"height": "0px",
|
||||
"hyphens": "manual",
|
||||
"imageRendering": "auto",
|
||||
"inlineSize": "0px",
|
||||
"isolation": "auto",
|
||||
"justifyContent": "normal",
|
||||
"justifyItems": "normal",
|
||||
"justifySelf": "auto",
|
||||
"left": "auto",
|
||||
"letterSpacing": "normal",
|
||||
"lightingColor": "rgb(255, 255, 255)",
|
||||
"lineBreak": "auto",
|
||||
"lineHeight": "normal",
|
||||
"listStyle": "disc outside none",
|
||||
"listStyleImage": "none",
|
||||
"listStylePosition": "outside",
|
||||
"listStyleType": "disc",
|
||||
"margin": "0px",
|
||||
"marginBottom": "0px",
|
||||
"marginLeft": "0px",
|
||||
"marginRight": "0px",
|
||||
"marginTop": "0px",
|
||||
"marker": "",
|
||||
"markerEnd": "none",
|
||||
"markerMid": "none",
|
||||
"markerStart": "none",
|
||||
"mask": "none",
|
||||
"maskType": "luminance",
|
||||
"maxBlockSize": "none",
|
||||
"maxHeight": "none",
|
||||
"maxInlineSize": "none",
|
||||
"maxWidth": "none",
|
||||
"maxZoom": "",
|
||||
"minBlockSize": "0px",
|
||||
"minHeight": "0px",
|
||||
"minInlineSize": "0px",
|
||||
"minWidth": "0px",
|
||||
"minZoom": "",
|
||||
"mixBlendMode": "normal",
|
||||
"objectFit": "fill",
|
||||
"objectPosition": "50% 50%",
|
||||
"offset": "none 0px auto 0deg",
|
||||
"offsetDistance": "0px",
|
||||
"offsetPath": "none",
|
||||
"offsetRotate": "auto 0deg",
|
||||
"opacity": "1",
|
||||
"order": "0",
|
||||
"orientation": "",
|
||||
"orphans": "2",
|
||||
"outline": "rgb(0, 0, 0) none 0px",
|
||||
"outlineColor": "rgb(0, 0, 0)",
|
||||
"outlineOffset": "0px",
|
||||
"outlineStyle": "none",
|
||||
"outlineWidth": "0px",
|
||||
"overflow": "visible",
|
||||
"overflowAnchor": "auto",
|
||||
"overflowWrap": "normal",
|
||||
"overflowX": "visible",
|
||||
"overflowY": "visible",
|
||||
"overscrollBehavior": "auto auto",
|
||||
"overscrollBehaviorX": "auto",
|
||||
"overscrollBehaviorY": "auto",
|
||||
"padding": "0px",
|
||||
"paddingBottom": "0px",
|
||||
"paddingLeft": "0px",
|
||||
"paddingRight": "0px",
|
||||
"paddingTop": "0px",
|
||||
"page": "",
|
||||
"pageBreakAfter": "auto",
|
||||
"pageBreakBefore": "auto",
|
||||
"pageBreakInside": "auto",
|
||||
"paintOrder": "fill stroke markers",
|
||||
"perspective": "none",
|
||||
"perspectiveOrigin": "0px 0px",
|
||||
"placeContent": "normal normal",
|
||||
"placeItems": "normal normal",
|
||||
"placeSelf": "auto auto",
|
||||
"pointerEvents": "auto",
|
||||
"position": "static",
|
||||
"quotes": "",
|
||||
"r": "0px",
|
||||
"resize": "none",
|
||||
"right": "auto",
|
||||
"rx": "auto",
|
||||
"ry": "auto",
|
||||
"scrollBehavior": "auto",
|
||||
"shapeImageThreshold": "0",
|
||||
"shapeMargin": "0px",
|
||||
"shapeOutside": "none",
|
||||
"shapeRendering": "auto",
|
||||
"size": "",
|
||||
"speak": "normal",
|
||||
"src": "",
|
||||
"stopColor": "rgb(0, 0, 0)",
|
||||
"stopOpacity": "1",
|
||||
"stroke": "none",
|
||||
"strokeDasharray": "none",
|
||||
"strokeDashoffset": "0px",
|
||||
"strokeLinecap": "butt",
|
||||
"strokeLinejoin": "miter",
|
||||
"strokeMiterlimit": "4",
|
||||
"strokeOpacity": "1",
|
||||
"strokeWidth": "1px",
|
||||
"tabSize": "8",
|
||||
"tableLayout": "auto",
|
||||
"textAlign": "start",
|
||||
"textAlignLast": "auto",
|
||||
"textAnchor": "start",
|
||||
"textCombineUpright": "none",
|
||||
"textDecoration": "none solid rgb(0, 0, 0)",
|
||||
"textDecorationColor": "rgb(0, 0, 0)",
|
||||
"textDecorationLine": "none",
|
||||
"textDecorationSkipInk": "auto",
|
||||
"textDecorationStyle": "solid",
|
||||
"textIndent": "0px",
|
||||
"textOrientation": "mixed",
|
||||
"textOverflow": "clip",
|
||||
"textRendering": "auto",
|
||||
"textShadow": "none",
|
||||
"textSizeAdjust": "auto",
|
||||
"textTransform": "none",
|
||||
"textUnderlinePosition": "auto",
|
||||
"top": "auto",
|
||||
"touchAction": "auto",
|
||||
"transform": "none",
|
||||
"transformBox": "view-box",
|
||||
"transformOrigin": "0px 0px",
|
||||
"transformStyle": "flat",
|
||||
"transition": "all 0s ease 0s",
|
||||
"transitionDelay": "0s",
|
||||
"transitionDuration": "0s",
|
||||
"transitionProperty": "all",
|
||||
"transitionTimingFunction": "ease",
|
||||
"unicodeBidi": "normal",
|
||||
"unicodeRange": "",
|
||||
"userSelect": "auto",
|
||||
"userZoom": "",
|
||||
"vectorEffect": "none",
|
||||
"verticalAlign": "baseline",
|
||||
"visibility": "visible",
|
||||
"webkitAppRegion": "no-drag",
|
||||
"webkitAppearance": "none",
|
||||
"webkitBorderAfter": "0px none rgb(0, 0, 0)",
|
||||
"webkitBorderAfterColor": "rgb(0, 0, 0)",
|
||||
"webkitBorderAfterStyle": "none",
|
||||
"webkitBorderAfterWidth": "0px",
|
||||
"webkitBorderBefore": "0px none rgb(0, 0, 0)",
|
||||
"webkitBorderBeforeColor": "rgb(0, 0, 0)",
|
||||
"webkitBorderBeforeStyle": "none",
|
||||
"webkitBorderBeforeWidth": "0px",
|
||||
"webkitBorderEnd": "0px none rgb(0, 0, 0)",
|
||||
"webkitBorderEndColor": "rgb(0, 0, 0)",
|
||||
"webkitBorderEndStyle": "none",
|
||||
"webkitBorderEndWidth": "0px",
|
||||
"webkitBorderHorizontalSpacing": "0px",
|
||||
"webkitBorderImage": "none",
|
||||
"webkitBorderStart": "0px none rgb(0, 0, 0)",
|
||||
"webkitBorderStartColor": "rgb(0, 0, 0)",
|
||||
"webkitBorderStartStyle": "none",
|
||||
"webkitBorderStartWidth": "0px",
|
||||
"webkitBorderVerticalSpacing": "0px",
|
||||
"webkitBoxAlign": "stretch",
|
||||
"webkitBoxDecorationBreak": "slice",
|
||||
"webkitBoxDirection": "normal",
|
||||
"webkitBoxFlex": "0",
|
||||
"webkitBoxFlexGroup": "1",
|
||||
"webkitBoxLines": "single",
|
||||
"webkitBoxOrdinalGroup": "1",
|
||||
"webkitBoxOrient": "horizontal",
|
||||
"webkitBoxPack": "start",
|
||||
"webkitBoxReflect": "none",
|
||||
"webkitColumnBreakAfter": "auto",
|
||||
"webkitColumnBreakBefore": "auto",
|
||||
"webkitColumnBreakInside": "auto",
|
||||
"webkitFontSizeDelta": "",
|
||||
"webkitFontSmoothing": "auto",
|
||||
"webkitHighlight": "none",
|
||||
"webkitHyphenateCharacter": "auto",
|
||||
"webkitLineBreak": "auto",
|
||||
"webkitLineClamp": "none",
|
||||
"webkitLocale": "auto",
|
||||
"webkitLogicalHeight": "0px",
|
||||
"webkitLogicalWidth": "0px",
|
||||
"webkitMarginAfter": "0px",
|
||||
"webkitMarginAfterCollapse": "collapse",
|
||||
"webkitMarginBefore": "0px",
|
||||
"webkitMarginBeforeCollapse": "collapse",
|
||||
"webkitMarginBottomCollapse": "collapse",
|
||||
"webkitMarginCollapse": "",
|
||||
"webkitMarginEnd": "0px",
|
||||
"webkitMarginStart": "0px",
|
||||
"webkitMarginTopCollapse": "collapse",
|
||||
"webkitMask": "",
|
||||
"webkitMaskBoxImage": "none",
|
||||
"webkitMaskBoxImageOutset": "0px",
|
||||
"webkitMaskBoxImageRepeat": "stretch",
|
||||
"webkitMaskBoxImageSlice": "0 fill",
|
||||
"webkitMaskBoxImageSource": "none",
|
||||
"webkitMaskBoxImageWidth": "auto",
|
||||
"webkitMaskClip": "border-box",
|
||||
"webkitMaskComposite": "source-over",
|
||||
"webkitMaskImage": "none",
|
||||
"webkitMaskOrigin": "border-box",
|
||||
"webkitMaskPosition": "0% 0%",
|
||||
"webkitMaskPositionX": "0%",
|
||||
"webkitMaskPositionY": "0%",
|
||||
"webkitMaskRepeat": "repeat",
|
||||
"webkitMaskRepeatX": "",
|
||||
"webkitMaskRepeatY": "",
|
||||
"webkitMaskSize": "auto",
|
||||
"webkitMaxLogicalHeight": "none",
|
||||
"webkitMaxLogicalWidth": "none",
|
||||
"webkitMinLogicalHeight": "0px",
|
||||
"webkitMinLogicalWidth": "0px",
|
||||
"webkitPaddingAfter": "0px",
|
||||
"webkitPaddingBefore": "0px",
|
||||
"webkitPaddingEnd": "0px",
|
||||
"webkitPaddingStart": "0px",
|
||||
"webkitPerspectiveOriginX": "",
|
||||
"webkitPerspectiveOriginY": "",
|
||||
"webkitPrintColorAdjust": "economy",
|
||||
"webkitRtlOrdering": "logical",
|
||||
"webkitRubyPosition": "before",
|
||||
"webkitTapHighlightColor": "rgba(0, 0, 0, 0.4)",
|
||||
"webkitTextCombine": "none",
|
||||
"webkitTextDecorationsInEffect": "none",
|
||||
"webkitTextEmphasis": "",
|
||||
"webkitTextEmphasisColor": "rgb(0, 0, 0)",
|
||||
"webkitTextEmphasisPosition": "over right",
|
||||
"webkitTextEmphasisStyle": "none",
|
||||
"webkitTextFillColor": "rgb(0, 0, 0)",
|
||||
"webkitTextOrientation": "vertical-right",
|
||||
"webkitTextSecurity": "none",
|
||||
"webkitTextStroke": "",
|
||||
"webkitTextStrokeColor": "rgb(0, 0, 0)",
|
||||
"webkitTextStrokeWidth": "0px",
|
||||
"webkitTransformOriginX": "",
|
||||
"webkitTransformOriginY": "",
|
||||
"webkitTransformOriginZ": "",
|
||||
"webkitUserDrag": "auto",
|
||||
"webkitUserModify": "read-only",
|
||||
"webkitWritingMode": "horizontal-tb",
|
||||
"whiteSpace": "normal",
|
||||
"widows": "2",
|
||||
"width": "0px",
|
||||
"willChange": "auto",
|
||||
"wordBreak": "normal",
|
||||
"wordSpacing": "0px",
|
||||
"wordWrap": "normal",
|
||||
"writingMode": "horizontal-tb",
|
||||
"x": "0px",
|
||||
"y": "0px",
|
||||
"zIndex": "auto",
|
||||
"zoom": "1"
|
||||
};
|
||||
|
||||
export default style;
|
@@ -0,0 +1,21 @@
|
||||
/* eslint-disable */
|
||||
import CommonComputedStyle from './CommonComputedStyle'
|
||||
|
||||
function getImageComputedStyle(image) {
|
||||
const width = image.width;
|
||||
const height = image.height;
|
||||
const style = Object.assign(CommonComputedStyle, {
|
||||
"display": "inline",
|
||||
"position": "static",
|
||||
"inlineSize": width + "px",
|
||||
"perspectiveOrigin": width / 2 + "px " + height / 2 + "px",
|
||||
"transformOrigin": width / 2 + "px " + height / 2 + "px",
|
||||
"webkitLogicalWidth": width + "px",
|
||||
"webkitLogicalHeight": height + "px",
|
||||
"width": width + "px",
|
||||
"height": height + "px",
|
||||
});
|
||||
return style;
|
||||
}
|
||||
|
||||
export default getImageComputedStyle;
|
Reference in New Issue
Block a user