Set the default value for focalPoint on block.json (https://github.com/woocommerce/woocommerce-blocks/pull/6499)
This commit is contained in:
parent
d17bb32c02
commit
2a99207fac
|
@ -51,7 +51,10 @@
|
|||
},
|
||||
"focalPoint": {
|
||||
"type": "object",
|
||||
"default": false
|
||||
"default": {
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
}
|
||||
},
|
||||
"imageFit": {
|
||||
"type": "string",
|
||||
|
|
|
@ -50,7 +50,10 @@
|
|||
},
|
||||
"focalPoint": {
|
||||
"type": "object",
|
||||
"default": false
|
||||
"default": {
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
}
|
||||
},
|
||||
"imageFit": {
|
||||
"type": "string",
|
||||
|
|
|
@ -87,7 +87,7 @@ export const InspectorControls = ( {
|
|||
backgroundImageSrc,
|
||||
contentPanel,
|
||||
dimRatio,
|
||||
focalPoint = { x: 0.5, y: 0.5 },
|
||||
focalPoint,
|
||||
hasParallax,
|
||||
imageFit,
|
||||
isRepeated,
|
||||
|
|
Loading…
Reference in New Issue