Class: ModifyCleanupHelper
Defined in: src/helper/modify-cleanup-helper.ts:9
Helper class for cleaning and clearing PowerPoint effects in XML structure
Constructors
Constructor
new ModifyCleanupHelper():
ModifyCleanupHelper
Returns
ModifyCleanupHelper
Methods
clearTextBold()
staticclearTextBold(element):void
Defined in: src/helper/modify-cleanup-helper.ts:269
Parameters
element
Element
Returns
void
clearTextColor()
staticclearTextColor(element,color?):void
Defined in: src/helper/modify-cleanup-helper.ts:283
Parameters
element
Element
color?
Returns
void
clearTextItalicsToBold()
staticclearTextItalicsToBold(element):void
Defined in: src/helper/modify-cleanup-helper.ts:250
Parameters
element
Element
Returns
void
clearTextSize()
staticclearTextSize(element):void
Defined in: src/helper/modify-cleanup-helper.ts:276
Parameters
element
Element
Returns
void
clearTextUnderline()
staticclearTextUnderline(element):void
Defined in: src/helper/modify-cleanup-helper.ts:262
Parameters
element
Element
Returns
void
clearTextUnderlineToBold()
staticclearTextUnderlineToBold(element):void
Defined in: src/helper/modify-cleanup-helper.ts:238
Parameters
element
Element
Returns
void
remove3dEffects()
staticremove3dEffects(element):void
Defined in: src/helper/modify-cleanup-helper.ts:332
Parameters
element
Element
Returns
void
removeBackground()
staticremoveBackground(element):void
Defined in: src/helper/modify-cleanup-helper.ts:16
Removes background color and fill elements from a shape This removes both visible and hidden fill properties and sets explicit noFill
Parameters
element
Element
The XML element representing the shape
Returns
void
removeBorder()
staticremoveBorder(element):void
Defined in: src/helper/modify-cleanup-helper.ts:112
Removes border/outline from a shape This function removes the a:ln (line) element which defines the border properties
Parameters
element
Element
The XML element representing the shape
Returns
void
removeColorAdjustment()
staticremoveColorAdjustment(element):void
Defined in: src/helper/modify-cleanup-helper.ts:351
Parameters
element
Element
Returns
void
removeEffects()
staticremoveEffects(element):void
Defined in: src/helper/modify-cleanup-helper.ts:145
Removes unwanted visual effects from PowerPoint elements based on their type Preserves certain effects for drawings but removes distracting effects from photos
Parameters
element
Element
The XML element to clean up
Returns
void
removeExtLst()
staticremoveExtLst(element):void
Defined in: src/helper/modify-cleanup-helper.ts:233
Removes extension list (extLst) elements from PowerPoint shapes
The extLst (Extension List) element in OOXML contains application-specific extensions and future compatibility features that may not be supported across all Office versions. These extensions can include:
- Custom drawing effects and transformations
- Third-party add-in specific properties
- Version-specific features that may cause rendering inconsistencies
- Experimental or preview features
Removing extLst helps ensure cross-version compatibility and prevents rendering issues when the presentation is opened in different versions of PowerPoint or other OOXML-compatible applications.
Parameters
element
Element
The XML element containing extension lists to remove
Returns
void
removeFillEffects()
staticremoveFillEffects(element):void
Defined in: src/helper/modify-cleanup-helper.ts:319
Parameters
element
Element
Returns
void
removeShadowEffects()
staticremoveShadowEffects(element):void
Defined in: src/helper/modify-cleanup-helper.ts:338
Parameters
element
Element
Returns
void
removeShapeStyle()
staticremoveShapeStyle(element):void
Defined in: src/helper/modify-cleanup-helper.ts:58
Removes shape style but preserves fill color information by moving it to a standard fill element This converts the p:style reference colors to direct solidFill colors on the shape
Parameters
element
Element
The XML element representing the shape
Returns
void
removeTextEffects()
staticremoveTextEffects(element):void
Defined in: src/helper/modify-cleanup-helper.ts:198
Removes text formatting effects
Parameters
element
Element
The XML element containing text runs to clean up
Returns
void