320 lines
11 KiB
JSON
320 lines
11 KiB
JSON
{
|
|
"$schema": "../../TcHmiFramework/Schema/ControlDescription.Schema.json",
|
|
"apiVersion": 1,
|
|
"name": "TcHmiLine",
|
|
"namespace": "TcHmi.Controls.Beckhoff",
|
|
"displayName": "Line",
|
|
"version": {
|
|
"full": "14.4.1.0",
|
|
"major": 14,
|
|
"minor": 4,
|
|
"build": 1,
|
|
"revision": 0
|
|
},
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"base": "TcHmi.Controls.System.TcHmiControl",
|
|
"description": "A straight Line.",
|
|
"defaultDesignerEvent": ".onPressed",
|
|
"properties": {
|
|
"containerControl": false,
|
|
"geometry": {
|
|
"width": 200,
|
|
"height": 200
|
|
}
|
|
},
|
|
"icons": [
|
|
{
|
|
"name": "Icons/16x16.png",
|
|
"width": 16,
|
|
"height": 16
|
|
}
|
|
],
|
|
"template": "Template.html",
|
|
"dependencyFiles": [
|
|
{
|
|
"name": "Style.css",
|
|
"type": "Stylesheet",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "../dist/TcHmiLine/TcHmiLine.esm.js",
|
|
"type": "EsModule",
|
|
"description": "Contains all the main logic as ES module."
|
|
}
|
|
],
|
|
"themes": {
|
|
"Base": {
|
|
"resources": [
|
|
{
|
|
"name": "Themes/Base/Style.css",
|
|
"type": "Stylesheet",
|
|
"description": ""
|
|
}
|
|
]
|
|
},
|
|
"Base-Dark": {
|
|
"resources": [
|
|
{
|
|
"name": "Themes/Base-Dark/Style.css",
|
|
"type": "Stylesheet",
|
|
"description": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"attributes": [
|
|
{
|
|
"name": "data-tchmi-stroke-color",
|
|
"propertyName": "StrokeColor",
|
|
"propertySetterName": "setStrokeColor",
|
|
"propertyGetterName": "getStrokeColor",
|
|
"displayName": "Stroke Color",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/SolidColor",
|
|
"category": "Colors",
|
|
"description": "Specifies the color of the outline of the control.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"allowSymbolExpressionsInObject": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-x1",
|
|
"propertyName": "X1",
|
|
"propertySetterName": "setX1",
|
|
"propertyGetterName": "getX1",
|
|
"displayName": "X1",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Common",
|
|
"description": "Defines the X-coordinate of the first point.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": 0
|
|
},
|
|
{
|
|
"name": "data-tchmi-x1-unit",
|
|
"propertyName": "X1Unit",
|
|
"propertyGetterName": "getX1Unit",
|
|
"refTo": "X1",
|
|
"displayName": "X1 Unit",
|
|
"visible": true,
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/PixelUnit",
|
|
"category": "Common",
|
|
"description": "Only Pixel is allowed.",
|
|
"readOnly": true,
|
|
"bindable": false,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-y1",
|
|
"propertyName": "Y1",
|
|
"propertySetterName": "setY1",
|
|
"propertyGetterName": "getY1",
|
|
"displayName": "Y1",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Common",
|
|
"description": "Defines the Y-coordinate of the first point.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": 0
|
|
},
|
|
{
|
|
"name": "data-tchmi-y1-unit",
|
|
"propertyName": "Y1Unit",
|
|
"propertyGetterName": "getY1Unit",
|
|
"refTo": "Y1",
|
|
"displayName": "Y1 Unit",
|
|
"visible": true,
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/PixelUnit",
|
|
"category": "Common",
|
|
"description": "Only Pixel is allowed.",
|
|
"readOnly": true,
|
|
"bindable": false,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-x2",
|
|
"propertyName": "X2",
|
|
"propertySetterName": "setX2",
|
|
"propertyGetterName": "getX2",
|
|
"displayName": "X2",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Common",
|
|
"description": "Defines the X-coordinate of the second point.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": 200,
|
|
"defaultValueInternal": 0
|
|
},
|
|
{
|
|
"name": "data-tchmi-x2-unit",
|
|
"propertyName": "X2Unit",
|
|
"propertyGetterName": "getX2Unit",
|
|
"refTo": "X2",
|
|
"displayName": "X2 Unit",
|
|
"visible": true,
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/PixelUnit",
|
|
"category": "Common",
|
|
"description": "Only Pixel is allowed.",
|
|
"readOnly": true,
|
|
"bindable": false,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-y2",
|
|
"propertyName": "Y2",
|
|
"propertySetterName": "setY2",
|
|
"propertyGetterName": "getY2",
|
|
"displayName": "Y2",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Common",
|
|
"description": "Defines the Y-coordinate of the second point.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": 200,
|
|
"defaultValueInternal": 0
|
|
},
|
|
{
|
|
"name": "data-tchmi-y2-unit",
|
|
"propertyName": "Y2Unit",
|
|
"propertyGetterName": "getY2Unit",
|
|
"refTo": "Y2",
|
|
"displayName": "Y2 Unit",
|
|
"visible": true,
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/PixelUnit",
|
|
"category": "Common",
|
|
"description": "Only Pixel is allowed.",
|
|
"readOnly": true,
|
|
"bindable": false,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-scale-mode",
|
|
"propertyName": "ScaleMode",
|
|
"propertySetterName": "setScaleMode",
|
|
"propertyGetterName": "getScaleMode",
|
|
"displayName": "Scale Mode",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/ScaleMode",
|
|
"category": "Common",
|
|
"description": "Scale the content to control size.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": "None"
|
|
},
|
|
{
|
|
"name": "data-tchmi-stroke-thickness",
|
|
"propertyName": "StrokeThickness",
|
|
"propertySetterName": "setStrokeThickness",
|
|
"propertyGetterName": "getStrokeThickness",
|
|
"displayName": "Stroke Thickness",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Shape",
|
|
"description": "Specifies the width of the shape's stroke in pixels.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-stroke-thickness-unit",
|
|
"propertyName": "StrokeThicknessUnit",
|
|
"propertyGetterName": "getStrokeThicknessUnit",
|
|
"refTo": "StrokeThickness",
|
|
"displayName": "Stroke Thickness Unit",
|
|
"visible": true,
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/PixelUnit",
|
|
"category": "Shape",
|
|
"description": "Only Pixel is allowed.",
|
|
"readOnly": true,
|
|
"bindable": false,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-stroke-style",
|
|
"propertyName": "StrokeStyle",
|
|
"propertySetterName": "setStrokeStyle",
|
|
"propertyGetterName": "getStrokeStyle",
|
|
"displayName": "Stroke Style",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 30,
|
|
"type": "tchmi:general#/definitions/String",
|
|
"category": "Shape",
|
|
"description": "It's a list of comma and/or white space separated numbers that specify the lengths of alternating dashes and gaps.\nIf an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, 5,3,2 is equivalent to 5,3,2,5,3,2.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": ""
|
|
}
|
|
],
|
|
"attributeCategories": [
|
|
{
|
|
"name": "Shape",
|
|
"displayPriority": 500,
|
|
"defaultCollapsed": true,
|
|
"description": "Attribute defining the shape."
|
|
}
|
|
],
|
|
"functions": [],
|
|
"dataTypes": [
|
|
{
|
|
"schema": "Schema/Types.Schema.json"
|
|
}
|
|
]
|
|
} |