One Hat Cyber Team
Your IP :
216.73.217.126
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
esetkocsi
/
www
/
node_modules
/
svgo
/
plugins
/
View File Name :
removeNonInheritableGroupAttrs.js
'use strict'; exports.name = 'removeNonInheritableGroupAttrs'; exports.type = 'perItem'; exports.active = true; exports.description = 'removes non-inheritable group’s presentational attributes'; const { inheritableAttrs, attrsGroups, presentationNonInheritableGroupAttrs, } = require('./_collections'); /** * Remove non-inheritable group's "presentation" attributes. * * @param {Object} item current iteration item * @return {Boolean} if false, item will be filtered out * * @author Kir Belevich */ exports.fn = function (item) { if (item.type === 'element' && item.name === 'g') { for (const name of Object.keys(item.attributes)) { if ( attrsGroups.presentation.includes(name) === true && inheritableAttrs.includes(name) === false && presentationNonInheritableGroupAttrs.includes(name) === false ) { delete item.attributes[name]; } } } };