PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / trunk
bBlocks – Essential Gutenberg Blocks & Patterns Collection vtrunk
2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 106 releases
b-blocks / build / image-hotspot / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection trunk, at build/image-hotspot/block.json

495 lines 11.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "b-blocks/image-hotspot",
5 "version": "1.0.0",
6 "title": "Image Hotspot",
7 "category": "bBlocks",
8 "description": "Image Hotspot allows you to add interactive hotspots to your images.",
9 "keywords": [
10 "image hotspot",
11 "hotspot",
12 "image"
13 ],
14 "textdomain": "b-blocks",
15 "attributes": {
16 "align": {
17 "type": "string",
18 "default": ""
19 },
20 "image": {
21 "type": "object",
22 "default": {
23 "url": "",
24 "desktop": {
25 "height": "400px",
26 "width": "100%"
27 },
28 "tablet": {
29 "height": "400px",
30 "width": "100%"
31 },
32 "mobile": {
33 "height": "400px",
34 "width": "100%"
35 },
36 "objectFit": "fill"
37 }
38 },
39 "options": {
40 "type": "object",
41 "default": {
42 "speed": 400,
43 "delay": 200
44 }
45 },
46 "preset": {
47 "type": "string",
48 "default": "default"
49 },
50 "spots": {
51 "type": "object",
52 "default": {
53 "normal": {
54 "color": {
55 "bg": "#8a2be2",
56 "icon": "#fff"
57 },
58 "border": {}
59 },
60 "hover": {
61 "color": {
62 "bg": "#8a2be2",
63 "icon": "#fff"
64 },
65 "border": {}
66 },
67 "desktop": {
68 "height": "40px",
69 "width": "40px",
70 "padding": {
71 "top": "",
72 "right": "",
73 "bottom": "",
74 "left": ""
75 },
76 "radius": {
77 "left": "50px",
78 "right": "50px",
79 "top": "50px",
80 "bottom": "50px"
81 },
82 "iconSize": "12px"
83 },
84 "tablet": {
85 "height": "40px",
86 "width": "40px",
87 "padding": {
88 "top": "",
89 "right": "",
90 "bottom": "",
91 "left": ""
92 },
93 "radius": {
94 "left": "50px",
95 "right": "50px",
96 "top": "50px",
97 "bottom": "50px"
98 },
99 "iconSize": "12px"
100 },
101 "mobile": {
102 "height": "40px",
103 "width": "40px",
104 "padding": {
105 "top": "",
106 "right": "",
107 "bottom": "",
108 "left": ""
109 },
110 "radius": {
111 "left": "50px",
112 "right": "50px",
113 "top": "50px",
114 "bottom": "50px"
115 },
116 "iconSize": "12px"
117 }
118 }
119 },
120 "tooltip": {
121 "type": "object",
122 "default": {
123 "desktop": {
124 "width": "200px",
125 "padding": {
126 "left": "5px",
127 "right": "5px",
128 "top": "5px",
129 "bottom": "5px"
130 },
131 "radius": {
132 "left": "3px",
133 "right": "3px",
134 "top": "3px",
135 "bottom": "3px"
136 }
137 },
138 "tablet": {
139 "width": "",
140 "padding": {},
141 "radius": {}
142 },
143 "mobile": {
144 "width": "",
145 "padding": {},
146 "radius": {}
147 },
148 "typo": {
149 "fontSize": {
150 "desktop": "15px"
151 }
152 },
153 "textColor": "#fff",
154 "bgColor": "#8a2be2",
155 "border": {
156 "width": "0px"
157 },
158 "shadow": [
159 {
160 "hOffset": "0px",
161 "vOffset": "0px",
162 "blur": "0px",
163 "spreed": "0px",
164 "color": "#7090b0",
165 "isInset": false
166 }
167 ]
168 }
169 },
170 "hotspot": {
171 "type": "array",
172 "default": [
173 {
174 "borderColor": "",
175 "bgColor": "",
176 "spotsSize": "",
177 "option": "spot",
178 "spotOption": "text",
179 "spotText": "+",
180 "icon": {
181 "url": {
182 "upload": "",
183 "library": ""
184 },
185 "type": "library"
186 },
187 "image": "",
188 "tooltip": "<p>Tooltip contents</p>",
189 "tooltipPosition": "left",
190 "position": {
191 "desktop": {
192 "x": 0,
193 "y": 0
194 },
195 "tablet": {},
196 "mobile": {}
197 },
198 "iconColor": "",
199 "iconSize": "12px",
200 "spotLink": "",
201 "newWindow": false
202 },
203 {
204 "borderColor": "",
205 "bgColor": "",
206 "spotsSize": "",
207 "option": "spot",
208 "spotOption": "text",
209 "spotText": "+",
210 "icon": {
211 "url": {
212 "upload": "",
213 "library": ""
214 },
215 "type": "library"
216 },
217 "image": "",
218 "tooltip": "<p>Tooltip contents</p>",
219 "tooltipPosition": "left",
220 "position": {
221 "desktop": {
222 "x": 30,
223 "y": 40
224 },
225 "tablet": {},
226 "mobile": {}
227 },
228 "iconColor": "",
229 "iconSize": "12px",
230 "spotLink": "",
231 "newWindow": false
232 }
233 ]
234 },
235 "advanced": {
236 "type": "object",
237 "default": {
238 "dimension": {
239 "padding": {
240 "desktop": {
241 "top": "0px",
242 "right": "0px",
243 "bottom": "0px",
244 "left": "0px"
245 },
246 "tablet": {
247 "top": "0px",
248 "right": "0px",
249 "bottom": "0px",
250 "left": "0px"
251 },
252 "mobile": {
253 "top": "0px",
254 "right": "0px",
255 "bottom": "0px",
256 "left": "0px"
257 }
258 }
259 },
260 "borderShadow": {
261 "normal": {
262 "radius": {
263 "top": "0px",
264 "right": "0px",
265 "bottom": "0px",
266 "left": "0px"
267 },
268 "shadow": [
269 {
270 "hOffset": "0px",
271 "vOffset": "0px",
272 "blur": "0px",
273 "spreed": "0px",
274 "color": "#7090b000",
275 "isInset": false
276 }
277 ]
278 }
279 },
280 "background": {
281 "normal": {
282 "type": "color",
283 "color": "rgba(255, 255, 255, 1)",
284 "gradient": {
285 "type": "radial",
286 "radialType": "ellipse",
287 "colors": [
288 {
289 "color": "rgba(58, 66, 222, 1)",
290 "position": "0"
291 },
292 {
293 "color": "rgba(176, 195, 235, 1)",
294 "position": "80"
295 }
296 ],
297 "centerPositions": {
298 "x": 50,
299 "y": 50
300 },
301 "angel": 90
302 },
303 "img": {
304 "url": "",
305 "desktop": {
306 "position": "center-center",
307 "xPosition": 0,
308 "yPosition": 0,
309 "attachment": "",
310 "repeat": "no-repeat",
311 "size": "",
312 "customSize": "0px"
313 },
314 "tablet": {
315 "position": "center-center",
316 "xPosition": 0,
317 "yPosition": 0,
318 "attachment": "",
319 "repeat": "no-repeat",
320 "size": "",
321 "customSize": "0px"
322 },
323 "mobile": {
324 "position": "center-center",
325 "xPosition": 0,
326 "yPosition": 0,
327 "attachment": "",
328 "repeat": "no-repeat",
329 "size": "",
330 "customSize": "0px"
331 }
332 },
333 "transition": 0.3
334 }
335 },
336 "transform": {
337 "normal": {
338 "rotate": {
339 "desktop": {
340 "z": "",
341 "y": "",
342 "x": ""
343 },
344 "tablet": {
345 "z": "",
346 "y": "",
347 "x": ""
348 },
349 "mobile": {
350 "z": "",
351 "y": "",
352 "x": ""
353 },
354 "threeDRotate": false
355 },
356 "offset": {
357 "desktop": {
358 "x": "",
359 "y": ""
360 },
361 "tablet": {
362 "x": "",
363 "y": ""
364 },
365 "mobile": {
366 "x": "",
367 "y": ""
368 }
369 },
370 "scale": {
371 "isProportion": true,
372 "desktop": {
373 "x": "",
374 "y": "",
375 "scale": ""
376 },
377 "tablet": {
378 "x": "",
379 "y": "",
380 "scale": ""
381 },
382 "mobile": {
383 "x": "",
384 "y": "",
385 "scale": ""
386 }
387 },
388 "skew": {
389 "desktop": {
390 "x": "",
391 "y": ""
392 },
393 "tablet": {
394 "x": "",
395 "y": ""
396 },
397 "mobile": {
398 "x": "",
399 "y": ""
400 }
401 },
402 "flipX": false,
403 "flipY": false
404 },
405 "hover": {
406 "rotate": {
407 "desktop": {
408 "z": "",
409 "y": "",
410 "x": ""
411 },
412 "tablet": {
413 "z": "",
414 "y": "",
415 "x": ""
416 },
417 "mobile": {
418 "z": "",
419 "y": "",
420 "x": ""
421 },
422 "threeDRotate": false
423 },
424 "offset": {
425 "desktop": {
426 "x": "",
427 "y": ""
428 },
429 "tablet": {
430 "x": "",
431 "y": ""
432 },
433 "mobile": {
434 "x": "",
435 "y": ""
436 }
437 },
438 "scale": {
439 "isProportion": true,
440 "desktop": {
441 "x": "",
442 "y": "",
443 "scale": ""
444 },
445 "tablet": {
446 "x": "",
447 "y": "",
448 "scale": ""
449 },
450 "mobile": {
451 "x": "",
452 "y": "",
453 "scale": ""
454 }
455 },
456 "skew": {
457 "desktop": {
458 "x": "",
459 "y": ""
460 },
461 "tablet": {
462 "x": "",
463 "y": ""
464 },
465 "mobile": {
466 "x": "",
467 "y": ""
468 }
469 },
470 "flipX": false,
471 "flipY": false
472 },
473 "transition": 200
474 }
475 }
476 }
477 },
478 "supports": {
479 "align": [
480 "wide",
481 "full"
482 ],
483 "html": false
484 },
485 "example": {
486 "attributes": {}
487 },
488 "editorScript": [
489 "file:../index.js",
490 "aos"
491 ],
492 "style": "file:./view.css",
493 "render": "file:./render.php",
494 "viewScript": "file:./view.js"
495 }