Lines Matching refs:args

45 static jerry_value_t _content(const jerry_call_info_t* info, const jerry_value_t args[], const jerr…
83 static char* _name(jerry_value_t args) in _name() argument
85 auto arg0 = jerry_value_to_string(args); in _name()
95 static unsigned long _idByName(jerry_value_t args) in _idByName() argument
97 auto name = _name(args); in _idByName()
104 static jerry_value_t _toComp(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _toComp() argument
338 static jerry_value_t _addsub(const jerry_value_t args[], float addsub) in _addsub() argument
340 auto n1 = jerry_value_is_number(args[0]); in _addsub()
341 auto n2 = jerry_value_is_number(args[1]); in _addsub()
344 …(n1 && n2) return jerry_number(jerry_value_as_number(args[0]) + addsub * jerry_value_as_number(arg… in _addsub()
346 auto val1 = jerry_object_get_index(args[n1 ? 1 : 0], 0); in _addsub()
347 auto val2 = jerry_object_get_index(args[n1 ? 1 : 0], 1); in _addsub()
356 auto val3 = jerry_value_as_number(args[secondary]); in _addsub()
361 auto val3 = jerry_object_get_index(args[1], 0); in _addsub()
362 auto val4 = jerry_object_get_index(args[1], 1); in _addsub()
407 static jerry_value_t _add(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_le… in _add() argument
409 return _addsub(args, 1.0f); in _add()
413 static jerry_value_t _sub(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_le… in _sub() argument
415 return _addsub(args, -1.0f); in _sub()
419 static jerry_value_t _mul(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_le… in _mul() argument
421 return _muldiv(args[0], jerry_value_as_number(args[1])); in _mul()
425 static jerry_value_t _div(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_le… in _div() argument
427 return _muldiv(args[0], 1.0f / jerry_value_as_number(args[1])); in _div()
431 static jerry_value_t _interp(float t, const jerry_value_t args[], int argsCnt) in _interp() argument
437 tMin = jerry_value_as_number(args[1]); in _interp()
438 tMax = jerry_value_as_number(args[2]); in _interp()
446 if (jerry_value_is_object(args[idx + 1]) && jerry_value_is_object(args[idx + 2])) { in _interp()
447 auto val1 = jerry_object_get_index(args[idx + 1], 0); in _interp()
448 auto val2 = jerry_object_get_index(args[idx + 1], 1); in _interp()
449 auto val3 = jerry_object_get_index(args[idx + 2], 0); in _interp()
450 auto val4 = jerry_object_get_index(args[idx + 2], 1); in _interp()
474 auto val1 = (float) jerry_value_as_number(args[idx + 1]); in _interp()
475 auto val2 = (float) jerry_value_as_number(args[idx + 2]); in _interp()
480 static jerry_value_t _linear(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _linear() argument
482 auto t = (float) jerry_value_as_number(args[0]); in _linear()
483 return _interp(t, args, jerry_value_as_uint32(argsCnt)); in _linear()
487 static jerry_value_t _ease(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_l… in _ease() argument
489 auto t = (float) jerry_value_as_number(args[0]); in _ease()
491 return _interp(t, args, jerry_value_as_uint32(argsCnt)); in _ease()
496 static jerry_value_t _easeIn(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _easeIn() argument
498 auto t = (float) jerry_value_as_number(args[0]); in _easeIn()
500 return _interp(t, args, jerry_value_as_uint32(argsCnt)); in _easeIn()
504 static jerry_value_t _easeOut(const jerry_call_info_t* info, const jerry_value_t args[], const jerr… in _easeOut() argument
506 auto t = (float) jerry_value_as_number(args[0]); in _easeOut()
508 return _interp(t, args, jerry_value_as_uint32(argsCnt)); in _easeOut()
512 static jerry_value_t _clamp(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_… in _clamp() argument
514 auto num = jerry_value_as_number(args[0]); in _clamp()
515 auto limit1 = jerry_value_as_number(args[1]); in _clamp()
516 auto limit2 = jerry_value_as_number(args[2]); in _clamp()
526 static jerry_value_t _dot(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_le… in _dot() argument
528 auto val1 = jerry_object_get_index(args[0], 0); in _dot()
529 auto val2 = jerry_object_get_index(args[0], 1); in _dot()
530 auto val3 = jerry_object_get_index(args[1], 0); in _dot()
531 auto val4 = jerry_object_get_index(args[1], 1); in _dot()
545 static jerry_value_t _cross(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_… in _cross() argument
547 auto val1 = jerry_object_get_index(args[0], 0); in _cross()
548 auto val2 = jerry_object_get_index(args[0], 1); in _cross()
549 auto val3 = jerry_object_get_index(args[1], 0); in _cross()
550 auto val4 = jerry_object_get_index(args[1], 1); in _cross()
564 static jerry_value_t _normalize(const jerry_call_info_t* info, const jerry_value_t args[], const je… in _normalize() argument
566 auto val1 = jerry_object_get_index(args[0], 0); in _normalize()
567 auto val2 = jerry_object_get_index(args[0], 1); in _normalize()
591 static jerry_value_t _length(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _length() argument
593 auto val1 = jerry_object_get_index(args[0], 0); in _length()
594 auto val2 = jerry_object_get_index(args[0], 1); in _length()
605 static jerry_value_t _random(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _random() argument
612 static jerry_value_t _deg2rad(const jerry_call_info_t* info, const jerry_value_t args[], const jerr… in _deg2rad() argument
614 return jerry_number(deg2rad((float)jerry_value_as_number(args[0]))); in _deg2rad()
618 static jerry_value_t _rad2deg(const jerry_call_info_t* info, const jerry_value_t args[], const jerr… in _rad2deg() argument
620 return jerry_number(rad2deg((float)jerry_value_as_number(args[0]))); in _rad2deg()
624 static jerry_value_t _effect(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _effect() argument
632 static jerry_value_t _fromCompToSurface(const jerry_call_info_t* info, const jerry_value_t args[], … in _fromCompToSurface() argument
640 static jerry_value_t _content(const jerry_call_info_t* info, const jerry_value_t args[], const jerr… in _content() argument
644 auto target = group->content(_idByName(args[0])); in _content()
664 static jerry_value_t _layer(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_… in _layer() argument
671 if (jerry_value_is_number(args[0])) { in _layer()
672 auto idx = (uint16_t)jerry_value_as_int32(args[0]); in _layer()
677 layer = comp->layerById(_idByName(args[0])); in _layer()
690 static jerry_value_t _nearestKey(const jerry_call_info_t* info, const jerry_value_t args[], const j… in _nearestKey() argument
693 auto time = jerry_value_as_number(args[0]); in _nearestKey()
704 static jerry_value_t _property(const jerry_call_info_t* info, const jerry_value_t args[], const jer… in _property() argument
707 auto property = data->obj->property(jerry_value_as_int32(args[0])); in _property()
713 static jerry_value_t _propertyGroup(const jerry_call_info_t* info, const jerry_value_t args[], cons… in _propertyGroup() argument
716 auto level = jerry_value_as_int32(args[0]); in _propertyGroup()
732 static jerry_value_t _valueAtTime(const jerry_call_info_t* info, const jerry_value_t args[], const … in _valueAtTime() argument
735 auto time = jerry_value_as_number(args[0]); in _valueAtTime()
755 static jerry_value_t _velocityAtTime(const jerry_call_info_t* info, const jerry_value_t args[], con… in _velocityAtTime() argument
758 auto time = jerry_value_as_number(args[0]); in _velocityAtTime()
789 static jerry_value_t _speedAtTime(const jerry_call_info_t* info, const jerry_value_t args[], const … in _speedAtTime() argument
792 auto time = jerry_value_as_number(args[0]); in _speedAtTime()
825 static bool _loopOutCommon(LottieExpression* exp, const jerry_value_t args[], const jerry_length_t … in _loopOutCommon() argument
830 auto name = _name(args[0]); in _loopOutCommon()
847 static jerry_value_t _loopOut(const jerry_call_info_t* info, const jerry_value_t args[], const jerr… in _loopOut() argument
851 if (!_loopOutCommon(exp, args, argsCnt)) return jerry_undefined(); in _loopOut()
853 if (argsCnt > 1) exp->loop.key = jerry_value_as_int32(args[1]); in _loopOut()
861 static jerry_value_t _loopOutDuration(const jerry_call_info_t* info, const jerry_value_t args[], co… in _loopOutDuration() argument
865 if (!_loopOutCommon(exp, args, argsCnt)) return jerry_undefined(); in _loopOutDuration()
868 exp->loop.in = exp->comp->frameAtTime((float)jerry_value_as_int32(args[1])); in _loopOutDuration()
877 static bool _loopInCommon(LottieExpression* exp, const jerry_value_t args[], const jerry_length_t a… in _loopInCommon() argument
882 auto name = _name(args[0]); in _loopInCommon()
898 static jerry_value_t _loopIn(const jerry_call_info_t* info, const jerry_value_t args[], const jerry… in _loopIn() argument
902 if (!_loopInCommon(exp, args, argsCnt)) return jerry_undefined(); in _loopIn()
904 if (argsCnt > 1) exp->loop.key = jerry_value_as_int32(args[1]); in _loopIn()
912 static jerry_value_t _loopInDuration(const jerry_call_info_t* info, const jerry_value_t args[], con… in _loopInDuration() argument
917 exp->loop.in = exp->comp->frameAtTime((float)jerry_value_as_int32(args[1])); in _loopInDuration()
920 if (!_loopInCommon(exp, args, argsCnt)) return jerry_undefined(); in _loopInDuration()
928 static jerry_value_t _key(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_le… in _key() argument
931 auto key = jerry_value_as_int32(args[0]); in _key()
938 jerry_object_set_sz(obj, EXP_INDEX, args[0]); in _key()
956 static jerry_value_t _createPath(const jerry_call_info_t* info, const jerry_value_t args[], const j… in _createPath() argument
959 auto arg1 = jerry_value_to_object(args[0]); in _createPath()
974 static jerry_value_t _uniformPath(const jerry_call_info_t* info, const jerry_value_t args[], const … in _uniformPath() argument
986 static jerry_value_t _isClosed(const jerry_call_info_t* info, const jerry_value_t args[], const jer… in _isClosed() argument
1108 static jerry_value_t _comp(const jerry_call_info_t* info, const jerry_value_t args[], const jerry_l… in _comp() argument
1112 auto layer = comp->layerById(_idByName(args[0])); in _comp()