Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / ObjectLockProps

Interface: ObjectLockProps

Defined in: core-interfaces.ts:831

Object lock flags. Maps to DrawingML locking elements:

  • shapes / text boxes / placeholders → a:spLocks
  • images / media → a:picLocks
  • tables → a:graphicFrameLocks

Each property mirrors the OOXML attribute name. A flag is only serialized for object types whose locking element defines it (noted per-flag); setting an unsupported flag logs a warning and is ignored.

Since

v4.0.0

Properties

noAdjustHandles?

optional noAdjustHandles?: boolean

Defined in: core-interfaces.ts:847

Disallow moving the shape's adjustment handles. (shapes, images)


noChangeArrowheads?

optional noChangeArrowheads?: boolean

Defined in: core-interfaces.ts:849

Disallow changing arrowheads. (shapes, images)


noChangeAspect?

optional noChangeAspect?: boolean

Defined in: core-interfaces.ts:841

Disallow changing the aspect ratio. (shapes, images, tables)


noChangeShapeType?

optional noChangeShapeType?: boolean

Defined in: core-interfaces.ts:851

Disallow changing the shape type (preset geometry). (shapes, images)


noCrop?

optional noCrop?: boolean

Defined in: core-interfaces.ts:855

Disallow cropping the picture. (images)


noDrilldown?

optional noDrilldown?: boolean

Defined in: core-interfaces.ts:857

Disallow drilling down into the graphical object (e.g. chart data). (tables)


noEditPoints?

optional noEditPoints?: boolean

Defined in: core-interfaces.ts:845

Disallow editing the freeform/custom-geometry points. (shapes, images)


noGrp?

optional noGrp?: boolean

Defined in: core-interfaces.ts:833

Disallow grouping/ungrouping with other objects. (shapes, images, tables)


noMove?

optional noMove?: boolean

Defined in: core-interfaces.ts:837

Disallow moving the object. (shapes, images, tables)


noResize?

optional noResize?: boolean

Defined in: core-interfaces.ts:839

Disallow resizing the object. (shapes, images, tables)


noRot?

optional noRot?: boolean

Defined in: core-interfaces.ts:843

Disallow rotating the object. (shapes, images)


noSelect?

optional noSelect?: boolean

Defined in: core-interfaces.ts:835

Disallow selecting the object. (shapes, images, tables)


noTextEdit?

optional noTextEdit?: boolean

Defined in: core-interfaces.ts:853

Disallow editing the text body. (shapes / text boxes)