import { TRulesItem } from '../../typings' ; import { clearTextNode } from '../default-rules/clear-textnode' ; import { combineScript } from '../default-rules/combine-script' ; import { combineStyle } from '../default-rules/combine-style' ; import { combineTextNode } from '../default-rules/combine-textnode' ; import { applyStyle } from './apply-style' ; import { collapseG } from './collapse-g' ; import { collapseTextwrap } from './collapse-textwrap' ; import { combinePath } from './combine-path' ; import { combineTransform } from './combine-transform' ; import { computePath } from './compute-path' ; import { rmAttribute } from './rm-attribute' ; import { rmComments } from './rm-comments' ; import { rmDocType } from './rm-doctype' ; import { rmHidden } from './rm-hidden' ; import { rmImportant } from './rm-important' ; import { rmIllegalStyle } from './rm-illegal-style' ; import { rmIrregularNesting } from './rm-irregular-nesting' ; import { rmIrregularTag } from './rm-irregular-tag' ; import { rmPx } from './rm-px' ; import { rmUnnecessary } from './rm-unnecessary' ; import { rmVersion } from './rm-version' ; import { rmViewBox } from './rm-viewbox' ; import { rmXMLDecl } from './rm-xml-decl' ; import { rmXMLNS } from './rm-xmlns' ; import { shortenAnimate } from './shorten-animate' ; import { shortenClass } from './shorten-class' ; import { shortenColor } from './shorten-color' ; import { shortenDecimalDigits } from './shorten-decimal-digits' ; import { shortenDefs } from './shorten-defs' ; import { shortenFilter } from './shorten-filter' ; import { shortenID } from './shorten-id' ; import { shortenShape } from './shorten-shape' ; import { shortenStyleAttr } from './shorten-style-attr' ; import { shortenStyleTag } from './shorten-style-tag' ; import { styleToClass } from './style-to-class' ; export const rules = [ [ true , combineStyle ] , [ true , combineScript ] , [ true , clearTextNode ] , [ false , rmXMLDecl , 'rm-xml-decl' ] , [ false , rmVersion , 'rm-version' ] , [ false , rmDocType , 'rm-doctype' ] , [ false , rmComments , 'rm-comments' ] , [ false , rmIrregularTag , 'rm-irregular-tag' ] , [ false , rmIrregularNesting , 'rm-irregular-nesting' ] , [ false , rmUnnecessary , 'rm-unnecessary' ] , [ false , rmViewBox , 'rm-viewbox' ] , [ false , shortenAnimate , 'shorten-animate' ] , [ false , shortenFilter , 'shorten-filter' ] , [ false , applyStyle , 'apply-style' ] , [ false , collapseTextwrap , 'collapse-textwrap' ] , [ false , rmIllegalStyle , 'rm-illegal-style' ] , [ false , rmPx , 'rm-px' ] , [ false , rmAttribute , 'rm-attribute' ] , [ false , shortenDefs , 'shorten-defs' ] , [ false , shortenID , 'shorten-id' ] , [ false , shortenShape , 'shorten-shape' ] , [ false , combinePath , 'combine-path' ] , [ false , computePath , 'compute-path' ] , [ false , rmHidden , 'rm-hidden' ] , [ false , collapseG , 'collapse-g' ] , [ false , shortenStyleTag , 'shorten-style-tag' ] , [ false , applyStyle , 'apply-style' ] , [ false , rmImportant , 'rm-important' ] , [ false , combineTransform , 'combine-transform' ] , [ false , shortenDecimalDigits , 'shorten-decimal-digits' ] , [ false , shortenColor , 'shorten-color' ] , [ false , styleToClass , 'style-to-class' ] , [ false , shortenClass , 'shorten-class' ] , [ true , combineTextNode ] , [ false , rmXMLNS , 'rm-xmlns' ] , [ false , shortenStyleAttr , 'shorten-style-attr' ] , [ false , rmIllegalStyle , 'rm-illegal-style' ] , [ false , rmAttribute , 'rm-attribute' ] , [ false , computePath , 'compute-path' ] , ] ;