@norskvideo/norsk-studio-built-ins 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/info.js +18 -12
- package/client/style.css +1 -1
- package/lib/processor.dynamicBug/types.yaml +25 -0
- package/package.json +3 -4
package/client/info.js
CHANGED
@@ -273,9 +273,9 @@ var init_form_views = __esm({
|
|
273
273
|
}
|
274
274
|
});
|
275
275
|
|
276
|
-
// node_modules/@norskvideo/norsk-studio/lib/shared/shared-views.js
|
276
|
+
// ../../node_modules/@norskvideo/norsk-studio/lib/shared/shared-views.js
|
277
277
|
var require_shared_views = __commonJS({
|
278
|
-
"node_modules/@norskvideo/norsk-studio/lib/shared/shared-views.js"(exports) {
|
278
|
+
"../../node_modules/@norskvideo/norsk-studio/lib/shared/shared-views.js"(exports) {
|
279
279
|
"use strict";
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
281
281
|
exports.GlobalIceServerView = GlobalIceServerView;
|
@@ -286,9 +286,9 @@ var require_shared_views = __commonJS({
|
|
286
286
|
}
|
287
287
|
});
|
288
288
|
|
289
|
-
// node_modules/@norskvideo/norsk-studio/lib/shared/config.js
|
289
|
+
// ../../node_modules/@norskvideo/norsk-studio/lib/shared/config.js
|
290
290
|
var require_config = __commonJS({
|
291
|
-
"node_modules/@norskvideo/norsk-studio/lib/shared/config.js"(exports) {
|
291
|
+
"../../node_modules/@norskvideo/norsk-studio/lib/shared/config.js"(exports) {
|
292
292
|
"use strict";
|
293
293
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
294
294
|
if (k2 === void 0)
|
@@ -4402,7 +4402,7 @@ function getAxisItems(chart, position, axis, intersect, useFinalPosition) {
|
|
4402
4402
|
const rangeMethod = axis === "x" ? "inXRange" : "inYRange";
|
4403
4403
|
let intersectsItem = false;
|
4404
4404
|
evaluateInteractionItems(chart, axis, position, (element, datasetIndex, index2) => {
|
4405
|
-
if (element[rangeMethod](position[axis], useFinalPosition)) {
|
4405
|
+
if (element[rangeMethod] && element[rangeMethod](position[axis], useFinalPosition)) {
|
4406
4406
|
items.push({
|
4407
4407
|
element,
|
4408
4408
|
datasetIndex,
|
@@ -8311,8 +8311,10 @@ var init_chart = __esm({
|
|
8311
8311
|
const metasets = iScale.getMatchingVisibleMetas(this._type).filter((meta) => meta.controller.options.grouped);
|
8312
8312
|
const stacked = iScale.options.stacked;
|
8313
8313
|
const stacks = [];
|
8314
|
+
const currentParsed = this._cachedMeta.controller.getParsed(dataIndex);
|
8315
|
+
const iScaleValue = currentParsed && currentParsed[iScale.axis];
|
8314
8316
|
const skipNull = (meta) => {
|
8315
|
-
const parsed = meta.
|
8317
|
+
const parsed = meta._parsed.find((item) => item[iScale.axis] === iScaleValue);
|
8316
8318
|
const val = parsed && parsed[meta.vScale.axis];
|
8317
8319
|
if (isNullOrUndef(val) || isNaN(val)) {
|
8318
8320
|
return true;
|
@@ -11244,7 +11246,7 @@ var init_chart = __esm({
|
|
11244
11246
|
}
|
11245
11247
|
};
|
11246
11248
|
hasFunction = (value) => isObject(value) && Object.getOwnPropertyNames(value).some((key) => isFunction(value[key]));
|
11247
|
-
version = "4.4.
|
11249
|
+
version = "4.4.4";
|
11248
11250
|
KNOWN_POSITIONS = [
|
11249
11251
|
"top",
|
11250
11252
|
"bottom",
|
@@ -11704,8 +11706,8 @@ var init_chart = __esm({
|
|
11704
11706
|
let i;
|
11705
11707
|
if (this._resizeBeforeDraw) {
|
11706
11708
|
const { width, height } = this._resizeBeforeDraw;
|
11707
|
-
this._resize(width, height);
|
11708
11709
|
this._resizeBeforeDraw = null;
|
11710
|
+
this._resize(width, height);
|
11709
11711
|
}
|
11710
11712
|
this.clear();
|
11711
11713
|
if (this.width <= 0 || this.height <= 0) {
|
@@ -12145,7 +12147,8 @@ var init_chart = __esm({
|
|
12145
12147
|
], useFinalPosition);
|
12146
12148
|
const rAdjust = (this.options.spacing + this.options.borderWidth) / 2;
|
12147
12149
|
const _circumference = valueOrDefault(circumference, endAngle - startAngle);
|
12148
|
-
const
|
12150
|
+
const nonZeroBetween = _angleBetween(angle, startAngle, endAngle) && startAngle !== endAngle;
|
12151
|
+
const betweenAngles = _circumference >= TAU || nonZeroBetween;
|
12149
12152
|
const withinRadius = _isBetween(distance, innerRadius + rAdjust, outerRadius + rAdjust);
|
12150
12153
|
return betweenAngles && withinRadius;
|
12151
12154
|
}
|
@@ -13379,6 +13382,9 @@ var init_chart = __esm({
|
|
13379
13382
|
++count;
|
13380
13383
|
}
|
13381
13384
|
}
|
13385
|
+
if (count === 0 || xSet.size === 0) {
|
13386
|
+
return false;
|
13387
|
+
}
|
13382
13388
|
const xAverage = [
|
13383
13389
|
...xSet
|
13384
13390
|
].reduce((a, b) => a + b) / xSet.size;
|
@@ -14705,7 +14711,7 @@ var init_chart = __esm({
|
|
14705
14711
|
ctx.strokeStyle = color2;
|
14706
14712
|
ctx.setLineDash(optsAtIndex.borderDash);
|
14707
14713
|
ctx.lineDashOffset = optsAtIndex.borderDashOffset;
|
14708
|
-
offset = this.getDistanceFromCenterForValue(opts.
|
14714
|
+
offset = this.getDistanceFromCenterForValue(opts.reverse ? this.min : this.max);
|
14709
14715
|
position = this.getPointPosition(i, offset);
|
14710
14716
|
ctx.beginPath();
|
14711
14717
|
ctx.moveTo(this.xCenter, this.yCenter);
|
@@ -17219,7 +17225,7 @@ export {
|
|
17219
17225
|
|
17220
17226
|
chart.js/dist/chunks/helpers.segment.js:
|
17221
17227
|
(*!
|
17222
|
-
* Chart.js v4.4.
|
17228
|
+
* Chart.js v4.4.4
|
17223
17229
|
* https://www.chartjs.org
|
17224
17230
|
* (c) 2024 Chart.js Contributors
|
17225
17231
|
* Released under the MIT License
|
@@ -17227,7 +17233,7 @@ chart.js/dist/chunks/helpers.segment.js:
|
|
17227
17233
|
|
17228
17234
|
chart.js/dist/chart.js:
|
17229
17235
|
(*!
|
17230
|
-
* Chart.js v4.4.
|
17236
|
+
* Chart.js v4.4.4
|
17231
17237
|
* https://www.chartjs.org
|
17232
17238
|
* (c) 2024 Chart.js Contributors
|
17233
17239
|
* Released under the MIT License
|
package/client/style.css
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
openapi: 3.0.0
|
2
|
+
components:
|
3
|
+
schemas:
|
4
|
+
position:
|
5
|
+
type: string
|
6
|
+
description: "Where the bug is to be displayed"
|
7
|
+
example: 'topright'
|
8
|
+
enum:
|
9
|
+
- topleft
|
10
|
+
- topright
|
11
|
+
- bottomleft
|
12
|
+
- bottomright
|
13
|
+
bug:
|
14
|
+
type: string
|
15
|
+
description: "The name of the image file"
|
16
|
+
example: 'Norsk.png'
|
17
|
+
config:
|
18
|
+
type: object
|
19
|
+
description: "The configuration for the dynamic bug"
|
20
|
+
properties:
|
21
|
+
bug:
|
22
|
+
$ref: "#/components/schemas/bug"
|
23
|
+
position:
|
24
|
+
$ref: "#/components/schemas/position"
|
25
|
+
|
package/package.json
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@norskvideo/norsk-studio-built-ins",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.14.0",
|
4
4
|
"description": "",
|
5
5
|
"scripts": {
|
6
6
|
"clean": "rm -rf lib",
|
7
7
|
"build": "npx studio-wrap-infos src/ && npx npm-run-all build:* && rm -rf build",
|
8
8
|
"build:server": "npx tsc",
|
9
9
|
"build:client": "npx tsc -p tsconfig-client.json && npx studio-bundle build/info.js client/info.js",
|
10
|
-
"build:
|
10
|
+
"build:css": "rsync --mkpath -v -r --include '*/' --include '*.css' --exclude '*' src/ client/",
|
11
|
+
"build:types": "rsync --mkpath -v -r --include '*/' --include 'types.yaml' --exclude '*' src/ lib/",
|
11
12
|
"build:tailwind": "npx tailwindcss -i src/shared/tailwind.css -o client/style.css",
|
12
13
|
"build:eslint": "npx eslint src",
|
13
14
|
"test": "LOG_LEVEL=${LOG_LEVEL:-error} NODE_ENV=test mocha --no-parallel --jobs=0 --timeout 120000 --recursive lib/test"
|
@@ -21,8 +22,6 @@
|
|
21
22
|
"dependencies": {
|
22
23
|
"@norskvideo/norsk-sdk": "^1.0.375",
|
23
24
|
"@norskvideo/norsk-studio": "^1.21.0",
|
24
|
-
"@norskvideo/norsk-studio-built-ins": "file:",
|
25
|
-
"@norskvideo/norsk-studio-vision-director": "file:../source-switcher",
|
26
25
|
"@norskvideo/webrtc-client": "^0.1.2",
|
27
26
|
"body-parser": "^1.20.2",
|
28
27
|
"cors": "^2.8.5",
|