Thanks for the replies! Basically I have a rectangle with content “1” connected, using an arrow, to a rectangle with content “2”. I selected all items (or did cmd-A) then hit “Copy As > Javascript”…
What I’m seeing is the ordering of the output is different each time… In my case, order is important since I am parsing this JavaScript output.
1st output:
// Floating point values in this script may be rounded, resulting in minor visual differences from the original
var canvas = document.windows[0].selection.canvas;
var g1 = canvas.newShape();
var g2 = canvas.newShape();
var g3 = canvas.newLine();
g1.automationAction = [];
g1.textVerticalPlacement = VerticalTextPlacement.Middle;
g1.strokePattern = StrokeDash.Solid;
g1.plasticCurve = null;
g1.strokeJoin = LineJoin.Round;
g1.notes = "";
g1.blendFraction = 0;
g1.plasticHighlightAngle = null;
g1.textRotationIsRelative = true;
g1.gradientColor = Color.RGB(0.20000000298023224, 0.20000000298023224, 0.20000000298023224);
g1.shape = "Rectangle";
g1.blendColor = null;
g1.shadowVector = new Point(0.00, 2.00);
g1.gradientAngle = 90;
g1.strokeCap = LineCap.Round;
g1.geometry = new Rect(83.50, 236.00, 193.50, 58.50);
g1.fontName = "HelveticaNeue";
g1.image = null;
g1.textRotation = 0;
g1.name = null;
g1.textHorizontalPadding = 5;
g1.autosizing = TextAutosizing.Overflow;
g1.imageSizing = ImageSizing.Manual;
g1.locked = false;
g1.flippedHorizontally = false;
g1.flippedVertically = false;
g1.actionURL = null;
g1.imagePage = 0;
g1.textUnitRect = new Rect(0.00, 0.00, 1.00, 1.00);
g1.shadowColor = null;
g1.rotation = 0;
g1.userData = {};
g1.gradientCenter = new Point(0.00, 0.00);
g1.imageOpacity = 0;
g1.textColor = Color.black;
g1.shadowFuzziness = 3;
g1.allowsConnections = true;
g1.text = "1";
g1.fillType = FillType.Solid;
g1.tripleBlend = false;
g1.imageOffset = new Point(0.00, 0.00);
g1.textAlongPathGlyphAnchor = 0;
g1.fillColor = Color.RGB(0.0, 0.5, 1.0, 0.90221);
g1.cornerRadius = 2;
g1.imageScale = new Size(0.00, 0.00);
g1.textFlow = TextFlow.Overflow;
g1.textHorizontalAlignment = HorizontalTextAlignment.Center;
g1.strokeThickness = 2;
g1.textWraps = true;
g1.textSize = 16;
g1.strokeColor = Color.RGB(0.0, 0.0, 0.0);
g1.textVerticalPadding = 0;
g1.strokeType = StrokeType.Single;
...
2nd output:
// Floating point values in this script may be rounded, resulting in minor visual differences from the original
var canvas = document.windows[0].selection.canvas;
var g1 = canvas.newShape();
var g2 = canvas.newShape();
var g3 = canvas.newLine();
g1.strokePattern = StrokeDash.Solid;
g1.magnets = [];
g1.strokeThickness = 2;
g1.textHorizontalAlignment = HorizontalTextAlignment.Center;
g1.textVerticalPadding = 0;
g1.imagePage = 0;
g1.name = null;
g1.flippedVertically = false;
g1.image = null;
g1.imageOffset = new Point(0.00, 0.00);
g1.textUnitRect = new Rect(0.00, 0.00, 1.00, 1.00);
g1.textAlongPathGlyphAnchor = 0;
g1.shadowVector = new Point(0.00, 2.00);
g1.plasticHighlightAngle = null;
g1.fontName = "HelveticaNeue";
g1.flippedHorizontally = false;
g1.actionURL = null;
g1.notes = "";
g1.imageSizing = ImageSizing.Manual;
g1.textRotationIsRelative = true;
g1.textVerticalPlacement = VerticalTextPlacement.Middle;
g1.text = "1";
g1.textHorizontalPadding = 5;
g1.locked = false;
g1.strokeColor = Color.RGB(0.0, 0.0, 0.0);
g1.autosizing = TextAutosizing.Overflow;
g1.alignsEdgesToGrid = true;
g1.geometry = new Rect(83.50, 236.00, 193.50, 58.50);
g1.tripleBlend = false;
g1.fillColor = Color.RGB(0.0, 0.5, 1.0, 0.90221);
g1.userData = {};
g1.textRotation = 0;
g1.gradientColor = Color.RGB(0.20000000298023224, 0.20000000298023224, 0.20000000298023224);
g1.shadowFuzziness = 3;
g1.blendFraction = 0;
g1.automationAction = [];
g1.rotation = 0;
g1.plasticCurve = null;
g1.strokeCap = LineCap.Round;
g1.allowsConnections = true;
g1.textFlow = TextFlow.Overflow;
g1.gradientCenter = new Point(0.00, 0.00);
g1.shadowColor = null;
g1.textWraps = true;
g1.strokeType = StrokeType.Single;
g1.imageOpacity = 0;
g1.gradientAngle = 90;
g1.imageScale = new Size(0.00, 0.00);
g1.fillType = FillType.Solid;
g1.strokeJoin = LineJoin.Round;
g1.textSize = 16;
g1.shape = "Rectangle";
g1.cornerRadius = 2;
g1.textColor = Color.black;
g1.blendColor = null;
...