Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
renderingEngine
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
王剑峰
renderingEngine
Commits
ae388238
Commit
ae388238
authored
Dec 11, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了好多东西啊
parent
2069d4bb
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
12616 deletions
+122
-12616
custom-scripts.js
data/custom-scripts.js
+54
-0
process-scripts.js
data/process-scripts.js
+42
-0
scripts.js
data/scripts.js
+26
-0
engine.02006dc4dae48df92ccbd410062d12be6edaf995.js
dist/engine.02006dc4dae48df92ccbd410062d12be6edaf995.js
+0
-12616
No files found.
data/custom-scripts.js
0 → 100644
View file @
ae388238
(
function
(){
var
exports
=
{};
var
module
;
/*=====START test1 START=====*/
module
=
{
exports
:
{}
};
(
function
(
module
){
'use strict'
;
var
extendStatics
=
function
(
d
,
b
)
{
extendStatics
=
Object
.
setPrototypeOf
||
({
__proto__
:
[]
}
instanceof
Array
&&
function
(
d
,
b
)
{
d
.
__proto__
=
b
;
})
||
function
(
d
,
b
)
{
for
(
var
p
in
b
)
if
(
b
.
hasOwnProperty
(
p
))
d
[
p
]
=
b
[
p
];
};
return
extendStatics
(
d
,
b
);
};
function
__extends
(
d
,
b
)
{
extendStatics
(
d
,
b
);
function
__
()
{
this
.
constructor
=
d
;
}
d
.
prototype
=
b
===
null
?
Object
.
create
(
b
)
:
(
__
.
prototype
=
b
.
prototype
,
new
__
());
}
var
Test1
=
(
function
(
_super
)
{
__extends
(
Test1
,
_super
);
function
Test1
()
{
var
_this
=
_super
.
call
(
this
)
||
this
;
var
rect
=
new
engine
.
Rect
();
rect
.
width
=
100
;
rect
.
height
=
100
;
_this
.
addChild
(
rect
);
return
_this
;
}
return
Test1
;
}(
engine
.
Container
));
function
index
(
options
)
{
var
instance
=
new
Test1
();
return
instance
;
}
module
.
exports
=
index
;
})(
module
);
exports
[
'test1'
]
=
module
.
exports
;
/*=====END test1 END=====*/
for
(
var
key
in
exports
){
engine
.
registerCustomModule
(
key
,
exports
[
key
]);
}
})();
data/process-scripts.js
0 → 100644
View file @
ae388238
(
function
(){
const
processScripts
=
{};
(
function
(
exports
){
exports
[
'be0d860d76d690e6a4ffb210f9b0ed0a'
]
=
function
(
args
,
props
,
target
,
global
,
vm
){
return
new
Promise
(
function
(
resolve
,
reject
){
let
text
=
''
;
for
(
var
i
=
0
;
i
<
Math
.
random
()
*
10
+
2
;
i
++
){
text
+=
'a'
;
}
//target.text = text;
next
(
'success'
);
function
next
(
type
,
payload
){
resolve
({
type
:
type
,
payload
:
payload
})}
});
};
exports
[
'd2f54d3ba1ab5766a3a64aab5a9bce50'
]
=
function
(
args
,
props
,
target
,
global
,
vm
){
return
new
Promise
(
function
(
resolve
,
reject
){
console
.
log
(
'hello'
);
next
(
'success'
);
function
next
(
type
,
payload
){
resolve
({
type
:
type
,
payload
:
payload
})}
});
};
exports
[
'5e64ba15f52ca14d2f8545a2d8651901'
]
=
function
(
args
,
props
,
target
,
global
,
vm
){
return
new
Promise
(
function
(
resolve
,
reject
){
next
(
'success'
,
args
);
function
next
(
type
,
payload
){
resolve
({
type
:
type
,
payload
:
payload
})}
});
};
})(
processScripts
);
engine
.
setScriptMap
(
processScripts
);
})();
\ No newline at end of file
data/scripts.js
0 → 100644
View file @
ae388238
(
function
(){
const
scripts
=
{};
/*=====START test START=====*/
(
function
(
exports
){
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
Test
=
(
function
(
_super
)
{
__extends
(
Test
,
_super
);
function
Test
()
{
return
_super
!==
null
&&
_super
.
apply
(
this
,
arguments
)
||
this
;
}
Test
.
prototype
.
mounted
=
function
()
{
console
.
log
(
'test mounted'
);
};
Test
.
id
=
'test'
;
return
Test
;
}(
engine
.
ScriptBase
));
exports
.
Test
=
Test
;
})(
scripts
);
/*=====END test END=====*/
for
(
let
key
in
scripts
){
const
script
=
scripts
[
key
];
engine
.
registerScriptDef
(
script
.
id
,
script
);
}
})();
\ No newline at end of file
dist/engine.02006dc4dae48df92ccbd410062d12be6edaf995.js
deleted
100644 → 0
View file @
2069d4bb
This diff is collapsed.
Click to expand it.
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