seeonwall 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +56 -34
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -20,64 +20,86 @@ export interface PosterParams {
|
|
|
20
20
|
posterUrl: string;
|
|
21
21
|
posterTitle?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* is unaffected by this, so setting it shop-wide can never change the meaning
|
|
26
|
-
* of a number that was already explicit.
|
|
23
|
+
* The unit for a value in this object that does not give one. Refer to
|
|
24
|
+
* ADR 094. The default is "cm".
|
|
27
25
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* A value that gives its own unit does not change. Examples are "24cm",
|
|
27
|
+
* "10in" and "a4". Thus a shop-wide unit cannot change the meaning of a
|
|
28
|
+
* number that was already complete.
|
|
29
|
+
*
|
|
30
|
+
* This value also selects the first unit for the wall, the frame and the mat.
|
|
31
|
+
* The shopper can select a different unit in the visualizer.
|
|
30
32
|
*/
|
|
31
33
|
sizeUnit?: SizeUnit;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
35
|
+
* The width of the poster. Give one of these three forms:
|
|
36
|
+
*
|
|
37
|
+
* - A number in the unit of {@link sizeUnit}.
|
|
38
|
+
* - A string with its own unit, for example "24cm", "10in", "29,7 cm" or '11"'.
|
|
39
|
+
* - The name of a format, for example "a4". The width of A4 is 21cm.
|
|
40
|
+
*
|
|
41
|
+
* To declare a poster by name, write the same name in {@link posterHeight}.
|
|
37
42
|
*/
|
|
38
43
|
posterWidth?: number | string;
|
|
39
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* The height of the poster. The forms are those of {@link posterWidth}. The
|
|
46
|
+
* height of A4 is 29.7cm.
|
|
47
|
+
*/
|
|
40
48
|
posterHeight?: number | string;
|
|
41
49
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
50
|
+
* The sizes that the shopper can select. Write them in one string and put a
|
|
51
|
+
* comma between them.
|
|
52
|
+
*
|
|
53
|
+
* Each item is a "WxH" pair or the name of a format. An item can give its own
|
|
54
|
+
* unit. Examples are "30x40,50x70", "12x16in,18x24in" and "a4,a3,50x70cm". An
|
|
55
|
+
* item without a unit uses {@link sizeUnit}.
|
|
56
|
+
*
|
|
57
|
+
* The visualizer shows a size selector when there is more than one item.
|
|
47
58
|
*/
|
|
48
59
|
posterSizes?: string;
|
|
49
60
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
61
|
+
* The part of the image that holds the artwork. Write four percentages and
|
|
62
|
+
* put a comma between them: the left edge, the top edge, the width and the
|
|
63
|
+
* height. Refer to ADR 092.
|
|
64
|
+
*
|
|
65
|
+
* Many shops sell with a mockup image. The print is in the middle of a
|
|
66
|
+
* coloured field, and often it has a frame. The print becomes too small if
|
|
67
|
+
* the visualizer uses the full image.
|
|
52
68
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* typo in a theme setting degrades to the uncropped rendering rather than breaking.
|
|
69
|
+
* The widget sends this value without a change. The visualizer reads it and
|
|
70
|
+
* ignores a value that it cannot read. Thus an error in a theme setting gives
|
|
71
|
+
* the full image. It does not stop the preview.
|
|
57
72
|
*/
|
|
58
73
|
posterInset?: string;
|
|
59
74
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
75
|
+
* The address of the product page for this poster.
|
|
76
|
+
*
|
|
77
|
+
* A bookmark uses this address. Without it, a bookmark uses the address of
|
|
78
|
+
* the page that holds the button. Give this value on a list page or a search
|
|
79
|
+
* page, where each poster has its own page.
|
|
63
80
|
*/
|
|
64
81
|
productPageUrl?: string;
|
|
65
82
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
83
|
+
* The language for this button only. Write a BCP-47 tag, for example "pl" or
|
|
84
|
+
* "de". The widget reads it from the `data-lang` attribute of the mount.
|
|
85
|
+
*
|
|
86
|
+
* The widget uses this language for the label of the button, and it sends the
|
|
87
|
+
* language to the visualizer. This value replaces the language of the shop
|
|
88
|
+
* for this button. It does not change the other buttons.
|
|
70
89
|
*/
|
|
71
90
|
lang?: string;
|
|
72
91
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
92
|
+
* The width in centimetres of the frame that the preview starts with.
|
|
93
|
+
*
|
|
94
|
+
* The preview shows no frame if this value is absent or 0. Most shops sell a
|
|
95
|
+
* print without a frame. Give this value only if the price on the page
|
|
96
|
+
* includes a frame. The shopper can add a frame or remove it.
|
|
76
97
|
*/
|
|
77
98
|
frameDefaultCm?: number;
|
|
78
99
|
/**
|
|
79
|
-
*
|
|
80
|
-
* frameDefaultCm is
|
|
100
|
+
* The colour of that frame, as a hex value, for example "#3E2723". The widget
|
|
101
|
+
* ignores this value if {@link frameDefaultCm} is 0 or absent. The default is
|
|
102
|
+
* black.
|
|
81
103
|
*/
|
|
82
104
|
frameDefaultColor?: string;
|
|
83
105
|
}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAA;AAElC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAA;AAElC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
|