Remove opt_ prefix
This commit is contained in:
@@ -26,10 +26,10 @@ import RegularShape from './RegularShape.js';
|
||||
*/
|
||||
class CircleStyle extends RegularShape {
|
||||
/**
|
||||
* @param {Options} [opt_options] Options.
|
||||
* @param {Options} [options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
constructor(options) {
|
||||
options = options ? options : {radius: 5};
|
||||
|
||||
super({
|
||||
points: Infinity,
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
*/
|
||||
class Fill {
|
||||
/**
|
||||
* @param {Options} [opt_options] Options.
|
||||
* @param {Options} [options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options || {};
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -62,10 +62,10 @@ import {getUid} from '../util.js';
|
||||
*/
|
||||
class Icon extends ImageStyle {
|
||||
/**
|
||||
* @param {Options} [opt_options] Options.
|
||||
* @param {Options} [options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options || {};
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
*/
|
||||
class Stroke {
|
||||
/**
|
||||
* @param {Options} [opt_options] Options.
|
||||
* @param {Options} [options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options || {};
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -151,10 +151,10 @@ import {assert} from '../asserts.js';
|
||||
*/
|
||||
class Style {
|
||||
/**
|
||||
* @param {Options} [opt_options] Style options.
|
||||
* @param {Options} [options] Style options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options || {};
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -69,10 +69,10 @@ const DEFAULT_FILL_COLOR = '#333';
|
||||
*/
|
||||
class Text {
|
||||
/**
|
||||
* @param {Options} [opt_options] Options.
|
||||
* @param {Options} [options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options || {};
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -929,7 +929,7 @@ Operators['interpolate'] = {
|
||||
}
|
||||
return type;
|
||||
},
|
||||
toGlsl: function (context, args, opt_typeHint) {
|
||||
toGlsl: function (context, args, typeHint) {
|
||||
assertArgsEven(args);
|
||||
assertArgsMinCount(args, 6);
|
||||
|
||||
@@ -955,7 +955,7 @@ Operators['interpolate'] = {
|
||||
}
|
||||
|
||||
// compute input/output types
|
||||
const typeHint = opt_typeHint !== undefined ? opt_typeHint : ValueTypes.ANY;
|
||||
typeHint = typeHint !== undefined ? typeHint : ValueTypes.ANY;
|
||||
const outputType = Operators['interpolate'].getReturnType(args) & typeHint;
|
||||
assertUniqueInferredType(args, outputType);
|
||||
|
||||
@@ -984,11 +984,11 @@ Operators['match'] = {
|
||||
type = type & getValueType(args[args.length - 1]);
|
||||
return type;
|
||||
},
|
||||
toGlsl: function (context, args, opt_typeHint) {
|
||||
toGlsl: function (context, args, typeHint) {
|
||||
assertArgsEven(args);
|
||||
assertArgsMinCount(args, 4);
|
||||
|
||||
const typeHint = opt_typeHint !== undefined ? opt_typeHint : ValueTypes.ANY;
|
||||
typeHint = typeHint !== undefined ? typeHint : ValueTypes.ANY;
|
||||
const outputType = Operators['match'].getReturnType(args) & typeHint;
|
||||
assertUniqueInferredType(args, outputType);
|
||||
|
||||
@@ -1017,11 +1017,11 @@ Operators['case'] = {
|
||||
type = type & getValueType(args[args.length - 1]);
|
||||
return type;
|
||||
},
|
||||
toGlsl: function (context, args, opt_typeHint) {
|
||||
toGlsl: function (context, args, typeHint) {
|
||||
assertArgsOdd(args);
|
||||
assertArgsMinCount(args, 3);
|
||||
|
||||
const typeHint = opt_typeHint !== undefined ? opt_typeHint : ValueTypes.ANY;
|
||||
typeHint = typeHint !== undefined ? typeHint : ValueTypes.ANY;
|
||||
const outputType = Operators['case'].getReturnType(args) & typeHint;
|
||||
assertUniqueInferredType(args, outputType);
|
||||
for (let i = 0; i < args.length - 1; i += 2) {
|
||||
|
||||
Reference in New Issue
Block a user