Book a Demo

Author Topic: Shapescript NOT fully executed on New Element...  (Read 3470 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Shapescript NOT fully executed on New Element...
« on: June 27, 2016, 09:56:54 am »
Elsewhere I've reported that dragging an element off the toolbox and adding it to the diagram via the New Element... browser function are inconsistent.

A further inconsistency is that the shapescript is not FULLY executed.

The shapescript defines the default size as: defsize(140,70); (for rectangular) and defsize(90,70); (for non-rectangular).  If you drag off the toolbox, you get a 140x70 diagram object, if you add from browser, you get a 90x70 diagram object.  Both are in rectangular mode (we have a marker in the shape script that interrogates rectangular).  Hitting [Alt+z] will then render the diagram object as 140x70!.  Dragging off the toolbox, you can actually see the 90x70 object "hit the diagram", but then get altered by the shapescript (as required) to be 140x70.

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!