Mapping handler dependencies

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 324
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Mapping handler dependencies

Post by SWEdeAndy » Wed Dec 04, 2024 8:40 pm

Fjord wrote:
Thu Nov 28, 2024 6:59 pm
Of course this is way more general than what I suggested.
Yes, I extended the scope to include all types of handlers, as that was no more work than including just some of them. It felt more complete that way. :)
Thanks, especially as version 1.2.0 (which I had missed till now) was released on my birthday…!
Yes, that was of course intentional - congratulations! :mrgreen:

And now I've released v1.2.1 where the PNG and SVG creation works again:
https://github.com/wheninspace/WIS_Scri ... ses/latest
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Mapping handler dependencies

Post by bn » Wed Dec 04, 2024 9:36 pm

Hi Andreas,

In my short testing it worked flawlessly, I am always amazed at what you do in "Mapping Handler Dependencies"

Thank you
Bernd

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 324
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Mapping handler dependencies

Post by SWEdeAndy » Wed Dec 04, 2024 10:04 pm

Thanks Bernd!

On the use-list I got quick feedback that large flowcharts give a syntax error.
In the flowchart settings (the cogwheel next to the Create flowchart button), change the Mermaid version to 10.5.1.
That fixes it.

I have now made that the default version again, and replaced the downloadable stack without creating a new release. If you do the above fix manually, you don't need to re-download.

Apparently the newest Mermaid version (11.4.0) still has an issue with massive flowcharts. I had not sufficiently tested that before making it default.
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Mapping handler dependencies

Post by bn » Wed Dec 04, 2024 11:22 pm

SWEdeAndy wrote:
Wed Dec 04, 2024 10:04 pm
change the Mermaid version to 10.5.1.
I did that and it worked.
Kind regards
Bernd

Fjord
Posts: 145
Joined: Sat Dec 06, 2008 6:18 pm

Re: Mapping handler dependencies

Post by Fjord » Tue Dec 10, 2024 8:29 pm

Hi, Andreas!
I've found somethig strange to me: I've got several stacks, that define commands and functions (duh!). When I check the "Group per handler host" checkbox:
1. the commands are correctly assigned to their stack, be they private or not;
2. the functions…
2.1. … are correctly assigned to their stack if they're private
2.2. but they seem to float freely out of the stack boxes when they're not private
See function nEstPasAJour in the first 2 images below.
Now, is that a bug or is it a feature ? :)
Attachments
Screenshot 2024-12-10 à 20.13.36.png
Screenshot 2024-12-10 à 20.15.07.png
--
François

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 324
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Mapping handler dependencies

Post by SWEdeAndy » Wed Dec 11, 2024 6:06 pm

Fjord wrote:
Tue Dec 10, 2024 8:29 pm
Now, is that a bug or is it a feature ? :)
You have found a bug! Thank you! :)

From v1.2.0 I changed the shape of the function box, and I had missed to update some regex accordingly, which affects how handlers are sorted into host containers.

I have updated the code and will soon release the fixed version.
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 324
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Mapping handler dependencies

Post by SWEdeAndy » Wed Dec 11, 2024 8:32 pm

Latest release:

1.2.2 (11 Dec 2024)
- Fixed bug: Function boxes were not correctly included in host containers, when using the ”Group per handler host” feature
- Enhancement: The maxEdges value is now set to 5000, making it possible to draw enormous flowcharts also with Mermaid v11.4+. Note though, that the PNG/SVG production, which uses the kroki.io service, is still limited to the standard 500 edges (due to kroki.io limitations).

https://github.com/wheninspace/WIS_Scri ... ses/latest
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com

Post Reply