microsoft / maker.js
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 67 files with 11,074 lines of code.
    • 1 very long files (1,344 lines of code)
    • 3 long files (1,831 lines of code)
    • 15 medium size files (4,665 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,725 lines of code)
    • 35 very small files (1,509 lines of code)
12% | 16% | 42% | 15% | 13%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts12% | 17% | 44% | 12% | 12%
html0% | 0% | 0% | 72% | 27%
js0% | 0% | 0% | 83% | 16%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
playground/src60% | 0% | 25% | 10% | 3%
maker.js/src/core0% | 27% | 55% | 9% | 7%
maker.js/src/models0% | 0% | 37% | 13% | 49%
maker.js/debug0% | 0% | 0% | 69% | 30%
playground/src/worker0% | 0% | 0% | 76% | 23%
fonts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
playground.ts
in packages/playground/src
1344 90
svg.ts
in packages/maker.js/src/core
715 55
maker.ts
in packages/maker.js/src/core
585 20
measure.ts
in packages/maker.js/src/core
531 60
dxf.ts
in packages/maker.js/src/core
437 53
BezierCurve.ts
in packages/maker.js/src/models
425 18
chain.ts
in packages/maker.js/src/core
381 17
path.ts
in packages/maker.js/src/core
372 48
fillet.ts
in packages/maker.js/src/core
353 24
model.ts
in packages/maker.js/src/core
353 29
openjscad.ts
in packages/maker.js/src/core
332 38
intersect.ts
in packages/maker.js/src/core
297 29
pointer.ts
in packages/playground/src
286 21
require-iframe.ts
in packages/playground/src
274 21
combine.ts
in packages/maker.js/src/core
273 21
layout.ts
in packages/maker.js/src/core
238 19
point.ts
in packages/maker.js/src/core
228 27
collect.ts
in packages/maker.js/src/core
214 16
paths.ts
in packages/maker.js/src/core
202 7
viewer.js
in packages/maker.js/debug
188 11
angle.ts
in packages/maker.js/src/core
158 16
expand.ts
in packages/maker.js/src/core
152 11
Ellipse.ts
in packages/maker.js/src/models
152 5
render-worker.ts
in packages/playground/src/worker
151 11
format-options.ts
in packages/playground/src
135 17
viewer.html
in packages/maker.js/debug
127 -
thumbnails.html
in packages/maker.js/debug
116 -
export-worker.ts
in packages/playground/src/worker
116 6
deadend.ts
in packages/maker.js/src/core
111 8
equal.ts
in packages/maker.js/src/core
109 16
simplify.ts
in packages/maker.js/src/core
106 9
fontloader.ts
in packages/playground/src
104 9
viewer.css
in packages/maker.js/debug
97 -
simple.html
in packages/maker.js/debug
93 -
pdf.ts
in packages/maker.js/src/core
93 3
string-reader.ts
in packages/playground/src/worker
82 18
Text.ts
in packages/maker.js/src/models
81 3
Dogbone.ts
in packages/maker.js/src/models
67 1
break.ts
in packages/maker.js/src/core
66 5
iexport.ts
in packages/playground/src
66 -
ConnectTheDots.ts
in packages/maker.js/src/models
61 2
xml.ts
in packages/maker.js/src/core
59 7
cascades.ts
in packages/maker.js/src/core
58 -
units.ts
in packages/maker.js/src/core
55 5
solvers.ts
in packages/maker.js/src/core
53 4
schema.ts
in packages/maker.js/src/core
52 -
exporter.ts
in packages/maker.js/src/core
50 3
Slot.ts
in packages/maker.js/src/models
49 1
OvalArc.ts
in packages/maker.js/src/models
47 -
gen.js
in packages/fonts
37 1
Files With Most Units (Top 20)
File# lines# units
playground.ts
in packages/playground/src
1344 90
measure.ts
in packages/maker.js/src/core
531 60
svg.ts
in packages/maker.js/src/core
715 55
dxf.ts
in packages/maker.js/src/core
437 53
path.ts
in packages/maker.js/src/core
372 48
openjscad.ts
in packages/maker.js/src/core
332 38
intersect.ts
in packages/maker.js/src/core
297 29
model.ts
in packages/maker.js/src/core
353 29
point.ts
in packages/maker.js/src/core
228 27
fillet.ts
in packages/maker.js/src/core
353 24
combine.ts
in packages/maker.js/src/core
273 21
pointer.ts
in packages/playground/src
286 21
require-iframe.ts
in packages/playground/src
274 21
maker.ts
in packages/maker.js/src/core
585 20
layout.ts
in packages/maker.js/src/core
238 19
BezierCurve.ts
in packages/maker.js/src/models
425 18
string-reader.ts
in packages/playground/src/worker
82 18
chain.ts
in packages/maker.js/src/core
381 17
format-options.ts
in packages/playground/src
135 17
angle.ts
in packages/maker.js/src/core
158 16
Files With Long Lines (Top 20)

There are 39 files with lines longer than 120 characters. In total, there are 222 long lines.

File# lines# units# long lines
svg.ts
in packages/maker.js/src/core
715 55 22
combine.ts
in packages/maker.js/src/core
273 21 20
playground.ts
in packages/playground/src
1344 90 16
fillet.ts
in packages/maker.js/src/core
353 24 15
intersect.ts
in packages/maker.js/src/core
297 29 14
BezierCurve.ts
in packages/maker.js/src/models
425 18 10
equal.ts
in packages/maker.js/src/core
109 16 9
measure.ts
in packages/maker.js/src/core
531 60 9
openjscad.ts
in packages/maker.js/src/core
332 38 9
layout.ts
in packages/maker.js/src/core
238 19 8
chain.ts
in packages/maker.js/src/core
381 17 7
maker.ts
in packages/maker.js/src/core
585 20 7
path.ts
in packages/maker.js/src/core
372 48 7
viewer.html
in packages/maker.js/debug
127 - 6
model.ts
in packages/maker.js/src/core
353 29 6
pointer.ts
in packages/playground/src
286 21 5
require-iframe.ts
in packages/playground/src
274 21 5
solvers.ts
in packages/maker.js/src/core
53 4 4
format-options.ts
in packages/playground/src
135 17 4
viewer.js
in packages/maker.js/debug
188 11 3