id: 1 unit: run() file: src/editor/sandbox/setup.js start line: 221 end line: 406 size: 167 LOC McCabe index: 29 number of parameters: 2 id: 2 unit: function setup() file: src/editor/sandbox/setup.js start line: 1 end line: 432 size: 118 LOC McCabe index: 6 number of parameters: 1 id: 3 unit: export function createSandbox() file: src/editor/sandbox/index.js start line: 25 end line: 187 size: 112 LOC McCabe index: 10 number of parameters: 8 id: 4 unit: export function download() file: src/editor/downloadExample.js start line: 5 end line: 96 size: 82 LOC McCabe index: 18 number of parameters: 1 id: 5 unit: function buildMinimalBundleCode() file: common/buildCode.js start line: 218 end line: 305 size: 72 LOC McCabe index: 12 number of parameters: 2 id: 6 unit: export default function openWithCodeSandbox() file: src/editor/sandbox/openwith/codesandbox.js start line: 10 end line: 64 size: 49 LOC McCabe index: 2 number of parameters: 3 id: 7 unit: function showDebugDirtyRect() file: src/dep/showDebugDirtyRect.js start line: 39 end line: 84 size: 46 LOC McCabe index: 10 number of parameters: 2 id: 8 unit: export function loadExampleCode() file: src/common/store.js start line: 120 end line: 170 size: 38 LOC McCabe index: 11 number of parameters: 0 id: 9 unit: function initEnv() file: build/copyResource.js start line: 24 end line: 68 size: 38 LOC McCabe index: 7 number of parameters: 0 id: 10 unit: function buildLegacyMinimalBundleCode() file: common/buildCode.js start line: 309 end line: 346 size: 37 LOC McCabe index: 9 number of parameters: 2 id: 11 unit: export function init() file: src/main.js start line: 21 end line: 60 size: 36 LOC McCabe index: 8 number of parameters: 2 id: 12 unit: init: function() file: public/data/asset/data/draggable.js start line: 23 end line: 149 size: 31 LOC McCabe index: 2 number of parameters: 3 id: 13 unit: export function loadScriptsAsync() file: src/common/helper.js start line: 7 end line: 49 size: 30 LOC McCabe index: 6 number of parameters: 1 id: 14 unit: async function copyResourcesToDest() file: build/copyResource.js start line: 70 end line: 103 size: 29 LOC McCabe index: 3 number of parameters: 1 id: 15 unit: function resize() file: public/data/asset/data/draggable.js start line: 117 end line: 148 size: 28 LOC McCabe index: 5 number of parameters: 3 id: 16 unit: enter() file: src/editor/sandbox/handleLoop.js start line: 37 end line: 66 size: 28 LOC McCabe index: 7 number of parameters: 1 id: 17 unit: function handleLoop() file: src/editor/sandbox/handleLoop.js start line: 7 end line: 78 size: 27 LOC McCabe index: 2 number of parameters: 1 id: 18 unit: var cb = function() file: public/data/asset/data/draggable.js start line: 183 end line: 209 size: 24 LOC McCabe index: 7 number of parameters: 0 id: 19 unit: async function update() file: tool/updateFrontMatter.js start line: 6 end line: 34 size: 24 LOC McCabe index: 3 number of parameters: 1 id: 20 unit: (function (global, pool, math)() file: tool/seedrandom.js start line: 25 end line: 290 size: 21 LOC McCabe index: 6 number of parameters: 3 id: 21 unit: function compare() file: tool/sync-theme-shot-diff.js start line: 7 end line: 35 size: 21 LOC McCabe index: 5 number of parameters: 0 id: 22 unit: function dataFormatter() file: public/data/asset/data/timelineGDP.js start line: 2 end line: 21 size: 20 LOC McCabe index: 3 number of parameters: 1 id: 23 unit: function handleMessage() file: src/editor/sandbox/index.js start line: 140 end line: 163 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 24 unit: async function run() file: tool/compile-example.js start line: 8 end line: 36 size: 20 LOC McCabe index: 2 number of parameters: 0 id: 25 unit: calcLoop() file: src/editor/sandbox/loopController.js start line: 30 end line: 48 size: 19 LOC McCabe index: 3 number of parameters: 1 id: 26 unit: function throttle() file: public/data/asset/data/draggable.js start line: 152 end line: 224 size: 18 LOC McCabe index: 4 number of parameters: 4 id: 27 unit: function dataMix() file: public/data/asset/data/timelineGDP.js start line: 23 end line: 38 size: 16 LOC McCabe index: 7 number of parameters: 1 id: 28 unit: module.exports.buildExampleCode = function() file: common/buildCode.js start line: 374 end line: 401 size: 16 LOC McCabe index: 1 number of parameters: 0 id: 29 unit: function DebugRect() file: src/dep/showDebugDirtyRect.js start line: 2 end line: 17 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 30 unit: export default function openWithCodePen() file: src/editor/sandbox/openwith/codepen.js start line: 9 end line: 29 size: 16 LOC McCabe index: 1 number of parameters: 3 id: 31 unit: chart.setOption = function() file: src/editor/sandbox/setup.js start line: 43 end line: 58 size: 16 LOC McCabe index: 3 number of parameters: 0 id: 32 unit: fakeDoc[api[0]] = function() file: src/editor/sandbox/setup.js start line: 158 end line: 173 size: 16 LOC McCabe index: 6 number of parameters: 0 id: 33 unit: var prng = function() file: tool/seedrandom.js start line: 66 end line: 83 size: 16 LOC McCabe index: 3 number of parameters: 0 id: 34 unit: function autoseed() file: tool/seedrandom.js start line: 235 end line: 251 size: 16 LOC McCabe index: 6 number of parameters: 0 id: 35 unit: (me.g = function (count)() file: tool/seedrandom.js start line: 164 end line: 182 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 36 unit: function runTasks() file: common/task.js start line: 1 end line: 47 size: 14 LOC McCabe index: 3 number of parameters: 3 id: 37 unit: function ensurePrettier() file: src/common/helper.js start line: 65 end line: 79 size: 14 LOC McCabe index: 4 number of parameters: 0 id: 38 unit: function prepareSetupScript() file: src/editor/sandbox/index.js start line: 10 end line: 23 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 39 unit: function readPNG() file: common/compareImage.js start line: 5 end line: 17 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 40 unit: export function formatCode() file: src/common/helper.js start line: 81 end line: 95 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 41 unit: function flatten() file: tool/seedrandom.js start line: 200 end line: 212 size: 13 LOC McCabe index: 7 number of parameters: 2 id: 42 unit: function check() file: tool/build-example.js start line: 118 end line: 131 size: 13 LOC McCabe index: 3 number of parameters: 0 id: 43 unit: await takeScreenshot() file: tool/build-example.js start line: 441 end line: 453 size: 13 LOC McCabe index: 1 number of parameters: 0 id: 44 unit: export function saveExampleCodeToLocal() file: src/common/store.js start line: 93 end line: 104 size: 12 LOC McCabe index: 2 number of parameters: 0 id: 45 unit: function addTask() file: common/task.js start line: 27 end line: 37 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 46 unit: export function downloadBlob() file: src/common/helper.js start line: 51 end line: 63 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 47 unit: loopMonitor() file: src/editor/sandbox/loopController.js start line: 49 end line: 59 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 48 unit: await takeScreenshot() file: tool/build-example.js start line: 422 end line: 432 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 49 unit: export function decompressStr() file: src/common/helper.js start line: 107 end line: 116 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 50 unit: screenshot() file: src/editor/sandbox/setup.js start line: 210 end line: 219 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 51 unit: function mixkey() file: tool/seedrandom.js start line: 219 end line: 228 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 52 unit: function getBMapTip() file: common/buildCode.js start line: 362 end line: 370 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 53 unit: export function loadExampleCodeFromLocal() file: src/common/store.js start line: 106 end line: 114 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 54 unit: export function compressStr() file: src/common/helper.js start line: 97 end line: 105 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 55 unit: function toBuffer() file: public/data/asset/data/gps/extract.js start line: 11 end line: 18 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 56 unit: function createReverseMap() file: common/buildCode.js start line: 121 end line: 129 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 57 unit: function getImportsPartCode() file: common/buildCode.js start line: 254 end line: 261 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 58 unit: export function parseSourceCode() file: src/common/store.js start line: 172 end line: 182 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: export function isTrustedOpener() file: src/common/helper.js start line: 118 end line: 126 size: 8 LOC McCabe index: 3 number of parameters: 0 id: 60 unit: DebugRect.prototype.show = function() file: src/dep/showDebugDirtyRect.js start line: 28 end line: 35 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 61 unit: initLoop() file: src/editor/sandbox/loopController.js start line: 7 end line: 14 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: async function takeScreenshot() file: tool/build-example.js start line: 98 end line: 106 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 63 unit: function toArrayBuffer() file: public/data/asset/data/gps/uniform.js start line: 12 end line: 18 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 64 unit: function toArrayBuffer() file: public/data/asset/data/gps/extract.js start line: 1 end line: 10 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 65 unit: function getExtensionDeps() file: common/buildCode.js start line: 354 end line: 360 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 66 unit: function processNext() file: common/task.js start line: 18 end line: 25 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 67 unit: export function getURL() file: src/common/route.js start line: 1 end line: 7 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 68 unit: export function gotoURL() file: src/common/route.js start line: 9 end line: 15 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 69 unit: DebugRect.prototype.update = function() file: src/dep/showDebugDirtyRect.js start line: 18 end line: 24 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 70 unit: set() file: src/editor/sandbox/setup.js start line: 126 end line: 132 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 71 unit: dispose() file: src/editor/sandbox/setup.js start line: 202 end line: 208 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 72 unit: function optionToJson() file: tool/build-example.js start line: 18 end line: 30 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 73 unit: async function convertToWebP() file: tool/build-example.js start line: 90 end line: 96 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: require() file: tool/build-example.js start line: 380 end line: 386 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: (function (global)() file: public/data/asset/data/draggable.js start line: 5 end line: 226 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: cb.clear = function() file: public/data/asset/data/draggable.js start line: 215 end line: 220 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 77 unit: function clearTimers() file: src/editor/sandbox/setup.js start line: 24 end line: 29 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 78 unit: function() file: tool/seedrandom.js start line: 100 end line: 122 size: 6 LOC McCabe index: 4 number of parameters: 4 id: 79 unit: function copy() file: tool/seedrandom.js start line: 189 end line: 194 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 80 unit: function() file: tool/build-example.js start line: 21 end line: 26 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 81 unit: function checkDownloadFile() file: tool/build-example.js start line: 115 end line: 134 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 82 unit: $() file: public/data/asset/data/draggable.js start line: 105 end line: 109 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 83 unit: function exec() file: public/data/asset/data/draggable.js start line: 177 end line: 181 size: 5 LOC McCabe index: 3 number of parameters: 0 id: 84 unit: function hasGLInDeps() file: common/buildCode.js start line: 348 end line: 352 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 85 unit: export default function() file: src/editor/transformTs.js start line: 3 end line: 7 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: function setTimeout() file: src/editor/sandbox/setup.js start line: 12 end line: 16 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 87 unit: function setInterval() file: src/editor/sandbox/setup.js start line: 18 end line: 22 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 88 unit: chart.on = function() file: src/editor/sandbox/setup.js start line: 37 end line: 41 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: function handleMessage() file: src/editor/sandbox/setup.js start line: 418 end line: 423 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 90 unit: dispose() file: src/editor/sandbox/index.js start line: 172 end line: 176 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 91 unit: async function run() file: build/copyResource.js start line: 105 end line: 110 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 92 unit: function seedrandom() file: tool/seedrandom.js start line: 44 end line: 129 size: 5 LOC McCabe index: 3 number of parameters: 3 id: 93 unit: await runTasks() file: tool/build-example.js start line: 419 end line: 434 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 94 unit: await runTasks() file: tool/build-example.js start line: 438 end line: 455 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 95 unit: function finishTask() file: common/task.js start line: 8 end line: 11 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 96 unit: function failTask() file: common/task.js start line: 13 end line: 16 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: export function getExampleConfig() file: src/common/store.js start line: 79 end line: 82 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 98 unit: function wrapChartMethods() file: src/editor/sandbox/setup.js start line: 33 end line: 59 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: function clearChartEvents() file: src/editor/sandbox/setup.js start line: 61 end line: 64 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 100 unit: await sharp() file: tool/build-example.js start line: 215 end line: 219 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: $() file: public/data/asset/data/draggable.js start line: 111 end line: 113 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: function createCallback() file: public/data/asset/data/draggable.js start line: 175 end line: 223 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: export function isValidPRVersion() file: src/common/store.js start line: 67 end line: 69 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: function findExample() file: src/common/store.js start line: 71 end line: 73 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: export function updateRandomSeed() file: src/common/store.js start line: 75 end line: 77 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 106 unit: export function isGLExample() file: src/common/store.js start line: 84 end line: 86 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 107 unit: export function clearLocalExampleCode() file: src/common/store.js start line: 116 end line: 118 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 108 unit: success() file: src/common/store.js start line: 161 end line: 163 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: error() file: src/common/store.js start line: 164 end line: 166 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 110 unit: export function updateRunHash() file: src/common/store.js start line: 185 end line: 187 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 111 unit: export function getScriptURLs() file: src/common/config.js start line: 122 end line: 125 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: script.onload = function() file: src/common/helper.js start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 113 unit: script.onerror = function() file: src/common/helper.js start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 114 unit: link.onload = function() file: src/common/helper.js start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 115 unit: link.onerror = function() file: src/common/helper.js start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 116 unit: export function decodeBase64() file: src/common/helper.js start line: 128 end line: 130 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 117 unit: DebugRect.prototype.hide = function() file: src/dep/showDebugDirtyRect.js start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 118 unit: get() file: src/editor/sandbox/setup.js start line: 193 end line: 195 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 119 unit: function sendMessage() file: src/editor/sandbox/index.js start line: 165 end line: 167 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 120 unit: run() file: src/editor/sandbox/index.js start line: 177 end line: 179 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 121 unit: screenshot() file: src/editor/sandbox/index.js start line: 180 end line: 182 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: getOption() file: src/editor/sandbox/index.js start line: 183 end line: 185 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 123 unit: getLoop() file: src/editor/sandbox/loopController.js start line: 15 end line: 17 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: setLoop() file: src/editor/sandbox/loopController.js start line: 18 end line: 20 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 125 unit: delLoop() file: src/editor/sandbox/loopController.js start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 126 unit: clearLoops() file: src/editor/sandbox/loopController.js start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 127 unit: exitLoop() file: src/editor/sandbox/loopController.js start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: prng.int32 = function() file: tool/seedrandom.js start line: 85 end line: 87 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 129 unit: prng.quick = function() file: tool/seedrandom.js start line: 88 end line: 90 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 130 unit: prng.state = function() file: tool/seedrandom.js start line: 107 end line: 109 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 131 unit: function ARC4() file: tool/seedrandom.js start line: 141 end line: 183 size: 3 LOC McCabe index: 3 number of parameters: 1 id: 132 unit: function tostring() file: tool/seedrandom.js start line: 257 end line: 259 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 133 unit: define() file: tool/seedrandom.js start line: 281 end line: 283 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 134 unit: function codeSize() file: tool/build-example.js start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: function waitTime() file: tool/build-example.js start line: 62 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: function checkHasVideo() file: tool/build-example.js start line: 86 end line: 88 size: 3 LOC McCabe index: 3 number of parameters: 2 id: 137 unit: function getThumbFolder() file: tool/sync-theme-shot-diff.js start line: 11 end line: 13 size: 3 LOC McCabe index: 2 number of parameters: 1