Lines Matching refs:coordinates
17 coordinates = []; field in ImageMappingEditor
93 … this.coordinates = match[1].split(',').map((v) => parseInt(v, 10)).filter(Number);
220 let coords = this.coordinates;
221 if (this.coordinates.length === 3) {
223 this.coordinates[0], this.coordinates[1],
224 this.coordinates[0] + this.coordinates[2], this.coordinates[1]
247 this.coordinates = [ property
256 … this.coordinates = handles.map((h) => [h.getAttribute('cx'), h.getAttribute('cy')]).flat();
259 this.coordinates = this.coordinates.map((v) => parseInt(v, 10));
271 if (this.coordinates.length === 3) {
273 circle.setAttribute('cx', this.coordinates[0]);
274 circle.setAttribute('cy', this.coordinates[1]);
275 circle.setAttribute('r', this.coordinates[2]);
277 } else if (this.coordinates.length === 4) {
279 rect.setAttribute('x', Math.min(this.coordinates[0], this.coordinates[2]));
280 rect.setAttribute('y', Math.min(this.coordinates[1], this.coordinates[3]));
281 rect.setAttribute('width', Math.abs(this.coordinates[2] - this.coordinates[0]));
282 rect.setAttribute('height', Math.abs(this.coordinates[3] - this.coordinates[1]));
284 } else if (this.coordinates.length > 4) {
286 polygon.setAttribute('points', this.coordinates.join(' '));
354 let c = this.coordinates;
370 this.coordinates = c;
379 let c = this.coordinates;
392 this.coordinates = c;
402 if (this.coordinates.length >= 3) {
410 if (this.coordinates.length >= 0) {
411 coords = '@' + this.coordinates.join(',');