Skip to content

Commit

Permalink
fix: use setShadowState instead of setShadow
Browse files Browse the repository at this point in the history
  • Loading branch information
maribethb committed Jan 5, 2024
1 parent 47c148e commit e765fc1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/developer-tools/src/blocks/factory_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ export const factoryBase = {
},
connectOutputShadow: function (outputType: string) {
// Helper method to create & connect shadow block.
const type = this.workspace.newBlock('type');
type.setShadow(true);
type.outputConnection.connect(this.getInput(outputType).connection);
type.initSvg();
if (this.rendered) {
type.render();
}
const connection = this.getInput(outputType).connection;
const shadowState = {
type: 'type',
};
connection.setShadowState(shadowState);
},
updateShape: function (option: string) {
const outputExists = this.getInput('OUTPUTTYPE');
Expand Down

0 comments on commit e765fc1

Please sign in to comment.