Lines Matching refs:obj
41 let obj: any = {}
43 properties.forEach(prop => obj[prop] = entry[prop]);
44 return obj;
56 let obj = entry;
59 const properties = Object.getOwnPropertyNames(obj).filter(it => {
80 } while (obj = Object.getPrototypeOf(obj));
91 static format(obj: any): {} {
92 const properties = this.getProperties(obj);
98 const value: any = obj[key];
128 result[key] = this.translateIntDef(obj, key, value)
146 private static translateObject(obj) {
147 const type = obj?.$type?.name
149 case `SizeProto`: return toSize(obj)
150 case `ActiveBufferProto`: return toBuffer(obj)
151 case `ColorProto`: return toColor(obj)
152 case `PointProto`: return toPoint(obj)
153 case `RectProto`: return toRect(obj)
154 case `FloatRectProto`: return toRectF(obj)
155 case `RegionProto`: return toRegion(obj)
156 case `TransformProto`: return toTransform(obj)
158 const formatted = this.formatColorTransform(obj.val);
183 private static getTypeDefSpec(obj: any, propertyName: string): string {
184 const fields = obj?.$type?.fields