mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
update some jsdoc with examples
This commit is contained in:
@ -6,6 +6,11 @@ var regEnableBackground = /^new\s0\s0\s(\d+)\s(\d+)$/,
|
|||||||
*
|
*
|
||||||
* @see http://www.w3.org/TR/SVG/filters.html#EnableBackgroundProperty
|
* @see http://www.w3.org/TR/SVG/filters.html#EnableBackgroundProperty
|
||||||
*
|
*
|
||||||
|
* @example
|
||||||
|
* <svg width="100" height="50" enable-background="new 0 0 100 50">
|
||||||
|
* ⬇
|
||||||
|
* <svg width="100" height="50">
|
||||||
|
*
|
||||||
* @param {Object} item current iteration item
|
* @param {Object} item current iteration item
|
||||||
* @param {Object} params plugin params
|
* @param {Object} params plugin params
|
||||||
* @return {Boolean} if false, item will be filtered out
|
* @return {Boolean} if false, item will be filtered out
|
||||||
|
@ -6,6 +6,11 @@ var regViewBox = /^0\s0\s(\d+)\s(\d+)$/,
|
|||||||
*
|
*
|
||||||
* @see http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
|
* @see http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
|
||||||
*
|
*
|
||||||
|
* @example
|
||||||
|
* <svg width="100" height="50" viewBox="0 0 100 50">
|
||||||
|
* ⬇
|
||||||
|
* <svg width="100" height="50">
|
||||||
|
*
|
||||||
* @param {Object} item current iteration item
|
* @param {Object} item current iteration item
|
||||||
* @param {Object} params plugin params
|
* @param {Object} params plugin params
|
||||||
* @return {Boolean} if false, item will be filtered out
|
* @return {Boolean} if false, item will be filtered out
|
||||||
|
Reference in New Issue
Block a user