neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 6.93 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.LineSegment = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function LineSegment(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Radius = props.Radius, Sides = props.Sides, Point0 = props.Point0, Point1 = props.Point1, Anchor0 = props.Anchor0, Anchor1 = props.Anchor1, _cylinder = props._cylinder, _collider = props._collider, _offset = props._offset, _rotation = props._rotation, _visualScale = props._visualScale;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LineSegment", id: id, persistentId: persistentId, updateOrder: updateOrder }, { 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.Single]", name: "Radius", id: typeof Radius === "object" && "id" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.id : undefined, value: typeof Radius === "object" && "value" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.value : Radius, isRaw: typeof Radius === "object" && "isRaw" in Radius && Radius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "Sides", id: typeof Sides === "object" && "id" in Sides ? Sides === null || Sides === void 0 ? void 0 : Sides.id : undefined, value: typeof Sides === "object" && "value" in Sides ? Sides === null || Sides === void 0 ? void 0 : Sides.value : Sides, isRaw: typeof Sides === "object" && "isRaw" in Sides && Sides.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Point0", id: typeof Point0 === "object" && "id" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.id : undefined, value: typeof Point0 === "object" && "value" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.value : Point0, isRaw: typeof Point0 === "object" && "isRaw" in Point0 && Point0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Point1", id: typeof Point1 === "object" && "id" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.id : undefined, value: typeof Point1 === "object" && "value" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.value : Point1, isRaw: typeof Point1 === "object" && "isRaw" in Point1 && Point1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.TransformRelayRef", name: "Anchor0", id: typeof Anchor0 === "object" && "id" in Anchor0 ? Anchor0 === null || Anchor0 === void 0 ? void 0 : Anchor0.id : undefined, value: typeof Anchor0 === "object" && "value" in Anchor0 ? Anchor0 === null || Anchor0 === void 0 ? void 0 : Anchor0.value : Anchor0, isRaw: typeof Anchor0 === "object" && "isRaw" in Anchor0 && Anchor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.TransformRelayRef", name: "Anchor1", id: typeof Anchor1 === "object" && "id" in Anchor1 ? Anchor1 === null || Anchor1 === void 0 ? void 0 : Anchor1.id : undefined, value: typeof Anchor1 === "object" && "value" in Anchor1 ? Anchor1 === null || Anchor1 === void 0 ? void 0 : Anchor1.value : Anchor1, isRaw: typeof Anchor1 === "object" && "isRaw" in Anchor1 && Anchor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.CylinderMesh]", name: "_cylinder", id: typeof _cylinder === "object" && "id" in _cylinder ? _cylinder === null || _cylinder === void 0 ? void 0 : _cylinder.id : undefined, value: typeof _cylinder === "object" && "value" in _cylinder ? _cylinder === null || _cylinder === void 0 ? void 0 : _cylinder.value : _cylinder, isRaw: typeof _cylinder === "object" && "isRaw" in _cylinder && _cylinder.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.CylinderCollider]", name: "_collider", id: typeof _collider === "object" && "id" in _collider ? _collider === null || _collider === void 0 ? void 0 : _collider.id : undefined, value: typeof _collider === "object" && "value" in _collider ? _collider === null || _collider === void 0 ? void 0 : _collider.value : _collider, isRaw: typeof _collider === "object" && "isRaw" in _collider && _collider.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_offset", id: typeof _offset === "object" && "id" in _offset ? _offset === null || _offset === void 0 ? void 0 : _offset.id : undefined, value: typeof _offset === "object" && "value" in _offset ? _offset === null || _offset === void 0 ? void 0 : _offset.value : _offset, isRaw: typeof _offset === "object" && "isRaw" in _offset && _offset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_rotation", id: typeof _rotation === "object" && "id" in _rotation ? _rotation === null || _rotation === void 0 ? void 0 : _rotation.id : undefined, value: typeof _rotation === "object" && "value" in _rotation ? _rotation === null || _rotation === void 0 ? void 0 : _rotation.value : _rotation, isRaw: typeof _rotation === "object" && "isRaw" in _rotation && _rotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_visualScale", id: typeof _visualScale === "object" && "id" in _visualScale ? _visualScale === null || _visualScale === void 0 ? void 0 : _visualScale.id : undefined, value: typeof _visualScale === "object" && "value" in _visualScale ? _visualScale === null || _visualScale === void 0 ? void 0 : _visualScale.value : _visualScale, isRaw: typeof _visualScale === "object" && "isRaw" in _visualScale && _visualScale.isRaw ? true : undefined })] })));
}
exports.LineSegment = LineSegment;
;