UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

24 lines (19 loc) 554 B
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var constants = require('./constants'); exports.isOpenSymbol = function(symbol) { return (typeof symbol === 'string') ? constants.OPEN_RE.test(symbol) : symbol % 200 > 100; }; exports.isDotSymbol = function(symbol) { return (typeof symbol === 'string') ? constants.DOT_RE.test(symbol) : symbol > 200; };