Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-components
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
劳工
scilla-components
Commits
711222f6
Commit
711222f6
authored
Apr 16, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RenderContext修改为类导出
parent
d6f15329
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
rollup.config.js
rollup.config.js
+0
-1
CameraController.ts
src/other/CameraController.ts
+2
-2
FullStageSize.ts
src/other/FullStageSize.ts
+2
-2
Renderer.ts
src/renderer/Renderer.ts
+2
-2
No files found.
rollup.config.js
View file @
711222f6
...
...
@@ -24,7 +24,6 @@ export default {
typescript
({
typescript
:
require
(
'typescript'
),
tslib
:
require
(
'tslib'
),
useTsconfigDeclarationDir
:
true
,
declaration
:
false
,
}),
commonjs
(),
...
...
src/other/CameraController.ts
View file @
711222f6
...
...
@@ -3,7 +3,7 @@
*
*/
import
{
Entity
,
getStageSize
,
ScillaComponent
,
createVector2D
,
Vector2D
,
math
}
from
"scilla"
;
import
{
Entity
,
ScillaComponent
,
createVector2D
,
Vector2D
,
math
,
getRenderContext
}
from
"scilla"
;
import
Transform
from
"../base/Transform"
;
/**
...
...
@@ -37,7 +37,7 @@ export default class CameraController extends ScillaComponent {
get
stageSize
(){
if
(
!
this
.
_stageSize
){
this
.
_stageSize
=
getStageSize
();
this
.
_stageSize
=
get
RenderContext
().
get
StageSize
();
}
return
this
.
_stageSize
;
...
...
src/other/FullStageSize.ts
View file @
711222f6
...
...
@@ -3,7 +3,7 @@
*
*/
import
{
get
StageSize
,
ScillaComponent
,
}
from
"scilla"
;
import
{
get
RenderContext
,
ScillaComponent
,
}
from
"scilla"
;
/**
* 全舞台尺寸组件
...
...
@@ -17,7 +17,7 @@ export default class FullStageSize extends ScillaComponent {
get
stageSize
(){
if
(
!
this
.
_stageSize
){
this
.
_stageSize
=
getStageSize
();
this
.
_stageSize
=
get
RenderContext
().
get
StageSize
();
}
return
this
.
_stageSize
;
...
...
src/renderer/Renderer.ts
View file @
711222f6
...
...
@@ -2,7 +2,7 @@
* Created by rockyl on 2018/11/6.
*/
import
{
createCanvas
,
getContext
,
ScillaComponent
,
Bounds
,
Vector2D
,
math
,
decorators
,
EngineConfig
}
from
"scilla"
;
import
{
createCanvas
,
get
Render
Context
,
ScillaComponent
,
Bounds
,
Vector2D
,
math
,
decorators
,
EngineConfig
}
from
"scilla"
;
const
{
dirtyFieldTrigger
}
=
decorators
;
...
...
@@ -51,7 +51,7 @@ export default class Renderer extends ScillaComponent {
protected
_anchorOffset
:
Vector2D
=
new
Vector2D
();
//渲染上下文
protected
_context
=
getContext
();
protected
_context
=
get
RenderContext
().
get
Context
();
/**
* 扩展尺寸
...
...
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