Showing 209 of 401 total issues
Function getSliceIterator
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getSliceIterator(
image, position, isRescaled, viewOrientation) {
const size = image.getGeometry().getSize();
// zero-ify non direction index
let dirMax2Index = 2;
Function update
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update(anchor, style, _viewController) {
// parent group
const group = anchor.getParent();
// associated shape
const kline = group.getChildren(function (node) {
Function 7
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./component-spec.js":1,"./data-stream.js":2,"./decoder.js":3,"./frame-header.js":4,"./huffman-table.js":5,"./quantization-table.js":7,"./scan-component.js":8,"./scan-header.js":9,"./utils.js":10}],7:[function(require,module,exports){
/*
* Copyright (C) 2015 Michael Martinez
* Changes: Added support for selection values 2-7, fixed minor bugs &
* warnings, split into multiple class files, and general clean up.
Function create
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create(points, style, viewController) {
// physical shape
const line = new Line(points[0], points[1]);
// draw shape
const kshape = new Konva.Line({
Function copyCoefficients
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
delta, mb, reversible, segmentationSymbolUsed) {
var x0 = subband.tbx0;
var y0 = subband.tby0;
var width = subband.tbx1 - subband.tbx0;
Function create
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create(points, style, viewController) {
// physical shape
const line = new Line(points[0], points[1]);
// draw shape
const kshape = new Konva.Line({
Function update
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update(anchor, style, viewController) {
// parent group
const group = anchor.getParent();
// associated shape
const kline = group.getChildren(function (node) {
Function BitModel_runCleanupPass
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
runCleanupPass: function BitModel_runCleanupPass() {
var decoder = this.decoder;
var width = this.width, height = this.height;
var neighborsSignificance = this.neighborsSignificance;
var coefficentsMagnitude = this.coefficentsMagnitude;
Function update
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update(anchor, style, _viewController) {
// parent group
const group = anchor.getParent();
// associated shape
const kline = group.getChildren(function (node) {
Function decode
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dwvdecoder.RleDecoder.prototype.decode = function (buffer,
bitsAllocated, isSigned, sliceSize, samplesPerPixel, planarConfiguration) {
// bytes per element
var bpe = bitsAllocated / 8;
Function IrreversibleTransformClosure
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var IrreversibleTransform = (function IrreversibleTransformClosure() {
function IrreversibleTransform() {
Transform.call(this);
}
Function JpxImage_parse
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function JpxImage_parse(data) {
var head = readUint16(data, 0);
// No box header, immediate start of codestream (SOC)
if (head === 0xFF4F) {
Function PageViewportClosure
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
/**
* @constructor
* @private
* @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
Function Transform_iterate
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
u0, v0) {
var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
var width = hl_lh_hh.width;
var height = hl_lh_hh.height;
Function InclusionTreeClosure
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var InclusionTree = (function InclusionTreeClosure() {
function InclusionTree(width, height, defaultValue) {
var levelsLength = log2(Math.max(width, height)) + 1;
this.levels = [];
for (var i = 0; i < levelsLength; i++) {
Function buildCodeblocks
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildCodeblocks(context, subband, dimensions) {
// Section B.7 Division sub-band into code-blocks
var xcb_ = dimensions.xcb_;
var ycb_ = dimensions.ycb_;
var codeblockWidth = 1 << xcb_;
Function getElementValueAsString
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getElementValueAsString(tag, dicomElement, pretty) {
let str = '';
const strLenLimit = 65;
// dafault to pretty output
Function irreversibleTransformFilter
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function irreversibleTransformFilter(x, offset, length) {
var len = length >> 1;
offset = offset | 0;
var j, n, current, next;
Function getViewFromDOMVideo
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getViewFromDOMVideo(
video, onloaditem, onload, onprogress, onloadend,
origin, dataIndex) {
// video size
const width = video.videoWidth;
Function parseMultipart
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function parseMultipart(arr) {
const u8Array = new Uint8Array(arr);
const parts = [];
// check input