Download pool/shard005/JavaScript/0031170_InBottomRight.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031170_InBottomRight.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard005/JavaScript/0031170_InBottomRight.js
-
curl -L -o 0031170_InBottomRight.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031170_InBottomRight.js
535 Bytes
| var GetRight = require('../bounds/GetRight'); | |
| var GetBottom = require('../bounds/GetBottom'); | |
| var SetRight = require('../bounds/SetRight'); | |
| var SetBottom = require('../bounds/SetBottom'); | |
| var InBottomRight = function (gameObject, container, offsetX, offsetY) | |
| { | |
| if (offsetX === undefined) { offsetX = 0; } | |
| if (offsetY === undefined) { offsetY = 0; } | |
| SetRight(gameObject, GetRight(container) + offsetX); | |
| SetBottom(gameObject, GetBottom(container) + offsetY); | |
| return gameObject; | |
| }; | |
| module.exports = InBottomRight; | |