@@ -10,14 +10,14 @@ import {DeliveryFormat} from "./delivery/DeliveryFormat.js";
1010import { DeliveryQualityAction } from "./delivery/DeliveryQuality.js" ;
1111import { FormatQualifier } from "../qualifiers/format/FormatQualifier.js" ;
1212import { toFloatAsString } from "../internal/utils/toFloatAsString.js" ;
13- import { DeliveryColorSpaceFromICC } from "./delivery/DeliveryColorSpaceFromICC .js" ;
13+ import { DeliveryColorSpaceFromICCAction } from "./delivery/DeliveryColorSpaceFromICCAction .js" ;
1414import { DeliveryAction } from "./delivery/DeliveryAction.js" ;
1515import { ColorSpaceType } from "../types/types.js" ;
1616import { QualityTypes } from "../types/types.js" ;
1717import { ImageFormatType , VideoFormatType } from "../types/types.js" ;
1818import { DeliveryColorSpaceAction } from "./delivery/DeliveryColorSpaceAction.js" ;
1919
20- export type IDeliveryAction = DeliveryAction | DeliveryColorSpaceAction | DeliveryColorSpaceFromICC ;
20+ export type IDeliveryAction = DeliveryAction | DeliveryColorSpaceAction | DeliveryColorSpaceFromICCAction ;
2121
2222/**
2323 * @summary action
@@ -46,8 +46,6 @@ function format(format:FormatQualifier | ImageFormatType | VideoFormatType | str
4646 return new DeliveryFormat ( 'f' , format ) ;
4747}
4848
49-
50-
5149/**
5250 * @summary action
5351 * @description Deliver the image in the specified device pixel ratio.
@@ -69,7 +67,6 @@ function dpr(dpr: string|number):DeliveryAction {
6967 return new DeliveryAction ( 'dpr' , toFloatAsString ( dpr ) , 'type' ) ;
7068}
7169
72-
7370/**
7471 * @summary action
7572 * @description Controls the quality of the delivered image or video.
@@ -117,8 +114,6 @@ function density(value:number) :DeliveryAction {
117114 return new DeliveryAction ( 'dn' , value , 'density' ) ;
118115}
119116
120-
121-
122117/**
123118 * @summary action
124119 * @description Default images can be used in the case that a requested image does not exist.
@@ -139,7 +134,6 @@ function defaultImage(publicIdWithExtension:string) :DeliveryAction {
139134 return new DeliveryAction ( 'd' , publicIdWithExtension , 'defaultImage' ) ;
140135}
141136
142-
143137/**
144138 * @summary action
145139 * @description Controls the color space used for the delivered image.
@@ -161,7 +155,6 @@ function colorSpace(mode: ColorSpaceType): DeliveryColorSpaceAction {
161155 return new DeliveryColorSpaceAction ( mode ) ;
162156}
163157
164-
165158/**
166159 * @summary action
167160 * @description Specifies the ICC profile to use for the color space.
@@ -181,13 +174,10 @@ function colorSpace(mode: ColorSpaceType): DeliveryColorSpaceAction {
181174 * colorSpaceFromICC('sample.icc'),
182175 * );
183176 */
184- function colorSpaceFromICC ( publicId :string ) : DeliveryColorSpaceFromICC {
185- return new DeliveryColorSpaceFromICC ( publicId ) ;
177+ function colorSpaceFromICC ( publicId : string ) : DeliveryColorSpaceFromICCAction {
178+ return new DeliveryColorSpaceFromICCAction ( publicId ) ;
186179}
187180
188-
189-
190-
191181const Delivery = {
192182 format,
193183 dpr,
0 commit comments