Skip to content

Commit

Permalink
GEP-136 feat: Update examples to have proxy instances with visibility…
Browse files Browse the repository at this point in the history
… prop
  • Loading branch information
afonsobspinto committed Feb 6, 2024
1 parent 4a7a402 commit ada4f73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function loadInstances (){

function getProxyInstances () {
return window.Instances.map(i => (
{ instancePath: i.getId(), color: { r: 0, g:1, b: 0, a:1 } }))
{ instancePath: i.getId(), color: { r: 0, g:1, b: 0, a:1 }, visibility: true }))
}

const styles = () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export function mapToCanvasData (data){
return data.map(item => (
{
color: item.selected ? SELECTION_COLOR : item.color,
instancePath: item.instancePath
instancePath: item.instancePath,
visibility: item.visibility ? item.visibility : true
}
))
}
Expand Down

0 comments on commit ada4f73

Please sign in to comment.