Skip to content

Commit 28f40b2

Browse files
committed
fix(AbstractRepresentationProxy): Allow dynamic link registration
1 parent 9679fdd commit 28f40b2

File tree

1 file changed

+10
-0
lines changed
  • Sources/Proxy/Core/AbstractRepresentationProxy

1 file changed

+10
-0
lines changed

Sources/Proxy/Core/AbstractRepresentationProxy/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ function vtkAbstractRepresentationProxy(publicAPI, model) {
3434
updateConnectivity
3535
);
3636
}
37+
38+
// Allow dynamic registration of links
39+
if (model.links) {
40+
for (let i = 0; i < model.links.length; i++) {
41+
const { link, property } = model.links[i];
42+
const sLink = source.getPropertyLink(link);
43+
publicAPI.registerPropertyLinkForGC(sLink);
44+
sLink.bind(publicAPI, property);
45+
}
46+
}
3747
};
3848

3949
publicAPI.getInputDataSet = () =>

0 commit comments

Comments
 (0)