UNPKG

loaders.gl

Version:

Framework-independent loaders for 3D graphics formats

16 lines (14 loc) 391 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractUrlBase = extractUrlBase; /** * Adapted from THREE.js under MIT license * @author Don McCurdy / https://www.donmccurdy.com */ function extractUrlBase(url) { var index = url.lastIndexOf('/'); return index === -1 ? './' : url.substr(0, index + 1); } //# sourceMappingURL=loader-utils.js.map