deck.gl
Unit Size

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 2,026 units with 27,414 lines of code in units (71.1% of code).
    • 5 very long units (622 lines of code)
    • 61 long units (3,744 lines of code)
    • 323 medium size units (9,652 lines of code)
    • 493 small units (7,169 lines of code)
    • 1,144 very small units (6,227 lines of code)
2% | 13% | 35% | 26% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
js2% | 13% | 35% | 26% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Logical Component
primary logical decomposition
modules2% | 10% | 34% | 28% | 24%
examples2% | 21% | 38% | 19% | 18%
showcases0% | 30% | 29% | 21% | 18%
website0% | 13% | 46% | 22% | 16%
scripts0% | 0% | 0% | 70% | 30%
bindings0% | 0% | 0% | 92% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
renderLayers()
in modules/layers/src/geojson-layer/geojson-layer.js
185 17 0
initializeState()
in modules/layers/src/solid-polygon-layer/solid-polygon-layer.js
112 8 0
_getModels()
in examples/website/plot/plot-layer/axes-layer.js
110 3 1
renderLayers()
in modules/layers/src/polygon-layer/polygon-layer.js
110 9 0
function separateGeometry()
in modules/layers/src/geojson-layer/geojson.js
105 8 5
getModel()
in showcases/wind/src/layers/delaunay-cover-layer/delaunay-cover-layer.js
90 3 2
vec3 lineJoin()
in modules/layers/src/path-layer/path-layer-vertex.glsl.js
81 22 4
export default function()
in website/src/components/example.js
80 11 3
renderLayers()
in showcases/graph/graph-layer/graph-layer.js
75 13 0
export function processPickInfo()
in modules/core/src/lib/picking/pick-info.js
74 18 9
export default function App()
in examples/website/brushing/app.js
72 8 6
export default function App()
in examples/website/trips/app.js
72 2 8
getSubLayerProps()
in modules/core/src/lib/composite-layer.js
72 10 1
void main()
in modules/layers/src/arc-layer/arc-layer-vertex.glsl.js
72 12 1
export default function App()
in examples/website/scenegraph/app.js
71 12 3
_renderAggregateData()
in modules/aggregation-layers/src/utils/gpu-grid-aggregation/gpu-grid-aggregator.js
71 7 1
_setupFramebuffers()
in modules/aggregation-layers/src/utils/gpu-grid-aggregation/gpu-grid-aggregator.js
69 21 1
renderLayers()
in examples/website/plot/plot-layer/plot-layer.js
68 1 0
draw()
in showcases/wind/src/layers/particle-layer/particle-layer.js
67 3 1
function makeAltPropTestCase()
in modules/test-utils/src/generate-layer-tests.js
66 8 5
export function getFrustumPlanes()
in modules/core/src/utils/math-utils.js
66 2 8
constructor()
in showcases/graph/app.js
65 4 1
export default function App()
in examples/website/highway/app.js
65 5 4
updateAggregationState()
in modules/aggregation-layers/src/contour-layer/contour-layer.js
65 12 1
initializeState()
in modules/layers/src/path-layer/path-layer.js
64 5 0
constructor()
in modules/core/src/lib/deck.js
63 7 1
export function generateContours()
in modules/aggregation-layers/src/contour-layer/contour-utils.js
63 7 6
update()
in modules/mesh-layers/src/utils/matrix.js
63 15 3
export function generateLayerTests()
in modules/test-utils/src/generate-layer-tests.js
62 12 5
constructor()
in modules/core/src/viewports/web-mercator-viewport.js
62 6 1
renderLayers()
in modules/geo-layers/src/s2-layer/s2-layer.js
62 1 0
export default function positionChildrenUnderViews()
in modules/react/src/utils/position-children-under-views.js
62 10 4
export default function App()
in examples/website/image-tile/app.js
61 3 2
export default function App()
in examples/website/point-cloud/app.js
61 4 1
_onKeyDown()
in modules/core/src/controllers/controller.js
61 14 1
function tesselateColumn()
in modules/layers/src/column-layer/column-geometry.js
61 16 1
renderLayers()
in modules/geo-layers/src/terrain-layer/terrain-layer.js
61 3 0
update()
in showcases/graph/graph-layer/layout/layout-d3.js
60 7 2
runTransformFeedback()
in showcases/wind/src/layers/particle-layer/particle-layer.js
59 4 1
draw()
in showcases/wind/src/layers/wind-layer/wind-layer.js
58 2 1
void main()
in showcases/wind/src/layers/wind-layer/wind-layer-vertex.js
58 9 1
export default function App()
in examples/website/data-filter/app.js
58 4 2
function calculateViewportUniforms()
in modules/core/src/shaderlib/project/viewport-uniforms.js
57 8 4
function onWebGLInitialized()
in examples/experimental/interleaved-buffer/app.js
56 1 1
_generateTextures()
in showcases/wind/src/layers/delaunay-interpolation/delaunay-interpolation.js
55 5 4
export default function App()
in examples/experimental/h3-grid/src/app.js
55 1 0
export default function App()
in examples/website/icon/app.js
55 5 5
_setGLContext()
in modules/core/src/lib/deck.js
55 5 1
initializeState()
in modules/extensions/src/fill-style/fill-style.js
55 3 2
export function getCode()
in modules/aggregation-layers/src/contour-layer/marching-squares.js
55 16 1