Remove unused ol/render/webgl module

This commit is contained in:
Frederic Junod
2019-04-11 16:37:39 +02:00
parent db1515a9f3
commit 491020f027

View File

@@ -1,102 +0,0 @@
/**
* @module ol/render/webgl
*/
/**
* @const
* @type {string}
*/
export const DEFAULT_FONT = '10px sans-serif';
/**
* @const
* @type {import("../color.js").Color}
*/
export const DEFAULT_FILLSTYLE = [0.0, 0.0, 0.0, 1.0];
/**
* @const
* @type {string}
*/
export const DEFAULT_LINECAP = 'round';
/**
* @const
* @type {Array<number>}
*/
export const DEFAULT_LINEDASH = [];
/**
* @const
* @type {number}
*/
export const DEFAULT_LINEDASHOFFSET = 0;
/**
* @const
* @type {string}
*/
export const DEFAULT_LINEJOIN = 'round';
/**
* @const
* @type {number}
*/
export const DEFAULT_MITERLIMIT = 10;
/**
* @const
* @type {import("../color.js").Color}
*/
export const DEFAULT_STROKESTYLE = [0.0, 0.0, 0.0, 1.0];
/**
* @const
* @type {number}
*/
export const DEFAULT_TEXTALIGN = 0.5;
/**
* @const
* @type {number}
*/
export const DEFAULT_TEXTBASELINE = 0.5;
/**
* @const
* @type {number}
*/
export const DEFAULT_LINEWIDTH = 1;
/**
* @const
* @type {number}
*/
export const EPSILON = Number.EPSILON || 2.220446049250313e-16;
/**
* Calculates the orientation of a triangle based on the determinant method.
* @param {number} x1 First X coordinate.
* @param {number} y1 First Y coordinate.
* @param {number} x2 Second X coordinate.
* @param {number} y2 Second Y coordinate.
* @param {number} x3 Third X coordinate.
* @param {number} y3 Third Y coordinate.
* @return {boolean|undefined} Triangle is clockwise.
*/
export const triangleIsCounterClockwise = function(x1, y1, x2, y2, x3, y3) {
const area = (x2 - x1) * (y3 - y1) - (x3 - x1) * (y2 - y1);
return (area <= EPSILON && area >= -EPSILON) ?
undefined : area > 0;
};