processTransform
[ Function ]
public static processTransform(
element: JQuery | HTMLElement[] | NodeListOf<HTMLElement> | HTMLCollectionOf<HTMLElement> | HTMLElement | undefined,
valueNew: TcHmi.Transform | TcHmi.Transform[] | null | undefined
): void;
Sets a transformation for one or more HTML elements.
Parameter
Name | Type | Description |
---|---|---|
element Info: Type HTMLElement supported from version 1.10 | JQuery, HTMLElement[], NodeListOf<HTMLElement>, HTMLCollectionOf<HTMLElement>, HTMLElement, undefined |
|
valueNew | Value for the transformation. |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Example - JavaScript 1
var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processTransform(newElem,
{
transformType: 'Rotate',
angle: 35
}
);
Example - JavaScript 2
var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processTransform(newElem,
[
{
transformType: 'Rotate',
angle: 35
},
{
transformType: 'Scale',
x: 2,
y: 2
}
]
);