在做网站要求越来越高,好不容易把颜色和布局弄得很高大上,结果人家说网站没效果,太单一,死板,我真想:
懂不懂!会不会玩!
可结果呢
以下是我自己常用的动态效果库,自己使用的时候也很方便,推荐给大家,如果大家有更好的效果图记得留言告诉我哦,
WOW.js
(让页面变得更有趣)
Parallax.js
(轻量级的的视差引擎)
Html5ToolTips.js
(轻量级的提示框)
FullPage.Js
(全屏滚动插件)
aos.js
(页面滚动元素动画)
Sidebar Transitions
(边栏过渡效果)
jInvertScroll
(横向滚动插件)
0级怪物免爆要求的防御是525点,除去满级后自带的400点防御,剩余的125点需要通过装备等途径提供,前期打五人本的时候优先堆到125。
团本的boss则需要540点防御,也就是需要通过装备堆到140。
巫妖王之怒版本,有部分boss存在招架加速平砍的机制,所以精准也是很需要堆的属性,对于防战而言,需要6.5%(即26精准)来消除躲闪,14%(即56精准)来消除招架。在条件允许的情况下,尽量保证8%(263点命中等级)的物理命中。
至于其他防御属性,就看需要面对的boss类型了。一般来说如果boss的伤害类型主要为魔法,那么尽量堆高血量。如果是物理伤害,则可以尽量堆高护甲、格挡、躲闪、招架。当然对于防战来说,由于精确格挡、盾牌反伤等天赋的存在,使得格挡的收益非常高。
推荐宏:
冲锋切防御宏
#showtooltip
/cast [stance:1]冲锋
/cast 防御姿态
复仇英勇宏
#showtooltip
/cast 复仇
/cast 英勇打击
复仇瞬劈宏
#showtooltip
/cast 复仇
/cast 瞬劈斩
群拉复仇
#showtooltip 复仇
/startattack
/cast [nostance:2] 防御姿态;
/cast 复仇
/cast !顺劈斩
单拉复仇
#showtooltip 复仇
/startattack
/cast [nostance:2] 防御姿态;
/cast 复仇
/cast !英勇打击
#showtooltip 盾牌格挡
/startattack
/cast [nostance:2] 防御姿态;
/cast 盾牌格挡
群拉雷霆宏
#showtooltips
/castsequence reset=30 雷霆一击,挫志怒吼,雷霆一击,雷霆一击,雷霆一击
/cast [nostance:2] 防御姿态;
群拉横扫宏
#showtooltip 横扫攻击
/cast 横扫攻击
/cast 反击风暴
/startattack
/cast [nostance:1] 战斗姿态;
群嘲盾墙宏
#showtooltip 挑战怒吼
/startattack
/cast [nostance:2]防御姿态;
/cast 挑战怒吼
/cast 盾墙
冲锋拦截宏 绑定了 英勇投掷
#showtooltip [stance:2] 援护; [nocombat] 冲锋; [combat] 拦截
/cast [@mouseover, help] 防御姿态; [nocombat] 战斗姿态; [combat] 狂暴姿态
/cast [@mouseover, help] 援护; [nocombat] 冲锋; [combat,stance:3] 拦截
/cast [combat,stance:3] 血性狂暴
/startattack
/cast 英勇投掷
盾击打断宏
#showtooltip 盾击
/startattack
/cast [nostance:2] 防御姿态;
/cast 盾击
鼠标指向嘲讽宏
#showtooltip 嘲讽
/cast [nostance:2] 防御姿态;
/cast [target=mouseover,nomodifier,exists,harm] 嘲讽;嘲讽
狂暴鲁莽宏
#showtooltip 鲁莽
/startattack
/cast [nostance:3] 狂暴姿态;
/cast 鲁莽
属性优先级
防等540免爆,达到540以后属性优先级排列如下:
耐力>护甲>防御等级>躲闪=招架>格挡等级>格挡值
From 百度百科:甘特图(Gantt chart)又称为横道图、条状图(Bar chart)。其通过条状图来显示项目,进度,和其他时间相关的系统进展的内在关系随着时间进展的情况。
yarn add dhtmlx-gantt
复制代码
import 'dhtmlx-gantt';
import 'dhtmlx-gantt/codebase/dhtmlxgantt.css';
import 'dhtmlx-gantt/codebase/ext/dhtmlxgantt_marker.js';
import 'dhtmlx-gantt/codebase/ext/dhtmlxgantt_tooltip.js';
import 'dhtmlx-gantt/codebase/locale/locale_cn.js';
import * as React from 'react';
import { getGanttConfigByZoomValue } from '../../utils/milestone.lib';
import Toolbar from './components/Toolbar';
import * as styles from './index.module.less';
export default class Gantt extends React.Component<any> {
state = {
currentZoom: 'Days', // 默认按日维度展示
isMount: false,
};
private ganttContainer: any;
componentWillReceiveProps (nextProps: any) {
this.generateGantt();
this.setState({ isMount: true });
}
handleZoomChange = (zoom: string) => {
this.setState({ currentZoom: zoom }, () => {
this.generateGantt();
});
}
async generateGantt () {
const { ganttData } = this.props;
if (this.state.isMount) { // 若不加判断,首次使用会报错
gantt.clearAll(); // 移除所有任务,否则更新时任务会叠加
}
this.setConfig(); // 添加配置
gantt.init(this.ganttContainer); // 初始化 dhtmlxGantt 到 ganttContainer 容器中
gantt.parse(ganttData); // 将数据注入到甘特图
}
setConfig () {
...
}
setZoom (value: string) {
gantt.config = {
...gantt.config,
...getGanttConfigByZoomValue(value), // 根据维度展示不同的日期格式
};
}
renderContent () {
const { currentZoom } = this.state;
return (
<React.Fragment>
<div className={styles.zoomBar}>
<Toolbar zoom={currentZoom} onZoomChange={this.handleZoomChange} />
</div>
<div className={styles.gantt}}>
<div
ref={input => {
this.ganttContainer = input;
}}
style={{ width: '100%', height: '100%' }}
/>
</div>
</React.Fragment>
);
}
render () {
return (
<div className={styles.ganttWrapper}>
{this.renderContent()}
</div>
);
}
}
复制代码
gantt.config.readonly = true;
gantt.init(this.ganttContainer);
复制代码
gantt.config.readonly = true; // 开启只读模式
select_task: false, // 禁止任务被选中,
gantt.init(this.ganttContainer);
复制代码
gantt.config.columns = [
{
name: 'text',
label: '里程碑节点',
width: 280,
template: function (obj: any) {
return `节点:${obj.text}`; // 通过 template 回调可以指定返回内容值
},
},
];
gantt.init(this.ganttContainer);
复制代码
// 自定义tooltip内容
gantt.templates.tooltip_text = function (start: Date, end: Date, task: any) {
const t = gantt;
const output = `<b>里程碑:</b>${task.text}<br/><b>状态:</b>${
MILESTONE_STATE_MAP[task.state]
}<br/><b>计划开始时间:</b>${t.templates.tooltip_date_format(
start,
)}<br/><b>计划结束时间:</b>${t.templates.tooltip_date_format(end)}`;
return output;
},
// 添加tooltip
gantt.attachEvent('onGanttReady', function () {
var tooltips = gantt.ext.tooltips;
tooltips.tooltip.setViewport((gantt as any).$task_data);
});
复制代码
const { online_date, offline_date } = this.props;
// 今日红线
let today = new Date(`${getEndOfDate()}`); // getEndOfDate 为获取今天结束时间的方法
gantt.addMarker({
start_date: today,
css: 'today',
text: '今日',
});
// 项目开始时间
if (online_date) {
gantt.addMarker({
start_date: online_date,
css: 'projectStartDate',
text: '项目开始',
});
}
// 项目结束时间
if (offline_date) {
gantt.addMarker({
start_date: offline_date,
css: 'projectEndDate',
text: '项目结束',
});
}
复制代码
.projectStartDate, .projectEndDate {
background: #00bcd4;
}
复制代码
task_class: function (start: Date, end: Date, task: any) {
return `milestone-${task.state}`; // task.state值为default/unfinished/finished/canceled其中一种
},
复制代码
.milestone-default {
border: none;
background: rgba(0, 0, 0, 0.45);
}
.milestone-unfinished {
border: none;
background: #5692f0;
}
.milestone-finished {
border: none;
background: #84bd54;
}
.milestone-canceled {
border: none;
background: #da645d;
}
复制代码
// 突出周末颜色
(gantt.templates as any).timeline_cell_class = function (item: any, date: Date): string {
if (date.getDay() === 0 || date.getDay() === 6) {
return 'weekend';
}
return '';
};
复制代码
// 突出周末颜色
const disableHighlight =
this.state.currentZoom === 'Years' || this.state.currentZoom === 'Months';
(gantt.templates as any).timeline_cell_class = function (item: any, date: Date): string {
if (!disableHighlight && (date.getDay() === 0 || date.getDay() === 6)) {
return 'weekend';
}
return '';
};
复制代码
export function getGanttConfigByZoomValue (value: string) {
switch (value) {
case 'Hours':
return {
scale_unit: 'day',
scale_height: 50,
min_column_width: 30,
date_scale: '%Y-%m-%d',
subscales: [
{
unit: 'hour',
step: 1,
date: '%H',
},
],
};
case 'Days':
return {
scale_unit: 'week',
scale_height: 50,
min_column_width: 70,
date_scale: '%Y年 %W周',
subscales: [
{
unit: 'day',
step: 1,
date: '%m-%d',
},
],
};
case 'Months':
return {
scale_unit: 'month',
scale_height: 50,
min_column_width: 70,
date_scale: '%Y-%m',
subscales: [
{
unit: 'week',
step: 1,
date: '%W周',
},
],
};
case 'Years':
return {
scale_unit: 'year',
scale_height: 50,
min_column_width: 70,
date_scale: '%Y年',
subscales: [
{
unit: 'month',
step: 1,
date: '%M',
},
],
};
default:
return {};
}
}
复制代码
以上内容如有遗漏错误,欢迎留言 ✍️指出,一起进步
如果觉得本文对你有帮助,留下你宝贵的
转载链接:https://juejin.im/post/5e7ffd56f265da794e526102
*请认真填写需求信息,我们会在24小时内与您取得联系。