UNPKG

cesium

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

21 lines (18 loc) 633 B
define([ '../Core/defined', '../Core/Ellipsoid', '../Core/PolygonOutlineGeometry' ], function( defined, Ellipsoid, PolygonOutlineGeometry) { 'use strict'; function createPolygonOutlineGeometry(polygonGeometry, offset) { if (defined(offset)) { polygonGeometry = PolygonOutlineGeometry.unpack(polygonGeometry, offset); } polygonGeometry._ellipsoid = Ellipsoid.clone(polygonGeometry._ellipsoid); return PolygonOutlineGeometry.createGeometry(polygonGeometry); } return createPolygonOutlineGeometry; });