-
(static) createFromJson(jsonObject) → {ImageModel}
-
Parameters:
| Name |
Type |
Description |
jsonObject |
Object
|
|
- Source:
Returns:
-
Type
-
ImageModel
-
getAdditionalItems() → {Array.<string>}
-
returns null, if not set or an array of EAN codes
- Source:
Returns:
-
Type
-
Array.<string>
-
getAngle() → {null|string}
-
returns null, if not set or some of "rigth", "left"
- Source:
Returns:
-
Type
-
null
|
string
-
getBackground() → {null|string}
-
returns null, if not set or e.g. "grey", "white", "ambience" or "transparent"
- Source:
Returns:
-
Type
-
null
|
string
-
getColor() → {null|Array.<string>}
-
- Source:
Returns:
-
Type
-
null
|
Array.<string>
-
getExt() → {null|string}
-
- Source:
Returns:
-
Type
-
null
|
string
-
getFileSize() → {number}
-
- Source:
Returns:
-
Type
-
number
-
getFocus() → {null|string}
-
returns null, if not set or some of "combination", "product", "detail", "haptic"
- Source:
Returns:
-
Type
-
null
|
string
-
getGender() → {null|string}
-
returns null, if not set or some of "female", "male"
- Source:
Returns:
-
Type
-
null
|
string
-
getHash() → {null|string}
-
- Source:
Returns:
-
Type
-
null
|
string
-
getImageSize() → {ImageSize}
-
- Source:
Returns:
-
Type
-
ImageSize
-
getMimetype() → {string}
-
- Source:
Returns:
-
Type
-
string
-
getModelData() → {null|Object}
-
returns null, if not set or an object with human model specific data, e.g.
- firstname (string)
- lastname (string)
- gender ("female" or "female)
- height (number)
- chest (numnber)
- waist (number)
- hips (number)
- arms (number)
- legs (number)
all sizes are in metric unit mm
- Source:
Returns:
-
Type
-
null
|
Object
-
getNextDetailLevel() → {null|number}
-
several pictures of one product may have the same detail_level
from small to large
- Source:
Returns:
-
Type
-
null
|
number
-
getPreparation() → {null|string}
-
returns null, if not set or some of "draped", "pleated", "opened"
- Source:
Returns:
-
Type
-
null
|
string
-
-
- Source:
Returns:
-
Type
-
null
|
Array.<string>
-
getType() → {null|string}
-
returns null, if not set or some of "model", "bust", "tray"
- Source:
Returns:
-
Type
-
null
|
string
-
getUrl(width, height) → {string}
-
Parameters:
| Name |
Type |
Description |
width |
number
|
|
height |
number
|
|
- Source:
Returns:
returns the relative url
-
Type
-
string
-
getView() → {null|string}
-
returns null, if not set or some of "front", "back", "side", "top", "bottom"
- Source:
Returns:
-
Type
-
null
|
string