Changes between Initial Version and Version 3 of Ticket #7522


Ignore:
Timestamp:
Sep 8, 2008, 12:10:04 AM (11 years ago)
Author:
Eugene Lazutkin
Comment:

Only string is supported as a shortcut, everything else (array, or object) should be properly wrapped:

shape.setStroke("red");
shape.setStroke({color: [255, 0, 0]});
shape.setStroke({color: {r: 255, g: 0, b: 0}});

I will extend this shortcut to include arrays, as well.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7522

    • Property Priority changed from normal to high
    • Property Status changed from new to assigned
    • Property Type changed from defect to enhancement
    • Property Milestone changed from tbd to 1.2
  • Ticket #7522 – Description

    initial v3  
    11I noticed that this fails on IE6/7 for some reason:
    22{{{
    3                     ball = surface.createCircle({
    4                         /* ... stuff ... */
    5                     })
    6                     //.setStroke("#888")
    7                     .setStroke([128,128,128])
    8                     .setFill("white")
    9                     ;
     3#!js
     4ball = surface.createCircle({
     5    /* ... stuff ... */
     6})
     7//.setStroke("#888")
     8.setStroke([128,128,128])
     9.setFill("white")
     10;
    1011}}}
    1112