MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / initBuiltinProps

Method initBuiltinProps

packages/core/src/document/node/node.ts:200–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 }
199
200 initBuiltinProps() {
201 this.props.has(getConvertedExtraKey('hidden')) || this.props.add(getConvertedExtraKey('hidden'), false)
202 this.props.has(getConvertedExtraKey('locked')) || this.props.add(getConvertedExtraKey('locked'), false)
203 this.props.has(getConvertedExtraKey('title')) || this.props.add(getConvertedExtraKey('title'), '')
204 this.props.has(getConvertedExtraKey('loop')) || this.props.add(getConvertedExtraKey('loop'), undefined)
205 this.props.has(getConvertedExtraKey('condition')) || this.props.add(getConvertedExtraKey('condition'), true)
206 }
207
208 private initProps(props: PropsMap) {
209 return this.document.designer.transformProps(props, this, TRANSFORM_STAGE.INIT)

Callers 1

constructorMethod · 0.95

Calls 3

getConvertedExtraKeyFunction · 0.90
hasMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected