Browse Source

Merge pull request #2 from naga-framework/fecolormatrix

add mode attributes
Namdak Tonpa 8 years ago
parent
commit
92666f83a9
2 changed files with 3 additions and 2 deletions
  1. 1 1
      include/svg.hrl
  2. 2 1
      src/element_fecolormatrix.erl

+ 1 - 1
include/svg.hrl

@@ -39,7 +39,7 @@
 -record(desc, {?ELEMENT_BASE(element_desc), ?SVG_CORE}).
 -record(desc, {?ELEMENT_BASE(element_desc), ?SVG_CORE}).
 -record(ellipse, {?ELEMENT_BASE(element_ellipse), cx, cy, rx, ry, transform, externalResourcesRequired, ?SVG_CONDITIONAL_PROCESSING, ?SVG_CORE, ?SVG_GRAPHICAL_EVENT, ?SVG_PRESENTATION}).
 -record(ellipse, {?ELEMENT_BASE(element_ellipse), cx, cy, rx, ry, transform, externalResourcesRequired, ?SVG_CONDITIONAL_PROCESSING, ?SVG_CORE, ?SVG_GRAPHICAL_EVENT, ?SVG_PRESENTATION}).
 -record(feBlend, {?ELEMENT_BASE(element_feblend), in, in2, mode, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feBlend, {?ELEMENT_BASE(element_feblend), in, in2, mode, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
--record(feColorMatrix, {?ELEMENT_BASE(element_fecolormatrix), in, type, values, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
+-record(feColorMatrix, {?ELEMENT_BASE(element_fecolormatrix), in, type, mode, values, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feComponentTransfer, {?ELEMENT_BASE(element_fecomponenttransfer), in, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feComponentTransfer, {?ELEMENT_BASE(element_fecomponenttransfer), in, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feComposite, {?ELEMENT_BASE(element_fecomposite), in, in2, operator, k1, k2, k3, k4, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feComposite, {?ELEMENT_BASE(element_fecomposite), in, in2, operator, k1, k2, k3, k4, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feConvolveMatrix, {?ELEMENT_BASE(element_feconvolvematrix), in, order, kernelMatrix, divisor, bias, targetX, targetY, edgeMode, kernelUnitLength, preserveAlpha, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).
 -record(feConvolveMatrix, {?ELEMENT_BASE(element_feconvolvematrix), in, order, kernelMatrix, divisor, bias, targetX, targetY, edgeMode, kernelUnitLength, preserveAlpha, ?SVG_CORE, ?SVG_FILTER_PRIMITIVE, ?SVG_PRESENTATION}).

+ 2 - 1
src/element_fecolormatrix.erl

@@ -12,7 +12,8 @@ render_element(Record) ->
 			{<<"style">>, Record#feColorMatrix.style},
 			{<<"style">>, Record#feColorMatrix.style},
 			{<<"in">>, Record#feColorMatrix.in},
 			{<<"in">>, Record#feColorMatrix.in},
 			{<<"type">>, Record#feColorMatrix.type},
 			{<<"type">>, Record#feColorMatrix.type},
-			{<<"values">>, Record#feColorMatrix.values}
+			{<<"values">>, Record#feColorMatrix.values},
+	        {<<"mode">>, Record#feColorMatrix.mode}
 		],
 		],
 		svg_core(Record),
 		svg_core(Record),
 		svg_filter_primitive(Record),
 		svg_filter_primitive(Record),