mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-07 03:52:41 +08:00
bfe8314822
* intersect tweaks * add line_quad deprecated
24 lines
406 B
TypeScript
24 lines
406 B
TypeScript
/**
|
|
* @hidden
|
|
*/
|
|
|
|
import { replaceProperty, removeProperty } from '../utils/deprecated';
|
|
import line from './line';
|
|
import intersect from './intersect';
|
|
|
|
replaceProperty(line.prototype, 'line', [
|
|
{
|
|
name: 'mag',
|
|
newName: 'len',
|
|
},
|
|
{
|
|
name: 'magnitude',
|
|
newName: 'len',
|
|
},
|
|
]);
|
|
|
|
removeProperty(intersect, 'intersect', [
|
|
{
|
|
name: 'line_quad'
|
|
}
|
|
]) |