()
| 4732 | }; |
| 4733 | } |
| 4734 | build() { |
| 4735 | const { names , prefix , props } = this; |
| 4736 | const { globalScope , parentScope , scatterPointScaleDisplay , size , x , y , z , zGrounded } = props; |
| 4737 | const qsize = size && size.quantitative && size; |
| 4738 | (0, _scope.addSignals)(globalScope.scope, { |
| 4739 | name: (0, _constants.SignalNames).PointScale, |
| 4740 | value: 5, |
| 4741 | bind: { |
| 4742 | name: scatterPointScaleDisplay, |
| 4743 | debounce: 50, |
| 4744 | input: "range", |
| 4745 | min: 1, |
| 4746 | max: 10, |
| 4747 | step: 1 |
| 4748 | } |
| 4749 | }, { |
| 4750 | name: (0, _constants.SignalNames).ZGrounded, |
| 4751 | value: false, |
| 4752 | bind: { |
| 4753 | name: zGrounded, |
| 4754 | input: "checkbox" |
| 4755 | } |
| 4756 | }); |
| 4757 | if (qsize) { |
| 4758 | (0, _scope.addTransforms)(globalScope.data, { |
| 4759 | type: "extent", |
| 4760 | field: (0, _expr.safeFieldName)(qsize.name), |
| 4761 | signal: names.sizeExtent |
| 4762 | }); |
| 4763 | (0, _scope.addScales)(globalScope.scope, { |
| 4764 | name: names.sizeScale, |
| 4765 | type: "linear", |
| 4766 | domain: [ |
| 4767 | 0, |
| 4768 | { |
| 4769 | signal: `${names.sizeExtent}[1]` |
| 4770 | } |
| 4771 | ], |
| 4772 | range: [ |
| 4773 | 0, |
| 4774 | { |
| 4775 | signal: names.sizeRange |
| 4776 | } |
| 4777 | ] |
| 4778 | }); |
| 4779 | (0, _scope.addSignals)(globalScope.scope, { |
| 4780 | name: names.sizeRange, |
| 4781 | update: `min(${parentScope.sizeSignals.layoutHeight}, ${parentScope.sizeSignals.layoutWidth}) / ${(0, _defaults.scatterSizedDiv)}` |
| 4782 | }); |
| 4783 | } |
| 4784 | (0, _scope.addData)(globalScope.scope, { |
| 4785 | name: names.markData, |
| 4786 | source: globalScope.markDataName, |
| 4787 | transform: [ |
| 4788 | x, |
| 4789 | y, |
| 4790 | z |
| 4791 | ].map((c)=>{ |
nothing calls this directly
no test coverage detected