(document) background colour
myscada.setBackgroundColor('green');
You can pass either id as a string, or array of ids:
myscada.setVisibleOn('id'); //pass just id of one element as string myscada.setVisibleOn(['id1', 'id2', 'id3']); //pass multiple ids at once as an array myscada.setVisibleOff('id'); myscada.setVisibleOff(['id1', 'id2', 'id3']);
You can control transparency of any element you wish. To do so, please use provided function. You can pass either id as a string, or array of ids, second parameter is opacity value in the range of 0.0 to 1.0:
myscada.setOpacity('id',0.3); //will make object 30 percent transparent. myscada.setOpacity((['id1', 'id2', 'id3'],0.3);
You can pass either id as a string, or array of ids, second parameter is color value:
myscada.setFillColor('id', '#ff0000'); myscada.setFillColor(['id1', 'id2', 'id3'] , '#ff0000');
You can pass either id as a string, or array of ids, second parameter is color value:
myscada.setStrokeColor('id', '#ff0000'); myscada.setStrokeColor(['id1', 'id2', 'id3'] , '#ff0000');
You can pass either id as a string, or array of ids, second parameter is new height of object in pixels:
myscada.setHeight('id',30); myscada.setHeight(['id1', 'id2', 'id3'],30);
You can pass either id as a string, or array of ids, second parameter is new width of object in pixels:
myscada.setWidth('id',30); myscada.setWidth(['id1', 'id2', 'id3'],30);
You can control the scale of the object. Following function will apply transformation matrix to the provided object. You can pass either id as a string, or array of ids, second parameter is the fixed point for scale, third parameter is scale along x axis, third is scale along the y axis of object in percent.
myscada.setScale(type, type,sx,sy);
PARAMETERS:
Id: you can pass either id as a string, or array of ids
type: x y
cc center center
lb left bottom
cb center bottom
rb right bottom
lt left top
ct center top
rt right top
lc left center
rc right center
sx: scale along the x axis in percent
sy: scale along the y axis in percent
myscada.setScale('id', 'cc',30,30); // will scale object to 30 percent of original size.
Will scale with center as a fixed point (eg. object will shrink and center of object after the shring will stay the same.
To change rotation angle, use following function. First parameter is id or array of ids, second is angle in degrees. The center of rotation is geometric center of given element.
myscada.setRotationAngle('id',90); myscada.setRotationAngle(['id1', 'id2', 'id3'],90);
You can also specify the center of rotation, by providing third and fourth parameter. They specify the distance of new center of rotation from geometric center of object. Provided parameters (eg. deltaX and deltaY) are in pixels.
myscada.setRotationAngle('id',90,-30,0); //we are moving center of rotation by 30 pixels to the left
You can move an object along the path. First parameter is id (or array of ids), second parameter is id of the path along which object should move and last parameter is the value by which object should move. Value is in absolute length in respect to path.
myscada.setAbsoluteMove('objectId', 'pathId',50); //if total length of path object is 200 pixels, this will move object to the 1/4. myscada.setAbsoluteMove(['objectId1', 'objectId2'], 'pathId',50);
Also, you can move objects relatively to the path length. To do so, use function myscada.setRelativeMove. Now you pass the value as relative eg. in the range 0 to 100 as 100 percent.
myscada.setRelativeMove('objectId', 'pathId',50); //this will move object to the half of the path (irrespectively of the real length of the path).
Circle Sector
You can create a circular or elliptical sector from circle or ellipse. To do so, use following function
myscada.circleSector(id, percent, anglefrom, angleto);
For text elements, you can read current value of text element using function
var text=myscada.getText('id');
Also, you can set new text to an text element using a function
myscada.setText('id', 'text value'); //or myscada.setText(['id1', 'id2', 'id3'], 'text value');
You can also set a tooltip for element or set of elements. To do so, please use following function
myscada.setTooltip('id', 'text value'); //or myscada.setTooltip(['id1', 'id2', 'id3'], 'text value');
Vídeňská 186/118
619 00 Brno
Czech Republic
Company ID: 276 52 203
TIN: CZ27652203
We often send out our newsletter with news and great offers. We will never disclose your data to third parties and you can unsubscribe from the newsletter at any time.
Unfortunately, we’re unable to offer free samples. As a retailer, we buy all magazines from their publishers at the regular trade price. However, you could contact the magazine’s publisher directly to ask if they can send you a free copy.
You can create a new account at the end of the order process or on the following page. You can view all of your orders and subscriptions in your customer account. You can also change your addresses and your password.
No, you don’t have to create an account. But there are a few advantages if you create an account.
You never have to enter your billing and shipping address again
Find all of your orders, subscriptions and addresses in your account
Download invoices of your orders
No, we don’t have a physical store location at the moment. We accept only orders through our online shop and we’re shipping all orders with the Swiss Post Service. Please visit our shipping section for more details.
From time to time you will find us at design fairs and popup markets in Switzerland. Subscribe to our newsletter and you’ll receive the latest news.
We often send out our newsletter with news and great offers. We will never disclose your data to third parties and you can unsubscribe from the newsletter at any time.
Unfortunately, we’re unable to offer free samples. As a retailer, we buy all magazines from their publishers at the regular trade price. However, you could contact the magazine’s publisher directly to ask if they can send you a free copy.
You can create a new account at the end of the order process or on the following page. You can view all of your orders and subscriptions in your customer account. You can also change your addresses and your password.
No, you don’t have to create an account. But there are a few advantages if you create an account.
You never have to enter your billing and shipping address again
Find all of your orders, subscriptions and addresses in your account
Download invoices of your orders
No, we don’t have a physical store location at the moment. We accept only orders through our online shop and we’re shipping all orders with the Swiss Post Service. Please visit our shipping section for more details.
From time to time you will find us at design fairs and popup markets in Switzerland. Subscribe to our newsletter and you’ll receive the latest news.
You must be logged in to view this form.
Enter your e-mail address and we will send you a link to reset your password.