
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@vf.js/spine
Advanced tools
import {Spine} from '@vf.js/spine';
var app = new vf.Application();
document.body.appendChild(app.view);
Spine.globalAutoUpdate = true; // Spine的设置需在Loader之前。 不要移动位置。
app.loader.add('eddyData', './static/db/eddy.json') //shoot drive
app.loader.load(function (loader, resources) {
const eddy = Spine.from(resources.eddyData,app);
eddy.name = 'eddy';
eddy.on(Spine.SPINE_START,(animationName:string)=>{
console.log(Spine.SPINE_START,animationName);
});
eddy.on(Spine.SPINE_COMPLETE,(animationName:string)=>{
console.log(Spine.SPINE_COMPLETE,animationName);
});
eddy.on(Spine.SPINE_EVENT,(animationName:string,event:vf.spine.core.Event)=>{
console.log(Spine.SPINE_EVENT,animationName,event);
});
eddy.x = 500;
eddy.y = 300;
eddy.scale.set(0.1);
eddy.timeScale(0.5);
eddy.play('animationName'); //eddy.playQueue([{name:'shoot'},{name:'drive'}]);
spineContainer.addChild(eddy);
});
var app = new vf.Application();
document.body.appendChild(app.view);
app.loader.add('eddyData', './static/db/eddy.json')
app.loader.add('eddAtlas', './static/db/eddy.atlas')
app.loader.add('eddPng', './static/db/eddy.png')
app.loader.load(function (loader, resources) {
Spine.fromData(resources['eddyData'].data,resources['eddAtlas'].data,resources['eddPng'].texture as any,app,spine=>{
spineContainer.addChild(spine)
})
});
npm install
FAQs
Spine implementation for vf v^5
We found that @vf.js/spine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.