starry / backend /libs /three /materials /LineDashedMaterial.js
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
import { LineBasicMaterial } from './LineBasicMaterial.js';
/**
* parameters = {
* color: <hex>,
* opacity: <float>,
*
* linewidth: <float>,
*
* scale: <float>,
* dashSize: <float>,
* gapSize: <float>
* }
*/
class LineDashedMaterial extends LineBasicMaterial {
constructor(parameters) {
super();
this.type = 'LineDashedMaterial';
this.scale = 1;
this.dashSize = 3;
this.gapSize = 1;
this.setValues(parameters);
}
copy(source) {
super.copy(source);
this.scale = source.scale;
this.dashSize = source.dashSize;
this.gapSize = source.gapSize;
return this;
}
}
LineDashedMaterial.prototype.isLineDashedMaterial = true;
export { LineDashedMaterial };