finished setting up zoom functionality and made some tweaks so codes would work properly

This commit is contained in:
Salijoghli 2025-09-25 16:18:39 +04:00
parent 589ba3bd3a
commit a6aed583df
49 changed files with 14300 additions and 13994 deletions

View File

@ -0,0 +1,69 @@
{
"custom": {},
"params": {
"highlightTagPath": "value"
},
"propConfig": {
"params.highlightTagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 1080,
"width": 1920
}
},
"root": {
"children": [
{
"meta": {
"name": "EmbeddedView"
},
"position": {
"height": 1,
"width": 1
},
"propConfig": {
"props.params.viewParams.highlightTagPath": {
"binding": {
"config": {
"path": "view.params.highlightTagPath"
},
"type": "property"
}
}
},
"props": {
"params": {
"controls": {
"click": true,
"in": true,
"out": true,
"pan": true,
"reset": true,
"zoom": true
},
"panning": true,
"viewParams": {},
"viewPath": "autStand/Detailed_Views/MCM-Views/MCM01"
},
"path": "autStand/Custom_Views/View-Scaler"
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"position": {
"x": 0.3594,
"y": 0.2046
},
"props": {
"mode": "percent"
},
"type": "ia.container.coord"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -17,7 +17,7 @@ def get_project_config():
os.getcwd().replace("\\", "/")
+ "/data/projects/"
+ project_name
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views"
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views/MCM-Views"
)
if not os.path.exists(base_path):
@ -61,6 +61,10 @@ def get_project_config():
def navigate_to_url(self, source_id, page_id):
url_to_navigate = "autStand/Detailed_Views/%s" % (page_id)
if "MCM01" in url_to_navigate:
url_to_navigate += "-FLUID INBOUND"
else:
url_to_navigate += "-NC SORTER"
system.perspective.navigate(view=url_to_navigate, params={"highlightTagPath": source_id + "||Diagnostic"})

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -22,7 +22,7 @@ def build_device_mapping(full_tag_path):
os.getcwd().replace("\\", "/")
+ "/data/projects/"
+ project_name
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views"
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views/MCM-Views"
)
if not os.path.exists(base_path):

View File

@ -618,7 +618,7 @@
"$": [
"ds",
192,
1756810817838
1758799579119
],
"$columns": [
{
@ -2165,7 +2165,7 @@
"$": [
"ds",
192,
1756810817838
1758799579116
],
"$columns": [
{
@ -2217,7 +2217,7 @@
"$": [
"ds",
192,
1756810817838
1758799579117
],
"$columns": [
{
@ -3538,7 +3538,7 @@
"$": [
"ds",
192,
1756810817822
1758799579119
],
"$columns": [
{
@ -4880,7 +4880,7 @@
"$": [
"ds",
192,
1756810817824
1758799579124
],
"$columns": [
{
@ -9629,7 +9629,7 @@
"$": [
"ds",
192,
1756810817824
1758799579124
],
"$columns": [
{
@ -24962,7 +24962,7 @@
"$": [
"ds",
192,
1756810817838
1758799579117
],
"$columns": [
{
@ -26414,20 +26414,7 @@
"bottom": false
},
"selection": {
"data": [
{
"Endtstamp": null,
"Inbound_jam": null,
"Inbound_perc": null,
"Sorter_jam": null,
"Sorter_perc": null,
"Startstamp": null,
"Total_Jam": null,
"Total_perc": 1
}
],
"mode": "multiple interval",
"selectedRow": 0
"mode": "multiple interval"
},
"virtualized": false
},
@ -29498,7 +29485,7 @@
},
"props": {
"dismissOnSelect": false,
"formattedValue": "Sep 2, 2025 2:00 PM",
"formattedValue": "Sep 25, 2025 2:26 PM",
"formattedValues": {
"date": "Mar 26, 2021",
"datetime": "Mar 26, 2021 12:00 AM",
@ -29516,9 +29503,9 @@
"$": [
"ts",
192,
1756810817837
1758799579111
],
"$ts": 1756807217000
"$ts": 1758795979000
}
},
"type": "ia.input.date-time-input"
@ -29669,7 +29656,7 @@
},
"props": {
"dismissOnSelect": false,
"formattedValue": "Sep 2, 2025 3:00 PM",
"formattedValue": "Sep 25, 2025 3:26 PM",
"formattedValues": {
"date": "Mar 29, 2021",
"datetime": "Mar 29, 2021 1:37 PM",
@ -29687,9 +29674,9 @@
"$": [
"ts",
192,
1756810817834
1758799579111
],
"$ts": 1756810817000
"$ts": 1758799579000
}
},
"type": "ia.input.date-time-input"

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,65 @@
{
"custom": {},
"params": {
"highlightTagPath": "value"
},
"propConfig": {
"params.highlightTagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 1080,
"width": 1920
}
},
"root": {
"children": [
{
"meta": {
"name": "EmbeddedView"
},
"position": {
"height": 1,
"width": 1
},
"propConfig": {
"props.params.viewParams.highlightTagPath": {
"binding": {
"config": {
"path": "view.params.highlightTagPath"
},
"type": "property"
}
}
},
"props": {
"params": {
"controls": {
"click": true,
"in": true,
"out": true,
"pan": true,
"reset": true,
"zoom": true
},
"panning": true,
"viewParams": {},
"viewPath": "autStand/Detailed_Views/MCM-Views/MCM02"
},
"path": "autStand/Custom_Views/View-Scaler"
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"props": {
"mode": "percent"
},
"type": "ia.container.coord"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -453,7 +453,7 @@
]
},
"title": "",
"viewPath": "autStand/Detailed_Views/MCM01-FLUID INBOUND"
"viewPath": "autStand/Detailed_Views/ZOOM-MCM01"
},
"/autStand/MCM02": {
"docks": {
@ -551,7 +551,7 @@
]
},
"title": "",
"viewPath": "autStand/Detailed_Views/MCM02-NC SORTER"
"viewPath": "autStand/Detailed_Views/ZOOM-MCM02"
},
"/autStand/Statistics": {
"docks": {
@ -917,6 +917,10 @@
},
"viewPath": "Windows/Help"
},
"/new-page": {
"title": "",
"viewPath": ""
},
"/statistics": {
"docks": {
"bottom": [

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,8 +1,8 @@
{
"custom": {
"params": {
"panZoomScale": 1,
"text": "MCM01"
"highlightTagPath": "MCM01",
"panZoomScale": 1
},
"scale": 1,
"x": 0,
@ -19,7 +19,7 @@
},
"panning": true,
"viewParams": {
"text": "MCM01"
"highlightTagPath": "MCM01"
},
"viewPath": "autStand/Detailed_Views/MCM-Views/MCM01"
},
@ -94,6 +94,14 @@
"type": "property"
}
},
"props.params.highlightTagPath": {
"binding": {
"config": {
"path": "view.custom.params.highlightTagPath"
},
"type": "property"
}
},
"props.path": {
"binding": {
"config": {
@ -564,7 +572,6 @@
"props": {
"mode": "percent",
"style": {
"border": "solid red",
"overflow": "hidden",
"overflowX": "hidden",
"overflowY": "hidden"

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

View File

@ -453,7 +453,7 @@
]
},
"title": "",
"viewPath": "autStand/Detailed_Views/MCM01-FLUID INBOUND"
"viewPath": "autStand/Detailed_Views/ZOOM-MCM01"
},
"/autStand/MCM02": {
"docks": {
@ -551,7 +551,7 @@
]
},
"title": "",
"viewPath": "autStand/Detailed_Views/MCM02-NC SORTER"
"viewPath": "autStand/Detailed_Views/ZOOM-MCM02"
},
"/autStand/Statistics": {
"docks": {
@ -917,6 +917,10 @@
},
"viewPath": "Windows/Help"
},
"/new-page": {
"title": "",
"viewPath": ""
},
"/statistics": {
"docks": {
"bottom": [

View File

@ -9,8 +9,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-25T11:17:45Z"
"timestamp": "2025-09-25T12:11:49Z"
},
"lastModificationSignature": "fc589f4ee7137b49f256857fd69b0681f76070a8cbc08232064c8af40a920d9d"
"lastModificationSignature": "3bb50af6be5d582438da031187b8478db69b1a8d52c8f82837434745555c63e4"
}
}

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-24T09:53:20Z"
"timestamp": "2025-09-25T11:25:49Z"
},
"lastModificationSignature": "5f583c26c40d937e037113ce24e46c695d7c9f507106a6cce586ce63e225baa7"
"lastModificationSignature": "45ae9cfbd336be5ba3de25b1265cfe6283822b2faab1a415bf5e66aabab5b172"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-24T09:54:21Z"
"timestamp": "2025-09-25T11:26:19Z"
},
"lastModificationSignature": "80f2e28be55df874872209fb5ec511b3920bd3b03851581a57e10bf13b6d2722"
"lastModificationSignature": "fe08caaedfd54a257617d321243be04f68bd518b24f2ba608ec314714b4088df"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-25T11:21:06Z"
"timestamp": "2025-09-25T12:10:33Z"
},
"lastModificationSignature": "cace0d4ea8afb07cc145d3dda70d18b068f737d98535e63982cca6b27c7e3b46"
"lastModificationSignature": "63678f7b5e29f8326cc640289d8d86f6a1c502799815b37f8114890548b2e37b"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@ -1,8 +1,8 @@
{
"custom": {
"params": {
"panZoomScale": 1,
"text": "MCM01"
"highlightTagPath": "MCM01",
"panZoomScale": 1
},
"scale": 1,
"x": 0,
@ -19,7 +19,7 @@
},
"panning": true,
"viewParams": {
"text": "MCM01"
"highlightTagPath": "MCM01"
},
"viewPath": "autStand/Detailed_Views/MCM-Views/MCM01"
},
@ -94,6 +94,14 @@
"type": "property"
}
},
"props.params.highlightTagPath": {
"binding": {
"config": {
"path": "view.custom.params.highlightTagPath"
},
"type": "property"
}
},
"props.path": {
"binding": {
"config": {
@ -564,7 +572,6 @@
"props": {
"mode": "percent",
"style": {
"border": "solid red",
"overflow": "hidden",
"overflowX": "hidden",
"overflowY": "hidden"

View File

@ -0,0 +1,17 @@
{
"scope": "G",
"version": 1,
"restricted": false,
"overridable": true,
"files": [
"view.json",
"thumbnail.png"
],
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-25T12:13:21Z"
},
"lastModificationSignature": "c6f1d1008217c44b2199c30dfaa21820e0e761d53741e1a2a8112cb0def9a241"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,17 @@
{
"scope": "G",
"version": 1,
"restricted": false,
"overridable": true,
"files": [
"view.json",
"thumbnail.png"
],
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-25T12:15:10Z"
},
"lastModificationSignature": "66af6c348905f6bacaf450bceed2bf9f9c2bbd61100ce80d385350b4cd6b598d"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-25T11:21:10Z"
"timestamp": "2025-09-25T12:13:28Z"
},
"lastModificationSignature": "ed927999504a2c12e21e8b78cc0610d4c18643088e40f23e3e5c0c6e20349962"
"lastModificationSignature": "71661bd0c0bf9cb2f5602af8316606fc20752834f46b5588848557ac6a434816"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-25T11:20:41Z"
"timestamp": "2025-09-25T12:16:54Z"
},
"lastModificationSignature": "3ac20e6c95608e823ff16748aafda4962b6b8b559baade9cebde8971bab06bba"
"lastModificationSignature": "344bdc6faeeb97842c2ababbf23e8d37e128070f816b7f634fe855bddc853d4e"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-02T11:00:18Z"
"timestamp": "2025-09-25T11:26:20Z"
},
"lastModificationSignature": "401a52f91bb50c727e086356e0899ca50e26aa294678795a815d36285c95d6fd"
"lastModificationSignature": "22988ec6ad17bce45fc24ac0ce135747f586344bf27725776822733f390bcd57"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -618,7 +618,7 @@
"$": [
"ds",
192,
1756810817838
1758799579119
],
"$columns": [
{
@ -2165,7 +2165,7 @@
"$": [
"ds",
192,
1756810817838
1758799579116
],
"$columns": [
{
@ -2217,7 +2217,7 @@
"$": [
"ds",
192,
1756810817838
1758799579117
],
"$columns": [
{
@ -3538,7 +3538,7 @@
"$": [
"ds",
192,
1756810817822
1758799579119
],
"$columns": [
{
@ -4880,7 +4880,7 @@
"$": [
"ds",
192,
1756810817824
1758799579124
],
"$columns": [
{
@ -9629,7 +9629,7 @@
"$": [
"ds",
192,
1756810817824
1758799579124
],
"$columns": [
{
@ -24962,7 +24962,7 @@
"$": [
"ds",
192,
1756810817838
1758799579117
],
"$columns": [
{
@ -26414,20 +26414,7 @@
"bottom": false
},
"selection": {
"data": [
{
"Endtstamp": null,
"Inbound_jam": null,
"Inbound_perc": null,
"Sorter_jam": null,
"Sorter_perc": null,
"Startstamp": null,
"Total_Jam": null,
"Total_perc": 1
}
],
"mode": "multiple interval",
"selectedRow": 0
"mode": "multiple interval"
},
"virtualized": false
},
@ -29498,7 +29485,7 @@
},
"props": {
"dismissOnSelect": false,
"formattedValue": "Sep 2, 2025 2:00 PM",
"formattedValue": "Sep 25, 2025 2:26 PM",
"formattedValues": {
"date": "Mar 26, 2021",
"datetime": "Mar 26, 2021 12:00 AM",
@ -29516,9 +29503,9 @@
"$": [
"ts",
192,
1756810817837
1758799579111
],
"$ts": 1756807217000
"$ts": 1758795979000
}
},
"type": "ia.input.date-time-input"
@ -29669,7 +29656,7 @@
},
"props": {
"dismissOnSelect": false,
"formattedValue": "Sep 2, 2025 3:00 PM",
"formattedValue": "Sep 25, 2025 3:26 PM",
"formattedValues": {
"date": "Mar 29, 2021",
"datetime": "Mar 29, 2021 1:37 PM",
@ -29687,9 +29674,9 @@
"$": [
"ts",
192,
1756810817834
1758799579111
],
"$ts": 1756810817000
"$ts": 1758799579000
}
},
"type": "ia.input.date-time-input"

View File

@ -17,7 +17,7 @@ def get_project_config():
os.getcwd().replace("\\", "/")
+ "/data/projects/"
+ project_name
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views"
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views/MCM-Views"
)
if not os.path.exists(base_path):
@ -61,6 +61,10 @@ def get_project_config():
def navigate_to_url(self, source_id, page_id):
url_to_navigate = "autStand/Detailed_Views/%s" % (page_id)
if "MCM01" in url_to_navigate:
url_to_navigate += "-FLUID INBOUND"
else:
url_to_navigate += "-NC SORTER"
system.perspective.navigate(view=url_to_navigate, params={"highlightTagPath": source_id + "||Diagnostic"})

View File

@ -9,9 +9,9 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-16T13:36:30Z"
"timestamp": "2025-09-25T12:15:37Z"
},
"hintScope": 2,
"lastModificationSignature": "dc8e883de7a56e1b645e56bb9f9cecf01cc42c01563a552e9c5be07649af30be"
"lastModificationSignature": "de180872d4b911a4a4be59c297c54c4dd702456b28b734feae48ceeec0eea320"
}
}

View File

@ -22,7 +22,7 @@ def build_device_mapping(full_tag_path):
os.getcwd().replace("\\", "/")
+ "/data/projects/"
+ project_name
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views"
+ "/com.inductiveautomation.perspective/Views/autStand/Detailed_Views/MCM-Views"
)
if not os.path.exists(base_path):

View File

@ -9,9 +9,9 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-23T08:50:46Z"
"timestamp": "2025-09-25T11:56:05Z"
},
"hintScope": 2,
"lastModificationSignature": "b38d2c5311735c4fdd9a9ac1a74d71776b568cea161f5c627f71467beb3e9be6"
"lastModificationSignature": "31548e1f209e27d65294264992e98c0d3c85525940409432e24411b6b3e1b0cc"
}
}