UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

1 lines 1.1 kB
{"version":3,"file":"assignWithIgnore.mjs","sources":["../../../../src/scene/container/utils/assignWithIgnore.ts"],"sourcesContent":["/**\n * Assigns properties from one object to another, using an optional array of property names to ignore.\n * @param target - The target object to assign properties to.\n * @param options - The object to assign properties from.\n * @param ignore - An object of property names to ignore ({ propToIgnore: true }).\n * @category utils\n * @internal\n */\nexport function assignWithIgnore<T extends Record<string, any>>(\n target: T,\n options: T,\n ignore: Record<string, boolean> = {}\n)\n{\n for (const key in options)\n {\n if (!ignore[key] && options[key] !== undefined)\n {\n target[key] = options[key];\n }\n }\n}\n"],"names":[],"mappings":";AAQO,SAAS,gBACZ,CAAA,MAAA,EACA,OACA,EAAA,MAAA,GAAkC,EAEtC,EAAA;AACI,EAAA,KAAA,MAAW,OAAO,OAClB,EAAA;AACI,IAAA,IAAI,CAAC,MAAO,CAAA,GAAG,KAAK,OAAQ,CAAA,GAAG,MAAM,KACrC,CAAA,EAAA;AACI,MAAO,MAAA,CAAA,GAAG,CAAI,GAAA,OAAA,CAAQ,GAAG,CAAA,CAAA;AAAA,KAC7B;AAAA,GACJ;AACJ;;;;"}