MCPcopy Create free account
hub / github.com/microsoft/SandDance / initializeState

Method initializeState

docs/app/js/sanddance-app.js:7708–7730  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7706 };
7707 }
7708 initializeState() {
7709 const attributeManager = this.getAttributeManager();
7710 attributeManager.addInstanced({
7711 instancePositions: {
7712 size: 3,
7713 type: DOUBLE,
7714 transition: true,
7715 accessor: "getPosition"
7716 },
7717 instanceSizes: {
7718 size: 3,
7719 transition: true,
7720 accessor: "getSize"
7721 },
7722 instanceColors: {
7723 size: 4,
7724 type: UNSIGNED_BYTE,
7725 transition: true,
7726 accessor: "getColor",
7727 defaultValue: DEFAULT_COLOR
7728 }
7729 });
7730 }
7731 updateState({ props , oldProps , changeFlags }) {
7732 super.updateState({
7733 props,

Callers 1

sanddance-app.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected