aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 1.17 kB
JavaScript
var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConcreteWidget=exports.GRID_WIDTH=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};exports.GRID_WIDTH=24;class ConcreteWidget{constructor(width,height){if(this.warnings=[],this.warningsV2={},this.width=width,this.height=height,this.width>exports.GRID_WIDTH)throw new(core_1()).UnscopedValidationError(`Widget is too wide, max ${exports.GRID_WIDTH} units allowed`)}position(x,y){this.x=x,this.y=y}copyMetricWarnings(...ms){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IMetric(ms)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.copyMetricWarnings),error}ms.forEach(m=>{for(const[id,message]of Object.entries(m.warningsV2??{}))this.warningsV2[id]=message})}}exports.ConcreteWidget=ConcreteWidget,_a=JSII_RTTI_SYMBOL_1,ConcreteWidget[_a]={fqn:"aws-cdk-lib.aws_cloudwatch.ConcreteWidget",version:"2.185.0"};
;