neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 4.71 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Snapper = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function Snapper(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, UseBoundingBoxCenter = props.UseBoundingBoxCenter, SnapCheckRadius = props.SnapCheckRadius, CheckStaticColliders = props.CheckStaticColliders, SnapTargetWhitelist = props.SnapTargetWhitelist, Keywords = props.Keywords;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Snapper", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "UseBoundingBoxCenter", id: typeof UseBoundingBoxCenter === "object" && "id" in UseBoundingBoxCenter ? UseBoundingBoxCenter === null || UseBoundingBoxCenter === void 0 ? void 0 : UseBoundingBoxCenter.id : undefined, value: typeof UseBoundingBoxCenter === "object" && "value" in UseBoundingBoxCenter ? UseBoundingBoxCenter === null || UseBoundingBoxCenter === void 0 ? void 0 : UseBoundingBoxCenter.value : UseBoundingBoxCenter, isRaw: typeof UseBoundingBoxCenter === "object" && "isRaw" in UseBoundingBoxCenter && UseBoundingBoxCenter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SnapCheckRadius", id: typeof SnapCheckRadius === "object" && "id" in SnapCheckRadius ? SnapCheckRadius === null || SnapCheckRadius === void 0 ? void 0 : SnapCheckRadius.id : undefined, value: typeof SnapCheckRadius === "object" && "value" in SnapCheckRadius ? SnapCheckRadius === null || SnapCheckRadius === void 0 ? void 0 : SnapCheckRadius.value : SnapCheckRadius, isRaw: typeof SnapCheckRadius === "object" && "isRaw" in SnapCheckRadius && SnapCheckRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "CheckStaticColliders", id: typeof CheckStaticColliders === "object" && "id" in CheckStaticColliders ? CheckStaticColliders === null || CheckStaticColliders === void 0 ? void 0 : CheckStaticColliders.id : undefined, value: typeof CheckStaticColliders === "object" && "value" in CheckStaticColliders ? CheckStaticColliders === null || CheckStaticColliders === void 0 ? void 0 : CheckStaticColliders.value : CheckStaticColliders, isRaw: typeof CheckStaticColliders === "object" && "isRaw" in CheckStaticColliders && CheckStaticColliders.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.SnapTarget]", name: "SnapTargetWhitelist", id: typeof SnapTargetWhitelist === "object" && "id" in SnapTargetWhitelist ? SnapTargetWhitelist === null || SnapTargetWhitelist === void 0 ? void 0 : SnapTargetWhitelist.id : undefined, value: typeof SnapTargetWhitelist === "object" && "value" in SnapTargetWhitelist ? SnapTargetWhitelist === null || SnapTargetWhitelist === void 0 ? void 0 : SnapTargetWhitelist.value : SnapTargetWhitelist, isRaw: typeof SnapTargetWhitelist === "object" && "isRaw" in SnapTargetWhitelist && SnapTargetWhitelist.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncFieldList`1[System.String]", name: "Keywords", id: typeof Keywords === "object" && "id" in Keywords ? Keywords === null || Keywords === void 0 ? void 0 : Keywords.id : undefined, value: typeof Keywords === "object" && "value" in Keywords ? Keywords === null || Keywords === void 0 ? void 0 : Keywords.value : Keywords, isRaw: typeof Keywords === "object" && "isRaw" in Keywords && Keywords.isRaw ? true : undefined })] })));
}
exports.Snapper = Snapper;
;