In angular 17 create shape

there is an event as below in PaletteProvider.js
var startEvent = elementFactory.createShape({
type: ‘bpmn:StartEvent’,
x: 40,
y: 82,
parent: subProcess

above event is not available PaletteProvider.ts file for angular,

I want to create custom shape in angular using PaletteProvider.ts

Please suggest

For assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it.