Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fyge_for_tb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
fyge_for_tb
Commits
06cde322
Commit
06cde322
authored
Jun 24, 2022
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新,3D模型骨骼使用纹理贴图的形式传数据,提升骨骼数量上限
parent
4e929153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Stage.ts
src/2d/display/Stage.ts
+8
-7
No files found.
src/2d/display/Stage.ts
View file @
06cde322
...
@@ -32,7 +32,7 @@ export class Stage extends Container {
...
@@ -32,7 +32,7 @@ export class Stage extends Container {
* @public
* @public
* @since 1.0.0
* @since 1.0.0
* @type {Rectangle}
* @type {Rectangle}
* @default
* @default
* @readonly
* @readonly
*/
*/
public
viewRect
:
Rectangle
=
new
Rectangle
();
public
viewRect
:
Rectangle
=
new
Rectangle
();
...
@@ -359,8 +359,8 @@ export class Stage extends Container {
...
@@ -359,8 +359,8 @@ export class Stage extends Container {
* 这里会按照原_dpi修改canvas的实际尺寸
* 这里会按照原_dpi修改canvas的实际尺寸
* 一般设备的dpi不会改变,
* 一般设备的dpi不会改变,
* web全屏环境可不传参数,否则自行计算显示尺寸传入
* web全屏环境可不传参数,否则自行计算显示尺寸传入
* @param divWidth
* @param divWidth
* @param divHeight
* @param divHeight
* @example
* @example
* window.addEventListener('resize', () => {stage.resize()});
* window.addEventListener('resize', () => {stage.resize()});
*/
*/
...
@@ -501,7 +501,8 @@ export class Stage extends Container {
...
@@ -501,7 +501,8 @@ export class Stage extends Container {
e
.
identifier
=
0
;
e
.
identifier
=
0
;
points
=
[
e
];
points
=
[
e
];
}
else
{
}
else
{
points
=
[
e
.
changedTouches
[
0
]];
// points = [e.changedTouches[0]];
points
=
e
.
changedTouches
;
}
}
// points = [e.changedTouches[0]];
// points = [e.changedTouches[0]];
// points = [e.touches[0]];//不能用这个
// points = [e.touches[0]];//不能用这个
...
@@ -525,8 +526,8 @@ export class Stage extends Container {
...
@@ -525,8 +526,8 @@ export class Stage extends Container {
}
else
{
}
else
{
cp
=
new
Point
();
cp
=
new
Point
();
}
}
cp
.
x
=
((
points
[
o
].
pageX
||
points
[
o
].
x
||
points
[
o
].
b
||
0
)
-
offsetX
)
*
s
.
_dpi
// devicePixelRatio;
cp
.
x
=
((
points
[
o
].
pageX
||
points
[
o
].
x
||
points
[
o
].
b
)
-
offsetX
)
*
s
.
_dpi
// devicePixelRatio;
cp
.
y
=
((
points
[
o
].
pageY
||
points
[
o
].
y
||
points
[
o
].
c
||
0
)
-
offsetY
)
*
s
.
_dpi
// devicePixelRatio;
cp
.
y
=
((
points
[
o
].
pageY
||
points
[
o
].
y
||
points
[
o
].
c
)
-
offsetY
)
*
s
.
_dpi
// devicePixelRatio;
// my.alert({
// my.alert({
// title: JSON.stringify(points[o])
// title: JSON.stringify(points[o])
// });
// });
...
@@ -756,4 +757,4 @@ export class Stage extends Container {
...
@@ -756,4 +757,4 @@ export class Stage extends Container {
s
.
_ml
=
null
;
s
.
_ml
=
null
;
super
.
destroy
();
super
.
destroy
();
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment