import{_ as r,a as t,b as a,ag as o}from"./chunks/framework.BcrMLAmg.js";const h=JSON.parse('{"title":"PropertySystem","description":"","frontmatter":{},"headers":[],"relativePath":"references/propertySystem.md","filePath":"references/propertySystem.md","lastUpdated":1757840145000}'),s={name:"references/propertySystem.md"};function l(n,e,p,d,i,m){return a(),t("div",null,e[0]||(e[0]=[o('

PropertySystem

PropertySystem is a class that allows Elements to have properties that can be observed and updated.It also allows for properties to have custom getters and setters. This is the base system for all Elements.

Functions

MethodReturnsDescription
PropertySystem.addSetterHook-Adds a setter hook to the PropertySystem
PropertySystem.defineProperty-Defines a property for an element class
PropertySystem.combineProperties-Combines multiple properties
PropertySystem.blueprinttableCreates a blueprint of an element class
PropertySystem.createFromBlueprinttableCreates an element from a blueprint
PropertySystem:__inittableInitializes the PropertySystem
PropertySystem:_updatePropertytableUpdate call for a property
PropertySystem:observetableObservers a property
PropertySystem:removeObservertableRemoves an observer from a property
PropertySystem:removeAllObserverstableRemoves all observers from a property
PropertySystem:instancePropertytableAdds a property to the PropertySystem on instance level
PropertySystem:removePropertytableRemoves a property from the PropertySystem
PropertySystem:getPropertyConfigtableGets a property configuration

PropertySystem.addSetterHook(hook)

Adds a setter hook to the PropertySystem. Setter hooks are functions that are called before a property is set.

Parameters

PropertySystem.defineProperty(class, name, config)

Defines a property for an element class

Parameters

PropertySystem.combineProperties(class, name)

Combines multiple properties into a single getter and setter

Parameters

PropertySystem.blueprint(elementClass)

Creates a blueprint of an element class with all its properties

Parameters

Returns

PropertySystem.createFromBlueprint(elementClass, blueprint)

Creates an element from a blueprint

Parameters

Returns

PropertySystem:__init()

Initializes the PropertySystem IS USED INTERNALLY

Returns

PropertySystem:_updateProperty(name, value)

Update call for a property IS USED INTERNALLY

Parameters

Returns

PropertySystem:observe(name, callback)

Observers a property

Parameters

Returns

PropertySystem:removeObserver(name, callback)

Removes an observer from a property

Parameters

Returns

PropertySystem:removeAllObservers(name?)

Removes all observers from a property

Parameters

Returns

PropertySystem:instanceProperty(name, config)

Adds a property to the PropertySystem on instance level

Parameters

Returns

PropertySystem:removeProperty(name)

Removes a property from the PropertySystem on instance level

Parameters

Returns

PropertySystem:getPropertyConfig(name)

Gets a property configuration

Parameters

Returns

',74)]))}const y=r(s,[["render",l]]);export{h as __pageData,y as default};