mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Remove access to _style since we're using getters / setters on items directly now for SVGStyles.
This commit is contained in:
parent
6e91d2ac9b
commit
30c96dc9c1
1 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ new function() {
|
|||
function applyOpacity(item, value, name) {
|
||||
// http://www.w3.org/TR/SVG/painting.html#FillOpacityProperty
|
||||
// http://www.w3.org/TR/SVG/painting.html#StrokeOpacityProperty
|
||||
var color = item._style[name === 'fill-opacity' ? 'getFillColor'
|
||||
var color = item[name === 'fill-opacity' ? 'getFillColor'
|
||||
: 'getStrokeColor']();
|
||||
if (color)
|
||||
color.setAlpha(parseFloat(value));
|
||||
|
@ -339,7 +339,7 @@ new function() {
|
|||
// can affect gradient fills.
|
||||
var attributes = Base.merge(Base.each(SVGStyles, function(entry) {
|
||||
this[entry.attribute] = function(item, value, name, node) {
|
||||
item._style[entry.set](
|
||||
item[entry.set](
|
||||
convertValue(value, entry.type, entry.fromSVG));
|
||||
};
|
||||
}, {}), {
|
||||
|
|
Loading…
Reference in a new issue