Buckets:
| import { LineBasicMaterial } from './LineBasicMaterial.js'; | |
| /** | |
| * A material for rendering line primitives. | |
| * | |
| * Materials define the appearance of renderable 3D objects. | |
| * | |
| * ```js | |
| * const material = new THREE.LineDashedMaterial( { | |
| * color: 0xffffff, | |
| * scale: 1, | |
| * dashSize: 3, | |
| * gapSize: 1, | |
| * } ); | |
| * ``` | |
| * | |
| * @augments LineBasicMaterial | |
| */ | |
| class LineDashedMaterial extends LineBasicMaterial { | |
| /** | |
| * Constructs a new line dashed material. | |
| * | |
| * @param {Object} [parameters] - An object with one or more properties | |
| * defining the material's appearance. Any property of the material | |
| * (including any property from inherited materials) can be passed | |
| * in here. Color values can be passed any type of value accepted | |
| * by {@link Color#set}. | |
| */ | |
| constructor( parameters ) { | |
| super(); | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isLineDashedMaterial = true; | |
| this.type = 'LineDashedMaterial'; | |
| /** | |
| * The scale of the dashed part of a line. | |
| * | |
| * @type {number} | |
| * @default 1 | |
| */ | |
| this.scale = 1; | |
| /** | |
| * The size of the dash. This is both the gap with the stroke. | |
| * | |
| * @type {number} | |
| * @default 3 | |
| */ | |
| this.dashSize = 3; | |
| /** | |
| * The size of the gap. | |
| * | |
| * @type {number} | |
| * @default 1 | |
| */ | |
| 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; | |
| } | |
| } | |
| export { LineDashedMaterial }; | |
Xet Storage Details
- Size:
- 1.6 kB
- Xet hash:
- 2dbf65d3c70609a7e1731731f9ce391cb833855d2819aa505d6250cb6b09f116
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.