@ant-design/icons APIs
- PlusOutlined
- UserOutlined
- SettingOutlined
- EditOutlined
- DeleteOutlined
- DownOutlined
- LoadingOutlined
- SearchOutlined
- LockOutlined
- CheckOutlined
- CloseOutlined
- UploadOutlined
- LogoutOutlined
- QuestionCircleOutlined
- InfoCircleOutlined
- SyncOutlined
- GithubOutlined
- DownloadOutlined
- CloseCircleOutlined
- CheckCircleOutlined
- LeftOutlined
- ExclamationCircleOutlined
- EyeOutlined
- LinkOutlined
- MenuFoldOutlined
- MenuUnfoldOutlined
- BellOutlined
- TeamOutlined
- AppstoreOutlined
- FileOutlined
- DesktopOutlined
- SendOutlined
- HomeOutlined
- StarOutlined
- ArrowDownOutlined
- ReloadOutlined
- NotificationOutlined
- RightOutlined
- MailOutlined
- EyeInvisibleOutlined
- SmileOutlined
- ArrowUpOutlined
- EllipsisOutlined
- createFromIconfontCN
- CheckCircleTwoTone
- CaretDownOutlined
- SmileTwoTone
- RedoOutlined
- PlusCircleOutlined
- WalletOutlined
- ExportOutlined
- LikeOutlined
- InboxOutlined
- CopyOutlined
- FullscreenExitOutlined
- FullscreenOutlined
- FacebookOutlined
- UserAddOutlined
- SolutionOutlined
- KeyOutlined
- PieChartOutlined
- PictureOutlined
- QrcodeOutlined
- PoweroffOutlined
- DashboardOutlined
- GlobalOutlined
- ClockCircleOutlined
- ShareAltOutlined
- UndoOutlined
- MenuOutlined
- HeartTwoTone
- BarsOutlined
- MinusCircleOutlined
- WarningOutlined
- FrownOutlined
- HeartOutlined
- RetweetOutlined
- FilePdfOutlined
- MinusOutlined
- UpOutlined
- ImportOutlined
- LineChartOutlined
- StopOutlined
- CreditCardOutlined
- ToolOutlined
- MessageOutlined
- DisconnectOutlined
- GoogleOutlined
- InfoCircleTwoTone
- BankOutlined
- EditTwoTone
- HomeTwoTone
- PlusSquareTwoTone
- SlidersOutlined
- UnorderedListOutlined
- FormOutlined
- CameraOutlined
- ArrowRightOutlined
- CloseCircleTwoTone
- VideoCameraOutlined
- MoreOutlined
- BarChartOutlined
- BugOutlined
- TwitterOutlined
- SettingFilled
- HighlightOutlined
- DeleteTwoTone
- EyeTwoTone
- HistoryOutlined
- CaretRightOutlined
- ApiOutlined
- AuditOutlined
- BlockOutlined
- CodeOutlined
- CloudUploadOutlined
- FileTextOutlined
- PlayCircleOutlined
- LikeFilled
- CaretUpOutlined
- ArrowLeftOutlined
- LaptopOutlined
- LockTwoTone
- MailTwoTone
- FlagOutlined
- CodeTwoTone
- LeftCircleOutlined
- RightCircleOutlined
- UsergroupAddOutlined
- IdcardOutlined
- DollarCircleOutlined
- AimOutlined
- SettingTwoTone
- SwapOutlined
- PhoneOutlined
- FileExcelOutlined
- FileMarkdownOutlined
- MinusCircleTwoTone
- FileAddOutlined
- DatabaseOutlined
- CloudServerOutlined
- HddOutlined
- FileDoneOutlined
- RocketOutlined
- FolderAddOutlined
- VerticalAlignTopOutlined
- ControlOutlined
- LoginOutlined
- SafetyCertificateOutlined
- ExpandOutlined
- WindowsOutlined
- TagsOutlined
- FireOutlined
- FileImageOutlined
- PauseCircleOutlined
- DislikeFilled
- BuildOutlined
- CopyrightOutlined
- setTwoToneColor
- ThunderboltOutlined
- CompressOutlined
- SoundOutlined
- CommentOutlined
- CustomerServiceOutlined
- FileSyncOutlined
- ContainerOutlined
- PauseOutlined
- AudioOutlined
- YoutubeOutlined
- HourglassOutlined
- ColumnHeightOutlined
- PlusCircleTwoTone
- PaperClipOutlined
- SmileFilled
- MessageFilled
- QuestionOutlined
- PushpinOutlined
- AppstoreAddOutlined
- SwapRightOutlined
- NodeCollapseOutlined
- PieChartFilled
- HeartFilled
- CloseCircleFilled
- FileUnknownTwoTone
- ApartmentOutlined
- ProfileOutlined
- FlagTwoTone
- ClusterOutlined
- FundTwoTone
- UnlockOutlined
- NotificationTwoTone
- FileUnknownOutlined
- ScheduleOutlined
- SaveOutlined
- InsertRowAboveOutlined
- PushpinFilled
- PushpinTwoTone
- BorderOuterOutlined
- DownSquareOutlined
- GatewayOutlined
- InteractionOutlined
- NodeIndexOutlined
- LikeTwoTone
- Html5Outlined
- OrderedListOutlined
- InstagramOutlined
- WhatsAppOutlined
- IdcardTwoTone
- FileTextTwoTone
- TableOutlined
- DeleteFilled
- EditFilled
- FileAddFilled
- RightCircleTwoTone
- DownCircleTwoTone
- FolderOutlined
- InsuranceOutlined
- UserSwitchOutlined
- OneToOneOutlined
- FileWordOutlined
- FileZipOutlined
- FolderTwoTone
- ClearOutlined
- FileProtectOutlined
- getTwoToneColor
- DownCircleOutlined
- UpCircleOutlined
- BookOutlined
- GithubFilled
- StarFilled
- EnterOutlined
- ZoomInOutlined
- ZoomOutOutlined
- PictureFilled
- FolderOpenOutlined
- FundViewOutlined
- MergeCellsOutlined
- SplitCellsOutlined
- FormatPainterOutlined
- CarOutlined
- ReadOutlined
- AudioMutedOutlined
- RotateRightOutlined
- BorderOutlined
- BorderVerticleOutlined
- BorderHorizontalOutlined
- DragOutlined
- FilterOutlined
- BulbOutlined
- BgColorsOutlined
- ChromeOutlined
- FireFilled
- FilterTwoTone
- BellFilled
- FolderAddTwoTone
- ApiTwoTone
- CopyTwoTone
- WarningTwoTone
- DeploymentUnitOutlined
- ExperimentOutlined
- LineOutlined
- StepForwardOutlined
- EnvironmentOutlined
- AreaChartOutlined
- VerifiedOutlined
- CodeFilled
- BugFilled
- SnippetsOutlined
- VerticalAlignMiddleOutlined
- InfoCircleFilled
- CaretUpFilled
- FundProjectionScreenOutlined
- PartitionOutlined
- DislikeOutlined
- CloudOutlined
- ShopOutlined
- CalendarOutlined
- RadiusUpleftOutlined
- RadiusUprightOutlined
- RadiusBottomleftOutlined
- RadiusBottomrightOutlined
- MehOutlined
- AppleOutlined
- AndroidOutlined
- LinkedinOutlined
- FrownFilled
- CarryOutOutlined
- StarTwoTone
- DingdingOutlined
- AlipayCircleOutlined
- TaobaoCircleOutlined
- WeiboCircleOutlined
- TagFilled
OtherRelated APIs
@ant-design/icons#BorderVerticleOutlined JavaScript Examples
The following examples show how to use
@ant-design/icons#BorderVerticleOutlined.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Camera.js From network-rc with Apache License 2.0 | 4 votes |
export default function Camera({
url,
editabled,
size,
onChangeVideoRatio,
onClickFullScreen,
onClickCenterScreen,
session,
rtcChannel,
}) {
const storeName = `camera-${url}`;
const boxEl = useRef(null);
const [enabled, setEnabled] = useState(false);
const [pause, setPause] = useState(false); // 后台 pause
const [cameraName, setCameraName] = useState("");
const [formatList, setFormatList] = useState([]);
const [inputFormatIndex, setInputFormatIndex] = useState(undefined);
const [fps, setFps] = useState(30);
const [rotate, setRotate] = useState(0); // 旋转
const [xFlip, setXFlip] = useState(false); // x 翻转
const [yFlip, setYFlip] = useState(false); // y 翻转
const player = useCreation(() => {
const {
rotate = 0,
enabled = true,
inputFormatIndex = 0,
fps = 30,
xFlip = false,
yFlip = false,
} = store.get(storeName) || {};
setEnabled(enabled);
setRotate(rotate);
setInputFormatIndex(inputFormatIndex);
setFps(fps);
setXFlip(xFlip);
setYFlip(yFlip);
const w = new Player({
useWorker: true,
workerFile: `${process.env.PUBLIC_URL}/Decoder.js`,
sessionId: session.id,
url,
});
w.on("info", ({ cameraName, size: { width, height }, formatList }) => {
setCameraName(cameraName);
w.cameraName = cameraName;
setFormatList(formatList);
});
// w.on("open", ({ inputFormatIndex, fps }) => {
// setInputFormatIndex(inputFormatIndex);
// setFps(fps);
// });
w.on("resized", ({ width, height }) => {
message.success(`${w.cameraName} 传输分辨率 ${width}x${height}`);
});
return w;
});
useEffect(() => {
const changeRoatio = ({ size: { width, height } }) => {
onChangeVideoRatio(width / height);
};
player.on("info", changeRoatio);
return () => {
player.off("info", changeRoatio);
};
}, [onChangeVideoRatio, player]);
useUnmount(() => {
player.close();
});
function changeRotate() {
if (rotate === 270) {
setRotate(0);
} else {
setRotate(rotate + 90);
}
}
function changeXFlip() {
setXFlip(!xFlip);
}
function changeYFlip() {
setYFlip(!yFlip);
}
useEventListener(
"visibilitychange",
function () {
if (document.visibilityState === "visible") {
setPause(false);
} else {
setPause(true);
}
},
{ dom: document }
);
useDebounceEffect(
() => {
const box = boxEl.current;
if (!pause && enabled) {
player.open({
inputFormatIndex,
fps,
size,
});
player.AvcPlayer.canvas.style.display = "";
if (player.AvcPlayer.canvas.parentElement !== box) {
box.appendChild(player.AvcPlayer.canvas);
}
} else {
player.close();
player.AvcPlayer.canvas.style.display = "none";
}
},
[enabled, pause, player, inputFormatIndex, fps, size],
{
wait: 500,
}
);
useEffect(() => {
store.set(storeName, { rotate, enabled, inputFormatIndex });
}, [storeName, rotate, enabled, inputFormatIndex]);
useEffect(() => {
if (rtcChannel) {
player.setRTCDataChannel(rtcChannel);
return () => player.removeRTCDataChannel(rtcChannel);
}
}, [rtcChannel, player]);
return (
<div className="camera">
{editabled ? (
<div className="button-box transition-animation" title={cameraName}>
{<Switch size="small" checked={enabled} onChange={setEnabled} />}
<Button
size="small"
shape="circle"
icon={<CompressOutlined />}
onClick={onClickCenterScreen}
/>
<Button
size="small"
shape="circle"
icon={<BorderOutlined />}
onClick={onClickFullScreen}
/>
<Button
size="small"
shape="circle"
icon={<RotateRightOutlined />}
onClick={changeRotate}
/>
<Button
size="small"
shape="circle"
icon={<BorderHorizontalOutlined />}
onClick={changeXFlip}
/>
<Button
size="small"
shape="circle"
icon={<BorderVerticleOutlined />}
onClick={changeYFlip}
/>
<Select
defaultValue={inputFormatIndex}
onChange={setInputFormatIndex}
size="small"
>
{formatList.map(({ format, size }, index) => (
<Option
key={size + format}
value={index}
>{`${size} ${format}`}</Option>
))}
</Select>
<Select defaultValue={fps} onChange={setFps} size="small">
<Option value={15}>15 fps</Option>
<Option value={30}>30 fps</Option>
<Option value={60}>60 fps</Option>
</Select>
</div>
) : undefined}
<div
className="camera-box"
ref={boxEl}
style={{
transform: `rotate(${rotate}deg) scaleX(${xFlip ? -1 : 1}) scaleY(${
yFlip ? -1 : 1
})`,
}}
></div>
</div>
);
}