@camstack/types 1.2.605 → 1.2.607
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/CHANGELOG.md +12 -0
- package/dist/composition/helpers/crop-geometry.d.ts +48 -0
- package/dist/composition/helpers/index.d.ts +2 -1
- package/dist/composition/helpers/spec.d.ts +27 -4
- package/dist/{implemented-methods-I_l2ENnf.js → implemented-methods-BHN-Utsb.js} +64 -4
- package/dist/{implemented-methods-BUBqZ2a0.mjs → implemented-methods-GRoJIvYs.mjs} +41 -5
- package/dist/index.js +106 -4
- package/dist/index.mjs +96 -5
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.607] - 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Valve positionable is now derived from the bound valve capability instead of a driver's own claim
|
|
15
|
+
|
|
16
|
+
## [1.2.606] - 2026-11-20
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- A crop camera helper kind (a one-cell derived camera over one source) with the shared crop geometry: seed rectangle, ratio presets and ratio-locked resize.
|
|
21
|
+
|
|
10
22
|
## [1.2.605] - 2026-11-20
|
|
11
23
|
|
|
12
24
|
### Changed
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The geometry of a crop camera (#611), shared by the editor and the engine so
|
|
3
|
+
* both agree on what a rectangle means.
|
|
4
|
+
*
|
|
5
|
+
* Every rectangle is normalized against the SOURCE frame (D519), so a ratio is
|
|
6
|
+
* a statement about PIXELS only once the source's own aspect is known:
|
|
7
|
+
* `pixelAspect = (width / height) * sourceAspect`. A preset names the pixel
|
|
8
|
+
* aspect of the crop, and a lock keeps it while the handles move.
|
|
9
|
+
*/
|
|
10
|
+
import type { CropAspect, GridRect } from './spec.js';
|
|
11
|
+
/** The smallest side a crop may shrink to, as a fraction of the source. */
|
|
12
|
+
export declare const CROP_MIN_SIDE: number;
|
|
13
|
+
/** A seeded crop covers this fraction of the largest rectangle that fits, so it is a visible crop. */
|
|
14
|
+
export declare const CROP_SEED_SCALE: number;
|
|
15
|
+
export type CropHandle = 'nw' | 'ne' | 'sw' | 'se';
|
|
16
|
+
/** A point in the source's normalized space. */
|
|
17
|
+
export interface CropPoint {
|
|
18
|
+
readonly x: number;
|
|
19
|
+
readonly y: number;
|
|
20
|
+
}
|
|
21
|
+
/** The pixel aspect (width / height) a preset locks to; `null` for `free`. */
|
|
22
|
+
export declare function cropAspectRatio(aspect: CropAspect): number | null;
|
|
23
|
+
/** The pixel aspect of the canvas a crop produces: crop aspect times source aspect. */
|
|
24
|
+
export declare function cropCanvasAspect(rect: GridRect, sourceAspect: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* The rectangle a new crop starts from: centred, the preset's pixel aspect on
|
|
27
|
+
* a source of `sourceAspect`. `free` starts as the middle quarter.
|
|
28
|
+
*/
|
|
29
|
+
export declare function seedCropRect(aspect: CropAspect, sourceAspect: number): GridRect;
|
|
30
|
+
/** The same rectangle moved by (dx, dy), held inside the source. Its size never changes. */
|
|
31
|
+
export declare function moveCropRect(rect: GridRect, dx: number, dy: number): GridRect;
|
|
32
|
+
export interface ResizeCropInput {
|
|
33
|
+
readonly rect: GridRect;
|
|
34
|
+
/** The corner being dragged; the opposite corner stays where it is. */
|
|
35
|
+
readonly handle: CropHandle;
|
|
36
|
+
/** Where the pointer is, in the source's normalized space. */
|
|
37
|
+
readonly point: CropPoint;
|
|
38
|
+
readonly aspect: CropAspect;
|
|
39
|
+
/** The source frame's width / height. */
|
|
40
|
+
readonly sourceAspect: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Drag one corner. The opposite corner is the anchor. A preset keeps the pixel
|
|
44
|
+
* aspect exactly (the larger of the two pointer distances leads), `free` follows
|
|
45
|
+
* the pointer on both axes. Either way the result stays inside the source and
|
|
46
|
+
* never shrinks below `CROP_MIN_SIDE`.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resizeCropRect(input: ResizeCropInput): GridRect;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type CropHandle, type CropPoint, type ResizeCropInput, CROP_MIN_SIDE, CROP_SEED_SCALE, cropAspectRatio, cropCanvasAspect, moveCropRect, resizeCropRect, seedCropRect, } from './crop-geometry.js';
|
|
1
2
|
export { ACTUATOR_METHODS, ACTUATOR_TEMPLATE_IDS, type ActuatorMemberSurface, type ActuatorMethodRow, type ActuatorTemplateId, actuatorMethodRow, methodRefusal, sharedActuatorFeatures, sharedActuatorMethods, UNLOCK_CONFIRMATION, } from './actuator-methods.js';
|
|
2
3
|
export { FAN_OUT_CONCURRENCY, LIGHT_SHARED_CAPS, type FanOutCall, type FanOutFailed, type FanOutMember, type FanOutMemberResult, type FanOutOk, type LightSharedCap, activeForReducer, fanOutTargets, reducerForActive, runFanOut, sharedColorModes, sharedLightCaps, } from './actuator.js';
|
|
3
4
|
export { type AggregateCounts, type AggregateEmpty, type AggregateOutcome, type AggregatePublish, type AggregateReadResult, type AggregateUnavailable, type AggregateValue, type EvaluateAggregateInput, evaluateAggregate, } from './aggregate.js';
|
|
@@ -10,4 +11,4 @@ export { type HistoryValue, type IntegralScale, type SeriesBefore, type SeriesKi
|
|
|
10
11
|
export { type CalendarPeriod, type CalendarWindow, type HistoryRetention, type HistoryTier, type HistoryTierPlan, type OpenRange, type ResetPeriod, type RollingSpan, type RollingWindow, type StatisticWindow, CALENDAR_PERIODS, CalendarWindowSchema, DAY_MS, DEFAULT_HISTORY_RETENTION, historyRetentionFromSettings, HISTORY_FAST_MS, HISTORY_SLOW_MS, HISTORY_TIERS, HOUR_MS, MINUTE_MS, MIN_CUSTOM_MINUTES, RESET_PERIODS, ROLLING_SPANS, RollingWindowSchema, StatisticWindowSchema, integralCadenceMs, maxDurationMs, nextLocalMidnight, openReset, openStatistic, planResetTier, planStatisticTier, rollingDurationMs, statisticCadenceMs, } from './history-window.js';
|
|
11
12
|
export { type HelperMemberFact, helperSaveProblems, } from './save.js';
|
|
12
13
|
export { type SourcePick, type SourcePickAccept, type SourcePickFieldChoice, type SourcePickHistory, type SourcePickRequest, type MathSourceKind, sourcePickForHistory, sourcePickForMath, sourcePickAcceptsDevice, sourcePickForTemplate, } from './source-pick.js';
|
|
13
|
-
export { ACTIVE_CRITERIA, AGGREGATE_REDUCERS, ActiveCriterionSchema, AggregateReducerSchema, BINARY_AGGREGATES, GROUP_TEMPLATE_IDS, ARITHMETIC_OPS, ArithmeticHelperSpecSchema, DERIVATIVE_UNITS, DerivativeHelperSpecSchema, EXPRESSION_OUTPUTS, ExpressionHelperSpecSchema, ThresholdHelperSpecSchema, GroupHelperSpecSchema, GroupTemplateIdSchema, HelperMemberSchema, HelperSpecSchema, INTEGRAL_OUTPUTS, IntegralHelperSpecSchema, MAX_HELPER_MEMBERS, helperMembers, helperDeviceRefs, isEngineHostedHelper, isHistoryHelper, ENGINE_HOSTED_HELPER_KINDS, GRID_PROFILES, DEFAULT_GRID_FPS, DEFAULT_GRID_PROFILES, newGridHelperSpec, GridCellSpecSchema, GridHelperSpecSchema, MAX_GRID_CELLS, GridRectSchema, TerminalHelperSpecSchema, type EngineHostedHelperKind, type EngineHostedHelperSpec, type GridCellSpec, type GridHelperSpec, type GridProfile, type GridRect, type TerminalHelperSpec, NUMERIC_AGGREGATES, StatisticHelperSpecSchema, type ActiveCriterion, type AggregateReducer, type BinaryAggregate, type ArithmeticHelperSpec, type ArithmeticOp, type DerivativeHelperSpec, type DerivativeUnit, type ExpressionHelperSpec, type ExpressionInput, type ExpressionOutput, type ThresholdHelperSpec, type GroupHelperSpec, type GroupTemplateId, type HelperMember, type HelperSpec, type HistoryHelperSpec, type IntegralHelperSpec, type IntegralOutput, type NumericAggregate, type StatisticHelperSpec, type StatisticStat, } from './spec.js';
|
|
14
|
+
export { ACTIVE_CRITERIA, AGGREGATE_REDUCERS, ActiveCriterionSchema, AggregateReducerSchema, BINARY_AGGREGATES, GROUP_TEMPLATE_IDS, ARITHMETIC_OPS, ArithmeticHelperSpecSchema, DERIVATIVE_UNITS, DerivativeHelperSpecSchema, EXPRESSION_OUTPUTS, ExpressionHelperSpecSchema, ThresholdHelperSpecSchema, GroupHelperSpecSchema, GroupTemplateIdSchema, HelperMemberSchema, HelperSpecSchema, INTEGRAL_OUTPUTS, IntegralHelperSpecSchema, MAX_HELPER_MEMBERS, helperMembers, helperDeviceRefs, isEngineHostedHelper, isHistoryHelper, ENGINE_HOSTED_HELPER_KINDS, GRID_PROFILES, DEFAULT_GRID_FPS, DEFAULT_GRID_PROFILES, newGridHelperSpec, GridCellSpecSchema, GridHelperSpecSchema, MAX_GRID_CELLS, GridRectSchema, CROP_ASPECTS, DEFAULT_CROP_ASPECT, CropHelperSpecSchema, newCropHelperSpec, TerminalHelperSpecSchema, type CropAspect, type CropHelperSpec, type EngineHostedHelperKind, type EngineHostedHelperSpec, type GridCellSpec, type GridHelperSpec, type GridProfile, type GridRect, type TerminalHelperSpec, NUMERIC_AGGREGATES, StatisticHelperSpecSchema, type ActiveCriterion, type AggregateReducer, type BinaryAggregate, type ArithmeticHelperSpec, type ArithmeticOp, type DerivativeHelperSpec, type DerivativeUnit, type ExpressionHelperSpec, type ExpressionInput, type ExpressionOutput, type ThresholdHelperSpec, type GroupHelperSpec, type GroupTemplateId, type HelperMember, type HelperSpec, type HistoryHelperSpec, type IntegralHelperSpec, type IntegralOutput, type NumericAggregate, type StatisticHelperSpec, type StatisticStat, } from './spec.js';
|
|
@@ -136,6 +136,29 @@ export declare const GridHelperSpecSchema: z.ZodType<GridHelperSpec>;
|
|
|
136
136
|
export declare const DEFAULT_GRID_FPS: number;
|
|
137
137
|
export declare const DEFAULT_GRID_PROFILES: readonly GridProfile[];
|
|
138
138
|
export declare function newGridHelperSpec(): GridHelperSpec;
|
|
139
|
+
/** The ratio presets of a crop camera. `free` leaves the handles unlocked. */
|
|
140
|
+
export declare const CROP_ASPECTS: readonly ['16:9', '4:3', '1:1', 'free'];
|
|
141
|
+
export type CropAspect = (typeof CROP_ASPECTS)[number];
|
|
142
|
+
export declare const DEFAULT_CROP_ASPECT: CropAspect;
|
|
143
|
+
/**
|
|
144
|
+
* A crop camera (#611): a derived camera showing one section of ONE source. It
|
|
145
|
+
* is a one-cell grid on the camera-grid engine, so the profiles, the sizing,
|
|
146
|
+
* the no-upscale rule and the detection mapping are the grid's. `rect` is
|
|
147
|
+
* normalized against the source (D519); pixels exist only at runtime. `aspect`
|
|
148
|
+
* is the preset the editor locks the handles to; it is stored so the editor
|
|
149
|
+
* reopens on the same lock.
|
|
150
|
+
*/
|
|
151
|
+
export type CropHelperSpec = {
|
|
152
|
+
readonly kind: 'crop';
|
|
153
|
+
readonly source: CompositionSourceRef;
|
|
154
|
+
readonly rect: GridRect;
|
|
155
|
+
readonly aspect: CropAspect;
|
|
156
|
+
readonly fps: number;
|
|
157
|
+
readonly publishedProfiles: readonly GridProfile[];
|
|
158
|
+
};
|
|
159
|
+
export declare const CropHelperSpecSchema: z.ZodType<CropHelperSpec>;
|
|
160
|
+
/** A new crop of `source`, with the rectangle the editor starts from. */
|
|
161
|
+
export declare function newCropHelperSpec(source: CompositionSourceRef, rect: GridRect, aspect?: CropAspect): CropHelperSpec;
|
|
139
162
|
/**
|
|
140
163
|
* A Terminal camera (planning#580): the camera of one Terminal, created on the
|
|
141
164
|
* Terminal page. The composer declares the camera; addon-terminal serves it.
|
|
@@ -145,7 +168,7 @@ export type TerminalHelperSpec = {
|
|
|
145
168
|
readonly terminalId: string;
|
|
146
169
|
};
|
|
147
170
|
export declare const TerminalHelperSpecSchema: z.ZodType<TerminalHelperSpec>;
|
|
148
|
-
export type HelperSpec = GroupHelperSpec | StatisticHelperSpec | IntegralHelperSpec | ThresholdHelperSpec | ArithmeticHelperSpec | ExpressionHelperSpec | DerivativeHelperSpec | GridHelperSpec | TerminalHelperSpec;
|
|
171
|
+
export type HelperSpec = GroupHelperSpec | StatisticHelperSpec | IntegralHelperSpec | ThresholdHelperSpec | ArithmeticHelperSpec | ExpressionHelperSpec | DerivativeHelperSpec | GridHelperSpec | CropHelperSpec | TerminalHelperSpec;
|
|
149
172
|
export declare const HelperSpecSchema: z.ZodType<HelperSpec>;
|
|
150
173
|
/** The kinds the composer runs from device history, on a schedule. */
|
|
151
174
|
export type HistoryHelperSpec = StatisticHelperSpec | IntegralHelperSpec | DerivativeHelperSpec;
|
|
@@ -153,9 +176,9 @@ export declare function isHistoryHelper(spec: HelperSpec): spec is HistoryHelper
|
|
|
153
176
|
/** Every member a helper reads. A group has many; the others have one. */
|
|
154
177
|
export declare function helperMembers(spec: HelperSpec): readonly HelperMember[];
|
|
155
178
|
/** The kinds whose camera an engine serves on the composer's row (planning#580). */
|
|
156
|
-
export declare const ENGINE_HOSTED_HELPER_KINDS: readonly ['grid', 'terminal'];
|
|
179
|
+
export declare const ENGINE_HOSTED_HELPER_KINDS: readonly ['grid', 'crop', 'terminal'];
|
|
157
180
|
export type EngineHostedHelperKind = (typeof ENGINE_HOSTED_HELPER_KINDS)[number];
|
|
158
|
-
export type EngineHostedHelperSpec = GridHelperSpec | TerminalHelperSpec;
|
|
181
|
+
export type EngineHostedHelperSpec = GridHelperSpec | CropHelperSpec | TerminalHelperSpec;
|
|
159
182
|
export declare function isEngineHostedHelper(spec: HelperSpec): spec is EngineHostedHelperSpec;
|
|
160
|
-
/** The devices a helper depends on without reading a field of them: a grid's cell sources. */
|
|
183
|
+
/** The devices a helper depends on without reading a field of them: a grid's cell sources, a crop's source. */
|
|
161
184
|
export declare function helperDeviceRefs(spec: HelperSpec): readonly CompositionSourceRef[];
|
|
@@ -3194,6 +3194,34 @@ function newGridHelperSpec() {
|
|
|
3194
3194
|
cells: []
|
|
3195
3195
|
};
|
|
3196
3196
|
}
|
|
3197
|
+
/** The ratio presets of a crop camera. `free` leaves the handles unlocked. */
|
|
3198
|
+
var CROP_ASPECTS = [
|
|
3199
|
+
"16:9",
|
|
3200
|
+
"4:3",
|
|
3201
|
+
"1:1",
|
|
3202
|
+
"free"
|
|
3203
|
+
];
|
|
3204
|
+
var DEFAULT_CROP_ASPECT = "16:9";
|
|
3205
|
+
var cropHelperObject = zod.z.object({
|
|
3206
|
+
kind: zod.z.literal("crop"),
|
|
3207
|
+
source: CompositionSourceRefSchema,
|
|
3208
|
+
rect: GridRectSchema,
|
|
3209
|
+
aspect: zod.z.enum(CROP_ASPECTS),
|
|
3210
|
+
fps: zod.z.number().int().min(1).max(60),
|
|
3211
|
+
publishedProfiles: zod.z.array(zod.z.enum(GRID_PROFILES)).max(3)
|
|
3212
|
+
});
|
|
3213
|
+
var CropHelperSpecSchema = cropHelperObject;
|
|
3214
|
+
/** A new crop of `source`, with the rectangle the editor starts from. */
|
|
3215
|
+
function newCropHelperSpec(source, rect, aspect = DEFAULT_CROP_ASPECT) {
|
|
3216
|
+
return {
|
|
3217
|
+
kind: "crop",
|
|
3218
|
+
source,
|
|
3219
|
+
rect,
|
|
3220
|
+
aspect,
|
|
3221
|
+
fps: 10,
|
|
3222
|
+
publishedProfiles: [...DEFAULT_GRID_PROFILES]
|
|
3223
|
+
};
|
|
3224
|
+
}
|
|
3197
3225
|
var terminalHelperObject = zod.z.object({
|
|
3198
3226
|
kind: zod.z.literal("terminal"),
|
|
3199
3227
|
terminalId: zod.z.string().uuid()
|
|
@@ -3201,6 +3229,7 @@ var terminalHelperObject = zod.z.object({
|
|
|
3201
3229
|
var TerminalHelperSpecSchema = terminalHelperObject;
|
|
3202
3230
|
var HelperSpecSchema = zod.z.discriminatedUnion("kind", [
|
|
3203
3231
|
gridHelperObject,
|
|
3232
|
+
cropHelperObject,
|
|
3204
3233
|
terminalHelperObject,
|
|
3205
3234
|
GroupHelperSpecSchema,
|
|
3206
3235
|
statisticHelperObject,
|
|
@@ -3224,17 +3253,24 @@ function helperMembers(spec) {
|
|
|
3224
3253
|
case "arithmetic": return spec.inputs;
|
|
3225
3254
|
case "expression": return spec.inputs.map((input) => input.member);
|
|
3226
3255
|
case "grid":
|
|
3256
|
+
case "crop":
|
|
3227
3257
|
case "terminal": return [];
|
|
3228
3258
|
}
|
|
3229
3259
|
}
|
|
3230
3260
|
/** The kinds whose camera an engine serves on the composer's row (planning#580). */
|
|
3231
|
-
var ENGINE_HOSTED_HELPER_KINDS = [
|
|
3261
|
+
var ENGINE_HOSTED_HELPER_KINDS = [
|
|
3262
|
+
"grid",
|
|
3263
|
+
"crop",
|
|
3264
|
+
"terminal"
|
|
3265
|
+
];
|
|
3232
3266
|
function isEngineHostedHelper(spec) {
|
|
3233
|
-
return spec.kind === "grid" || spec.kind === "terminal";
|
|
3267
|
+
return spec.kind === "grid" || spec.kind === "crop" || spec.kind === "terminal";
|
|
3234
3268
|
}
|
|
3235
|
-
/** The devices a helper depends on without reading a field of them: a grid's cell sources. */
|
|
3269
|
+
/** The devices a helper depends on without reading a field of them: a grid's cell sources, a crop's source. */
|
|
3236
3270
|
function helperDeviceRefs(spec) {
|
|
3237
|
-
|
|
3271
|
+
if (spec.kind === "grid") return spec.cells.map((cell) => cell.source);
|
|
3272
|
+
if (spec.kind === "crop") return [spec.source];
|
|
3273
|
+
return [];
|
|
3238
3274
|
}
|
|
3239
3275
|
//#endregion
|
|
3240
3276
|
//#region src/composition/composition.ts
|
|
@@ -3697,6 +3733,12 @@ Object.defineProperty(exports, "COMPOSITION_ITEM_KEY_RE", {
|
|
|
3697
3733
|
return COMPOSITION_ITEM_KEY_RE;
|
|
3698
3734
|
}
|
|
3699
3735
|
});
|
|
3736
|
+
Object.defineProperty(exports, "CROP_ASPECTS", {
|
|
3737
|
+
enumerable: true,
|
|
3738
|
+
get: function() {
|
|
3739
|
+
return CROP_ASPECTS;
|
|
3740
|
+
}
|
|
3741
|
+
});
|
|
3700
3742
|
Object.defineProperty(exports, "CUSTOMIZATION_BLOCK_NAME_PREFIX", {
|
|
3701
3743
|
enumerable: true,
|
|
3702
3744
|
get: function() {
|
|
@@ -3847,12 +3889,24 @@ Object.defineProperty(exports, "CompositionTargetSchema", {
|
|
|
3847
3889
|
return CompositionTargetSchema;
|
|
3848
3890
|
}
|
|
3849
3891
|
});
|
|
3892
|
+
Object.defineProperty(exports, "CropHelperSpecSchema", {
|
|
3893
|
+
enumerable: true,
|
|
3894
|
+
get: function() {
|
|
3895
|
+
return CropHelperSpecSchema;
|
|
3896
|
+
}
|
|
3897
|
+
});
|
|
3850
3898
|
Object.defineProperty(exports, "DAY_MS", {
|
|
3851
3899
|
enumerable: true,
|
|
3852
3900
|
get: function() {
|
|
3853
3901
|
return DAY_MS;
|
|
3854
3902
|
}
|
|
3855
3903
|
});
|
|
3904
|
+
Object.defineProperty(exports, "DEFAULT_CROP_ASPECT", {
|
|
3905
|
+
enumerable: true,
|
|
3906
|
+
get: function() {
|
|
3907
|
+
return DEFAULT_CROP_ASPECT;
|
|
3908
|
+
}
|
|
3909
|
+
});
|
|
3856
3910
|
Object.defineProperty(exports, "DEFAULT_FIRST_SIGHTING_FRESHNESS_MS", {
|
|
3857
3911
|
enumerable: true,
|
|
3858
3912
|
get: function() {
|
|
@@ -4609,6 +4663,12 @@ Object.defineProperty(exports, "maxDurationMs", {
|
|
|
4609
4663
|
return maxDurationMs;
|
|
4610
4664
|
}
|
|
4611
4665
|
});
|
|
4666
|
+
Object.defineProperty(exports, "newCropHelperSpec", {
|
|
4667
|
+
enumerable: true,
|
|
4668
|
+
get: function() {
|
|
4669
|
+
return newCropHelperSpec;
|
|
4670
|
+
}
|
|
4671
|
+
});
|
|
4612
4672
|
Object.defineProperty(exports, "newGridHelperSpec", {
|
|
4613
4673
|
enumerable: true,
|
|
4614
4674
|
get: function() {
|
|
@@ -3194,6 +3194,34 @@ function newGridHelperSpec() {
|
|
|
3194
3194
|
cells: []
|
|
3195
3195
|
};
|
|
3196
3196
|
}
|
|
3197
|
+
/** The ratio presets of a crop camera. `free` leaves the handles unlocked. */
|
|
3198
|
+
var CROP_ASPECTS = [
|
|
3199
|
+
"16:9",
|
|
3200
|
+
"4:3",
|
|
3201
|
+
"1:1",
|
|
3202
|
+
"free"
|
|
3203
|
+
];
|
|
3204
|
+
var DEFAULT_CROP_ASPECT = "16:9";
|
|
3205
|
+
var cropHelperObject = z.object({
|
|
3206
|
+
kind: z.literal("crop"),
|
|
3207
|
+
source: CompositionSourceRefSchema,
|
|
3208
|
+
rect: GridRectSchema,
|
|
3209
|
+
aspect: z.enum(CROP_ASPECTS),
|
|
3210
|
+
fps: z.number().int().min(1).max(60),
|
|
3211
|
+
publishedProfiles: z.array(z.enum(GRID_PROFILES)).max(3)
|
|
3212
|
+
});
|
|
3213
|
+
var CropHelperSpecSchema = cropHelperObject;
|
|
3214
|
+
/** A new crop of `source`, with the rectangle the editor starts from. */
|
|
3215
|
+
function newCropHelperSpec(source, rect, aspect = DEFAULT_CROP_ASPECT) {
|
|
3216
|
+
return {
|
|
3217
|
+
kind: "crop",
|
|
3218
|
+
source,
|
|
3219
|
+
rect,
|
|
3220
|
+
aspect,
|
|
3221
|
+
fps: 10,
|
|
3222
|
+
publishedProfiles: [...DEFAULT_GRID_PROFILES]
|
|
3223
|
+
};
|
|
3224
|
+
}
|
|
3197
3225
|
var terminalHelperObject = z.object({
|
|
3198
3226
|
kind: z.literal("terminal"),
|
|
3199
3227
|
terminalId: z.string().uuid()
|
|
@@ -3201,6 +3229,7 @@ var terminalHelperObject = z.object({
|
|
|
3201
3229
|
var TerminalHelperSpecSchema = terminalHelperObject;
|
|
3202
3230
|
var HelperSpecSchema = z.discriminatedUnion("kind", [
|
|
3203
3231
|
gridHelperObject,
|
|
3232
|
+
cropHelperObject,
|
|
3204
3233
|
terminalHelperObject,
|
|
3205
3234
|
GroupHelperSpecSchema,
|
|
3206
3235
|
statisticHelperObject,
|
|
@@ -3224,17 +3253,24 @@ function helperMembers(spec) {
|
|
|
3224
3253
|
case "arithmetic": return spec.inputs;
|
|
3225
3254
|
case "expression": return spec.inputs.map((input) => input.member);
|
|
3226
3255
|
case "grid":
|
|
3256
|
+
case "crop":
|
|
3227
3257
|
case "terminal": return [];
|
|
3228
3258
|
}
|
|
3229
3259
|
}
|
|
3230
3260
|
/** The kinds whose camera an engine serves on the composer's row (planning#580). */
|
|
3231
|
-
var ENGINE_HOSTED_HELPER_KINDS = [
|
|
3261
|
+
var ENGINE_HOSTED_HELPER_KINDS = [
|
|
3262
|
+
"grid",
|
|
3263
|
+
"crop",
|
|
3264
|
+
"terminal"
|
|
3265
|
+
];
|
|
3232
3266
|
function isEngineHostedHelper(spec) {
|
|
3233
|
-
return spec.kind === "grid" || spec.kind === "terminal";
|
|
3267
|
+
return spec.kind === "grid" || spec.kind === "crop" || spec.kind === "terminal";
|
|
3234
3268
|
}
|
|
3235
|
-
/** The devices a helper depends on without reading a field of them: a grid's cell sources. */
|
|
3269
|
+
/** The devices a helper depends on without reading a field of them: a grid's cell sources, a crop's source. */
|
|
3236
3270
|
function helperDeviceRefs(spec) {
|
|
3237
|
-
|
|
3271
|
+
if (spec.kind === "grid") return spec.cells.map((cell) => cell.source);
|
|
3272
|
+
if (spec.kind === "crop") return [spec.source];
|
|
3273
|
+
return [];
|
|
3238
3274
|
}
|
|
3239
3275
|
//#endregion
|
|
3240
3276
|
//#region src/composition/composition.ts
|
|
@@ -3619,4 +3655,4 @@ function implementedMethodsOf(methodNames, provider) {
|
|
|
3619
3655
|
return methodNames.filter((name) => typeof Reflect.get(provider, name) === "function");
|
|
3620
3656
|
}
|
|
3621
3657
|
//#endregion
|
|
3622
|
-
export {
|
|
3658
|
+
export { CropHelperSpecSchema as $, climateRoleOf as $n, planStatisticTier as $t, MAX_COMPOSITION_FEATURES as A, EXPRESSION_BUILTINS as An, newGridHelperSpec as At, compositionSourceKey as B, SOURCE_CAPS as Bn, MINUTE_MS as Bt, CompositionNewTargetSchema as C, EXPRESSION_IDENTIFIER_RE as Cn, pickVideoEncoder as Cr, TerminalHelperSpecSchema as Ct, CompositionTargetSchema as D, MAX_EXPRESSION_EVAL_STEPS as Dn, isEngineHostedHelper as Dt, CompositionSeriesSourceSchema as E, MAX_EXPRESSION_CALL_ARGS as En, helperMembers as Et, composedDeviceStableId as F, evaluateRose as Fn, DEFAULT_HISTORY_RETENTION as Ft, ACTIVE_CRITERIA as G, evaluateSensorLevelEdge as Gn, StatisticWindowSchema as Gt, featureSources as H, SOURCE_CAP_CHANGED_AT_FIELD as Hn, RESET_PERIODS as Ht, compositionFeatureEnabled as I, isStatefulBuiltin as In, HISTORY_FAST_MS as It, ActiveCriterionSchema as J, sliceChangedAt as Jn, maxDurationMs as Jt, AGGREGATE_REDUCERS as K, isSourceCap as Kn, historyRetentionFromSettings as Kt, compositionItemFieldPath as L, ExpressionEvalError as Ln, HISTORY_SLOW_MS as Lt, MAX_COMPOSITION_ITEMS as M, disarmRoseMemory as Mn, CALENDAR_PERIODS as Mt, canonicalStoredBlockTarget as N, evaluateCount as Nn, CalendarWindowSchema as Nt, FORWARD_INPUT_KEY as O, MAX_EXPRESSION_SOURCE_LENGTH as On, isHistoryHelper as Ot, composedDeviceRef as P, evaluateDwell as Pn, DAY_MS as Pt, CROP_ASPECTS as Q, capAppliesToDeviceKind as Qn, planResetTier as Qt, compositionReadKey as R, ExpressionParseError as Rn, HISTORY_TIERS as Rt, CompositionLiteralBindingSchema as S, EXPRESSION_COMPILE_CACHE_CAPACITY as Sn, logBannerArgs as Sr, StatisticHelperSpecSchema as St, CompositionSchema as T, MAX_EXPRESSION_BINDINGS as Tn, helperDeviceRefs as Tt, fieldReads as U, SOURCE_DEVICE_TYPES as Un, ROLLING_SPANS as Ut, featureFieldEntries as V, SOURCE_CAP_ACTIVE_FIELD as Vn, MIN_CUSTOM_MINUTES as Vt, isForwardInputRef as W, evaluateSensorEdge as Wn, RollingWindowSchema as Wt, ArithmeticHelperSpecSchema as X, StoredDeviceTypeSchema as Xn, openReset as Xt, AggregateReducerSchema as Y, CLIMATE_ROLES as Yn, nextLocalMidnight as Yt, BINARY_AGGREGATES as Z, canonicalStoredDeviceType as Zn, openStatistic as Zt, CompositionFieldsFeatureSchema as _, evaluateAst as _n, buildFfmpegArgs as _r, INTEGRAL_OUTPUTS as _t, CUSTOMIZATION_BLOCK_NAME_PREFIX as a, evaluateStatistic as an, FFMPEG_PATH_ENV as ar, ENGINE_HOSTED_HELPER_KINDS as at, CompositionFromSourceSchema as b, parseExpression as bn, invocationFromEncodeProfile as br, MAX_HELPER_MEMBERS as bt, CompositionCodeSourceSchema as c, wattMillisecondsToKwh as cn, FFMPEG_RELEASE as cr, GRID_PROFILES as ct, CompositionExistingTargetSchema as d, createStatefulExpressionMemory as dn, canonicalHash as dr, GridHelperSpecSchema as dt, rollingDurationMs as en, isAirConditioner as er, DEFAULT_CROP_ASPECT as et, CompositionExpressionSourceSchema as f, evaluateExpressionSource as fn, Fmp4BoxSplitter as fr, GridRectSchema as ft, CompositionFieldSourceSchema as g, createExpressionScope as gn, buildAudioArgs as gr, HelperSpecSchema as gt, CompositionFieldReadSchema as h, validateExpressionSource as hn, audioPlanFromEncodeProfile as hr, HelperMemberSchema as ht, COMPOSITION_ITEM_KEY_RE as i, evaluateDerivative as in, isSwitchLight as ir, DerivativeHelperSpecSchema as it, MAX_COMPOSITION_FIELDS_PER_FEATURE as j, EXPRESSION_BUILTIN_NAMES as jn, CompositionSourceRefSchema as jt, MAX_COMPOSITION_CODE_LENGTH as k, RESERVED_BINDING_NAMES as kn, newCropHelperSpec as kt, CompositionCommandTargetSchema as l, EXPRESSION_INJECTED_NOW as ln, getFfmpegArtifact as lr, GROUP_TEMPLATE_IDS as lt, CompositionFeatureSchema as m, toExpressionValue as mn, RESTREAM_INPUT_PROBE as mr, GroupTemplateIdSchema as mt, COMPOSER_ADDON_ID as n, SERIES_KINDS as nn, isSwitchFan as nr, DEFAULT_GRID_PROFILES as nt, CompositionAggregateSourceSchema as o, integrateReading as on, chooseFfmpegBinary as or, EXPRESSION_OUTPUTS as ot, CompositionExtensionCommandSchema as p, evaluateStatefulExpressionCall as pn, AUDIO_PRESETS as pr, GroupHelperSpecSchema as pt, ARITHMETIC_OPS as q, sliceActiveValue as qn, integralCadenceMs as qt, COMPOSITION_ITEM_ARRAY_PATH as r, STATISTIC_STATS as rn, isSwitchHeater as rr, DERIVATIVE_UNITS as rt, CompositionBindingSchema as s, KWH_PER_WATT_MS as sn, ffmpegBinaryName as sr, ExpressionHelperSpecSchema as st, implementedMethodsOf as t, statisticCadenceMs as tn, isOutlet as tr, DEFAULT_GRID_FPS as tt, CompositionContributedBySchema as u, cloneStatefulExpressionMemory as un, getFfmpegDownloadUrl as ur, GridCellSpecSchema as ut, CompositionForwardArgSchema as v, compileExpression as vn, buildInputArgs as vr, IntegralHelperSpecSchema as vt, CompositionPassthroughFeatureSchema as w, MAX_EXPRESSION_AST_NODES as wn, resolveStreamMaps as wr, ThresholdHelperSpecSchema as wt, CompositionItemEntrySchema as x, tokenize as xn, isSoftwareDecode as xr, NUMERIC_AGGREGATES as xt, CompositionForwardCommandSchema as y, compileExpressionSafe as yn, buildVideoArgs as yr, MAX_GRID_CELLS as yt, compositionSliceKey as z, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as zn, HOUR_MS as zt };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_runtime_capabilities = require("./runtime-capabilities-DCRxheYq.js");
|
|
3
3
|
const require_event_category = require("./event-category-CMA0-jGW.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
5
|
-
const require_implemented_methods = require("./implemented-methods-
|
|
5
|
+
const require_implemented_methods = require("./implemented-methods-BHN-Utsb.js");
|
|
6
6
|
const require_node_color = require("./node-color.js");
|
|
7
7
|
const require_convert = require("./convert-BI8iTXn6.js");
|
|
8
8
|
const require_device_template_catalogue = require("./device-template-catalogue.js");
|
|
@@ -53273,6 +53273,7 @@ function compileHelper(spec, retention = require_implemented_methods.DEFAULT_HIS
|
|
|
53273
53273
|
case "arithmetic": return compileMath(arithmeticDraft(spec));
|
|
53274
53274
|
case "expression": return compileMath(expressionDraft(spec));
|
|
53275
53275
|
case "grid":
|
|
53276
|
+
case "crop":
|
|
53276
53277
|
case "terminal": return parseDraft(engineHostedDraft(spec));
|
|
53277
53278
|
}
|
|
53278
53279
|
}
|
|
@@ -110366,7 +110367,7 @@ function proposeRunningThreshold(series) {
|
|
|
110366
110367
|
const notes = [];
|
|
110367
110368
|
const longestPause = pauses.length === 0 ? 0 : Math.max(...pauses);
|
|
110368
110369
|
const stopFloor = series.deviceType === void 0 ? STOP_MIN_MS : STOP_FLOOR_BY_KIND[series.deviceType] ?? STOP_MIN_MS;
|
|
110369
|
-
let stop = clamp(Math.max(stopFloor, roundUp(STOP_FACTOR * longestPause, STOP_STEP_MS)), STOP_MIN_MS, STOP_MAX_MS);
|
|
110370
|
+
let stop = clamp$1(Math.max(stopFloor, roundUp(STOP_FACTOR * longestPause, STOP_STEP_MS)), STOP_MIN_MS, STOP_MAX_MS);
|
|
110370
110371
|
const shortestGap = betweenGaps.length === 0 ? null : Math.min(...betweenGaps);
|
|
110371
110372
|
if (shortestGap !== null && stop >= shortestGap) notes.push("stop-dwell-exceeds-shortest-gap");
|
|
110372
110373
|
const blips = excursionsOutside(segments, threshold, runs);
|
|
@@ -110446,7 +110447,7 @@ function durationOf(spans) {
|
|
|
110446
110447
|
function maxOf(values) {
|
|
110447
110448
|
return values.length === 0 ? 0 : Math.max(...values);
|
|
110448
110449
|
}
|
|
110449
|
-
function clamp(value, min, max) {
|
|
110450
|
+
function clamp$1(value, min, max) {
|
|
110450
110451
|
return Math.min(max, Math.max(min, value));
|
|
110451
110452
|
}
|
|
110452
110453
|
function roundUp(value, step) {
|
|
@@ -110835,6 +110836,96 @@ function createDeviceExtensionProvider(options) {
|
|
|
110835
110836
|
};
|
|
110836
110837
|
}
|
|
110837
110838
|
//#endregion
|
|
110839
|
+
//#region src/composition/helpers/crop-geometry.ts
|
|
110840
|
+
/** The smallest side a crop may shrink to, as a fraction of the source. */
|
|
110841
|
+
var CROP_MIN_SIDE = .05;
|
|
110842
|
+
/** A seeded crop covers this fraction of the largest rectangle that fits, so it is a visible crop. */
|
|
110843
|
+
var CROP_SEED_SCALE = .6;
|
|
110844
|
+
/** The pixel aspect (width / height) a preset locks to; `null` for `free`. */
|
|
110845
|
+
function cropAspectRatio(aspect) {
|
|
110846
|
+
switch (aspect) {
|
|
110847
|
+
case "16:9": return 16 / 9;
|
|
110848
|
+
case "4:3": return 4 / 3;
|
|
110849
|
+
case "1:1": return 1;
|
|
110850
|
+
case "free": return null;
|
|
110851
|
+
}
|
|
110852
|
+
}
|
|
110853
|
+
/** The pixel aspect of the canvas a crop produces: crop aspect times source aspect. */
|
|
110854
|
+
function cropCanvasAspect(rect, sourceAspect) {
|
|
110855
|
+
return rect.width / rect.height * sourceAspect;
|
|
110856
|
+
}
|
|
110857
|
+
function clamp(value, min, max) {
|
|
110858
|
+
return Math.min(Math.max(value, min), max);
|
|
110859
|
+
}
|
|
110860
|
+
/**
|
|
110861
|
+
* The rectangle a new crop starts from: centred, the preset's pixel aspect on
|
|
110862
|
+
* a source of `sourceAspect`. `free` starts as the middle quarter.
|
|
110863
|
+
*/
|
|
110864
|
+
function seedCropRect(aspect, sourceAspect) {
|
|
110865
|
+
const ratio = cropAspectRatio(aspect);
|
|
110866
|
+
if (ratio === null) return {
|
|
110867
|
+
x: .25,
|
|
110868
|
+
y: .25,
|
|
110869
|
+
width: .5,
|
|
110870
|
+
height: .5
|
|
110871
|
+
};
|
|
110872
|
+
const heightPerWidth = sourceAspect / ratio;
|
|
110873
|
+
const width = (heightPerWidth <= 1 ? 1 : 1 / heightPerWidth) * CROP_SEED_SCALE;
|
|
110874
|
+
const height = width * heightPerWidth;
|
|
110875
|
+
return {
|
|
110876
|
+
x: (1 - width) / 2,
|
|
110877
|
+
y: (1 - height) / 2,
|
|
110878
|
+
width,
|
|
110879
|
+
height
|
|
110880
|
+
};
|
|
110881
|
+
}
|
|
110882
|
+
/** The same rectangle moved by (dx, dy), held inside the source. Its size never changes. */
|
|
110883
|
+
function moveCropRect(rect, dx, dy) {
|
|
110884
|
+
return {
|
|
110885
|
+
...rect,
|
|
110886
|
+
x: clamp(rect.x + dx, 0, 1 - rect.width),
|
|
110887
|
+
y: clamp(rect.y + dy, 0, 1 - rect.height)
|
|
110888
|
+
};
|
|
110889
|
+
}
|
|
110890
|
+
/**
|
|
110891
|
+
* Drag one corner. The opposite corner is the anchor. A preset keeps the pixel
|
|
110892
|
+
* aspect exactly (the larger of the two pointer distances leads), `free` follows
|
|
110893
|
+
* the pointer on both axes. Either way the result stays inside the source and
|
|
110894
|
+
* never shrinks below `CROP_MIN_SIDE`.
|
|
110895
|
+
*/
|
|
110896
|
+
function resizeCropRect(input) {
|
|
110897
|
+
const { rect, handle, point, aspect, sourceAspect } = input;
|
|
110898
|
+
const west = handle === "nw" || handle === "sw";
|
|
110899
|
+
const north = handle === "nw" || handle === "ne";
|
|
110900
|
+
const anchorX = west ? rect.x + rect.width : rect.x;
|
|
110901
|
+
const anchorY = north ? rect.y + rect.height : rect.y;
|
|
110902
|
+
const signX = west ? -1 : 1;
|
|
110903
|
+
const signY = north ? -1 : 1;
|
|
110904
|
+
const roomX = signX > 0 ? 1 - anchorX : anchorX;
|
|
110905
|
+
const roomY = signY > 0 ? 1 - anchorY : anchorY;
|
|
110906
|
+
const wantX = (point.x - anchorX) * signX;
|
|
110907
|
+
const wantY = (point.y - anchorY) * signY;
|
|
110908
|
+
const ratio = cropAspectRatio(aspect);
|
|
110909
|
+
let width;
|
|
110910
|
+
let height;
|
|
110911
|
+
if (ratio === null) {
|
|
110912
|
+
width = clamp(wantX, Math.min(CROP_MIN_SIDE, roomX), roomX);
|
|
110913
|
+
height = clamp(wantY, Math.min(CROP_MIN_SIDE, roomY), roomY);
|
|
110914
|
+
} else {
|
|
110915
|
+
const k = ratio / sourceAspect;
|
|
110916
|
+
const maxWidth = Math.min(roomX, roomY * k);
|
|
110917
|
+
const minWidth = Math.min(Math.max(CROP_MIN_SIDE, CROP_MIN_SIDE * k), maxWidth);
|
|
110918
|
+
width = clamp(Math.max(wantX, wantY * k), minWidth, maxWidth);
|
|
110919
|
+
height = width / k;
|
|
110920
|
+
}
|
|
110921
|
+
return {
|
|
110922
|
+
x: signX > 0 ? anchorX : anchorX - width,
|
|
110923
|
+
y: signY > 0 ? anchorY : anchorY - height,
|
|
110924
|
+
width,
|
|
110925
|
+
height
|
|
110926
|
+
};
|
|
110927
|
+
}
|
|
110928
|
+
//#endregion
|
|
110838
110929
|
//#region src/composition/helpers/actuator-methods.ts
|
|
110839
110930
|
/**
|
|
110840
110931
|
* One method table per actuator type (D944). A group offers a method only
|
|
@@ -132480,7 +132571,7 @@ var DEVICE_FEATURE_REQUIREMENTS = {
|
|
|
132480
132571
|
[require_composed_stable_id.DeviceFeature.CoverPositionable]: bound("cover", ["setPosition"]),
|
|
132481
132572
|
[require_composed_stable_id.DeviceFeature.CoverTilt]: bound("cover", ["setTiltPosition"]),
|
|
132482
132573
|
[require_composed_stable_id.DeviceFeature.CoverStoppable]: bound("cover", ["stop"]),
|
|
132483
|
-
[require_composed_stable_id.DeviceFeature.ValvePositionable]:
|
|
132574
|
+
[require_composed_stable_id.DeviceFeature.ValvePositionable]: derived("valve", ["setPosition"]),
|
|
132484
132575
|
[require_composed_stable_id.DeviceFeature.FanSpeed]: bound("fan-control", ["setPercentage"]),
|
|
132485
132576
|
[require_composed_stable_id.DeviceFeature.FanPreset]: bound("fan-control", ["setPreset"]),
|
|
132486
132577
|
[require_composed_stable_id.DeviceFeature.FanDirection]: bound("fan-control", ["setDirection"]),
|
|
@@ -151765,7 +151856,10 @@ exports.CORE_ULTRA_265K_IGPU_CLOCK_MHZ = CORE_ULTRA_265K_IGPU_CLOCK_MHZ;
|
|
|
151765
151856
|
exports.CORE_ULTRA_265K_IGPU_EU = CORE_ULTRA_265K_IGPU_EU;
|
|
151766
151857
|
exports.CREDENTIAL_TOKEN_AUDIENCE = CREDENTIAL_TOKEN_AUDIENCE;
|
|
151767
151858
|
exports.CREDENTIAL_TOKEN_KIND = CREDENTIAL_TOKEN_KIND;
|
|
151859
|
+
exports.CROP_ASPECTS = require_implemented_methods.CROP_ASPECTS;
|
|
151768
151860
|
exports.CROP_CLASS_FLOORS = CROP_CLASS_FLOORS;
|
|
151861
|
+
exports.CROP_MIN_SIDE = CROP_MIN_SIDE;
|
|
151862
|
+
exports.CROP_SEED_SCALE = CROP_SEED_SCALE;
|
|
151769
151863
|
exports.CROP_SUPPLY_SOURCES = CROP_SUPPLY_SOURCES;
|
|
151770
151864
|
exports.CROP_SUPPLY_STEP_IDS = CROP_SUPPLY_STEP_IDS;
|
|
151771
151865
|
exports.CUSTOMIZATION_BLOCK_NAME_PREFIX = require_implemented_methods.CUSTOMIZATION_BLOCK_NAME_PREFIX;
|
|
@@ -151967,6 +152061,7 @@ exports.CoverStatusSchema = CoverStatusSchema;
|
|
|
151967
152061
|
exports.CreateUserInputSchema = CreateUserInputSchema;
|
|
151968
152062
|
exports.CredentialScopeSchema = CredentialScopeSchema;
|
|
151969
152063
|
exports.CredentialTokenClaimsSchema = CredentialTokenClaimsSchema;
|
|
152064
|
+
exports.CropHelperSpecSchema = require_implemented_methods.CropHelperSpecSchema;
|
|
151970
152065
|
exports.CurrentAutomationRecipeSchema = CurrentAutomationRecipeSchema;
|
|
151971
152066
|
exports.CustomActionInputSchema = CustomActionInputSchema;
|
|
151972
152067
|
exports.CustomModelDescriptorSchema = CustomModelDescriptorSchema;
|
|
@@ -151994,6 +152089,7 @@ exports.DEFAULT_CLUSTER_STEP_MODELS = DEFAULT_CLUSTER_STEP_MODELS;
|
|
|
151994
152089
|
exports.DEFAULT_CLUSTER_STEP_SETTINGS = DEFAULT_CLUSTER_STEP_SETTINGS;
|
|
151995
152090
|
exports.DEFAULT_COMMAND_HOLD_MS = DEFAULT_COMMAND_HOLD_MS;
|
|
151996
152091
|
exports.DEFAULT_CORE_BLOCK_ENTRY = DEFAULT_CORE_BLOCK_ENTRY;
|
|
152092
|
+
exports.DEFAULT_CROP_ASPECT = require_implemented_methods.DEFAULT_CROP_ASPECT;
|
|
151997
152093
|
exports.DEFAULT_DECODER_HWACCEL_CONFIG = DEFAULT_DECODER_HWACCEL_CONFIG;
|
|
151998
152094
|
exports.DEFAULT_DETAIL_CROP_CONVENTION = DEFAULT_DETAIL_CROP_CONVENTION;
|
|
151999
152095
|
exports.DEFAULT_DISPLAY_PREFERENCE = require_runtime_capabilities.DEFAULT_DISPLAY_PREFERENCE;
|
|
@@ -154521,6 +154617,8 @@ exports.createSecretsAccess = require_runtime_capabilities.createSecretsAccess;
|
|
|
154521
154617
|
exports.createSliceHandle = require_runtime_capabilities.createSliceHandle;
|
|
154522
154618
|
exports.createStatefulExpressionMemory = require_implemented_methods.createStatefulExpressionMemory;
|
|
154523
154619
|
exports.createSystemProxy = createSystemProxy;
|
|
154620
|
+
exports.cropAspectRatio = cropAspectRatio;
|
|
154621
|
+
exports.cropCanvasAspect = cropCanvasAspect;
|
|
154524
154622
|
exports.customAction = require_runtime_capabilities.customAction;
|
|
154525
154623
|
exports.customKeyOfRole = customKeyOfRole;
|
|
154526
154624
|
exports.customModelRegistryCapability = customModelRegistryCapability;
|
|
@@ -155113,6 +155211,7 @@ exports.motionZonesCapability = motionZonesCapability;
|
|
|
155113
155211
|
exports.moveBodySwitchToRegistry = require_runtime_capabilities.moveBodySwitchToRegistry;
|
|
155114
155212
|
exports.moveBrokerLinksToConnections = moveBrokerLinksToConnections;
|
|
155115
155213
|
exports.moveCalendarIdsToRecords = moveCalendarIdsToRecords;
|
|
155214
|
+
exports.moveCropRect = moveCropRect;
|
|
155116
155215
|
exports.moveGroup = moveGroup;
|
|
155117
155216
|
exports.moveIntegrationRowsToRecords = moveIntegrationRowsToRecords;
|
|
155118
155217
|
exports.moveRegistrySwitchToBody = require_runtime_capabilities.moveRegistrySwitchToBody;
|
|
@@ -155128,6 +155227,7 @@ exports.netPowerOf = netPowerOf;
|
|
|
155128
155227
|
exports.networkAccessCapability = networkAccessCapability;
|
|
155129
155228
|
exports.networkLinkCapability = networkLinkCapability;
|
|
155130
155229
|
exports.networkQualityCapability = networkQualityCapability;
|
|
155230
|
+
exports.newCropHelperSpec = require_implemented_methods.newCropHelperSpec;
|
|
155131
155231
|
exports.newGridHelperSpec = require_implemented_methods.newGridHelperSpec;
|
|
155132
155232
|
exports.nextLocalMidnight = require_implemented_methods.nextLocalMidnight;
|
|
155133
155233
|
exports.nextOccurrence = nextOccurrence;
|
|
@@ -155391,6 +155491,7 @@ exports.requiredTopLevelKeys = requiredTopLevelKeys;
|
|
|
155391
155491
|
exports.requiresPython = require_runtime_capabilities.requiresPython;
|
|
155392
155492
|
exports.reservedSourceOwner = reservedSourceOwner;
|
|
155393
155493
|
exports.resetPoolBaseline = resetPoolBaseline;
|
|
155494
|
+
exports.resizeCropRect = resizeCropRect;
|
|
155394
155495
|
exports.resolveActionVariables = resolveActionVariables;
|
|
155395
155496
|
exports.resolveAddonExecution = resolveAddonExecution;
|
|
155396
155497
|
exports.resolveAddonGroup = resolveAddonGroup;
|
|
@@ -155533,6 +155634,7 @@ exports.secretTreeFromSchema = require_runtime_capabilities.secretTreeFromSchema
|
|
|
155533
155634
|
exports.secretViewsOf = require_runtime_capabilities.secretViewsOf;
|
|
155534
155635
|
exports.secretsOverMigrationApi = require_runtime_capabilities.secretsOverMigrationApi;
|
|
155535
155636
|
exports.secureActuationFor = secureActuationFor;
|
|
155637
|
+
exports.seedCropRect = seedCropRect;
|
|
155536
155638
|
exports.seedInstanceOnce = seedInstanceOnce;
|
|
155537
155639
|
exports.seedLeaf = seedLeaf;
|
|
155538
155640
|
exports.seekPatch = seekPatch;
|